public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64867] New: warning for passing non-POD to varargs function
@ 2015-01-29 17:38 tromey at gcc dot gnu.org
  2015-01-29 18:28 ` [Bug c++/64867] " pinskia at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: tromey at gcc dot gnu.org @ 2015-01-29 17:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64867
           Summary: warning for passing non-POD to varargs function
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tromey at gcc dot gnu.org

Currently gcc does not warn if I pass a non-POD to a
varargs function.  It would have been useful recently
if there was an option to make gcc warn about this.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
@ 2015-01-29 18:28 ` pinskia at gcc dot gnu.org
  2015-01-29 18:30 ` redi at gcc dot gnu.org
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-01-29 18:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>From https://gcc.gnu.org/gcc-4.5/changes.html:
Diagnostics that used to complain about passing non-POD types to ... or jumping
past the declaration of a non-POD variable now check for triviality rather than
PODness, as per C++0x.


See PR 37907.

And having an example would be useful too.  Because of the change between C++98
and C++11.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
  2015-01-29 18:28 ` [Bug c++/64867] " pinskia at gcc dot gnu.org
@ 2015-01-29 18:30 ` redi at gcc dot gnu.org
  2015-01-29 18:31 ` jason at gcc dot gnu.org
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: redi at gcc dot gnu.org @ 2015-01-29 18:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Jason informs me it's now a warning enabled by -Wconditionally-supported


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
  2015-01-29 18:28 ` [Bug c++/64867] " pinskia at gcc dot gnu.org
  2015-01-29 18:30 ` redi at gcc dot gnu.org
@ 2015-01-29 18:31 ` jason at gcc dot gnu.org
  2015-01-29 20:45 ` tromey at gcc dot gnu.org
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-29 18:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Passing a non-POD to a varargs function is conditionally-supported, with
implementation-defined semantics.  In GCC 5 it's supported and treated like
normal pass-by-value.  You can get a diagnostic about it with
-Wconditionally-supported.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-01-29 18:31 ` jason at gcc dot gnu.org
@ 2015-01-29 20:45 ` tromey at gcc dot gnu.org
  2015-01-30 17:04 ` tromey at gcc dot gnu.org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: tromey at gcc dot gnu.org @ 2015-01-29 20:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Tom Tromey <tromey at gcc dot gnu.org> ---
Thanks, I'll give it a try.

Here's my test case FWIW and a short demo showing what clang does:

pokyo. cat q.cc
#include <stdarg.h>

class ConstUTF8CharsZ
{
    const char *mData;

  public:
    ConstUTF8CharsZ() : mData(0)
    {
    }

    explicit ConstUTF8CharsZ(const char *aBytes)
      : mData(aBytes)
    {
    }

    const void *get() const { return mData; }

    const char *c_str() const { return mData; }

    operator bool() const { return mData != 0; }
};


void zzz(const char *x, ...) {
}

void m(const char *m) {
  ConstUTF8CharsZ cu(m);
  zzz(m, cu);
}
pokyo. clang++ q.cc
q.cc:30:10: error: cannot pass object of non-POD type 'ConstUTF8CharsZ' through
      variadic function; call will abort at runtime [-Wnon-pod-varargs]
  zzz(m, cu);
         ^
1 error generated.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-01-29 20:45 ` tromey at gcc dot gnu.org
@ 2015-01-30 17:04 ` tromey at gcc dot gnu.org
  2015-01-30 17:12 ` tromey at gcc dot gnu.org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: tromey at gcc dot gnu.org @ 2015-01-30 17:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Tom Tromey <tromey at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #3)
> Passing a non-POD to a varargs function is conditionally-supported, with
> implementation-defined semantics.  In GCC 5 it's supported and treated like
> normal pass-by-value.  You can get a diagnostic about it with
> -Wconditionally-supported.

I tried this today and it does not work with the test case in comment #4.

pokyo. gcc --version
gcc (GCC) 5.0.0 20150129 (experimental)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

pokyo. g++ --std=c++11 --syntax-only -Wall -Wconditionally-supported q.cc
pokyo.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2015-01-30 17:04 ` tromey at gcc dot gnu.org
@ 2015-01-30 17:12 ` tromey at gcc dot gnu.org
  2015-01-30 17:23 ` pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: tromey at gcc dot gnu.org @ 2015-01-30 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Tom Tromey <tromey at gcc dot gnu.org> ---
Also, -Wconditionally-supported triggers other warning as well.
It would be more convenient if different warnings were individually
controllable; and then something like -Wconditionally-supported
would act as if I'd specified all the sub-options.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2015-01-30 17:12 ` tromey at gcc dot gnu.org
@ 2015-01-30 17:23 ` pinskia at gcc dot gnu.org
  2015-01-30 17:26 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-01-30 17:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Tom Tromey from comment #5)
> (In reply to Jason Merrill from comment #3)
> > Passing a non-POD to a varargs function is conditionally-supported, with
> > implementation-defined semantics.  In GCC 5 it's supported and treated like
> > normal pass-by-value.  You can get a diagnostic about it with
> > -Wconditionally-supported.
> 
> I tried this today and it does not work with the test case in comment #4.
> 
> pokyo. gcc --version
> gcc (GCC) 5.0.0 20150129 (experimental)
> Copyright (C) 2015 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> pokyo. g++ --std=c++11 --syntax-only -Wall -Wconditionally-supported q.cc
> pokyo.

Are you sure that class is not trivial which is why gcc is not warning about
it?  C++11 does not really have pod and non-pod any more but rather trivial and
non-trivial and the rules has chnaged with respect of constructures.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2015-01-30 17:23 ` pinskia at gcc dot gnu.org
@ 2015-01-30 17:26 ` pinskia at gcc dot gnu.org
  2015-01-30 17:40 ` tromey at gcc dot gnu.org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-01-30 17:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2342.htm . It does
look like gcc is implementing the correct new pod rules and clang is not.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2015-01-30 17:26 ` pinskia at gcc dot gnu.org
@ 2015-01-30 17:40 ` tromey at gcc dot gnu.org
  2015-01-31  2:37 ` redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: tromey at gcc dot gnu.org @ 2015-01-30 17:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Tom Tromey <tromey at gcc dot gnu.org> ---
> Are you sure that class is not trivial which is why gcc is not warning about
> it?  C++11 does not really have pod and non-pod any more but rather trivial
> and non-trivial and the rules has chnaged with respect of constructures.

I hesitate to say I'm sure :)

However my belief is that because this class has a user-provided
default constructor, it is not trivial.

I tested this by adding "#include <type_traits>" and then

static_assert(!std::is_trivial<ConstUTF8CharsZ>::value, "whoops");


Trivial or not, I'd like to get a warning here.  In firefox varargs
is really only used for printf-like things; but for various reasons
there are some custom implementations which can't be marked
with the "printf" attribute.  So while doing a refactoring it turned
out I inadvertently changed code to pass objects rather than char*
to one of these ... but finding the problem locations is proving
to be rather difficult.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2015-01-30 17:40 ` tromey at gcc dot gnu.org
@ 2015-01-31  2:37 ` redi at gcc dot gnu.org
  2015-02-02 19:38 ` tromey at gcc dot gnu.org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: redi at gcc dot gnu.org @ 2015-01-31  2:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Tom Tromey from comment #9)
> However my belief is that because this class has a user-provided
> default constructor, it is not trivial.

True, but ...

> I tested this by adding "#include <type_traits>" and then
> 
> static_assert(!std::is_trivial<ConstUTF8CharsZ>::value, "whoops");

That's the wrong thing to assert:

  Passing a potentially-evaluated argument of class type (Clause 9)
  having a non-trivial copy constructor, a non-trivial move constructor,
  or a non-trivial destructor, with no corresponding parameter, is
  conditionally-supported with implementation-defined semantics.

Your type has a trivial copy constructor and trivial move constructor and
trivial destructor, so passing it to a varargs function is well-defined.

Give it a non-trivial destructor and you get a warning:

cs.cc: In function ‘void m(const char*)’:
cs.cc:33:12: warning: passing objects of non-trivially-copyable type ‘class
ConstUTF8CharsZ’ through ‘...’ is conditionally supported
[-Wconditionally-supported]
   zzz(m, cu);
            ^
>From gcc-bugs-return-475589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jan 31 02:39:17 2015
Return-Path: <gcc-bugs-return-475589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9391 invoked by alias); 31 Jan 2015 02:39: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 9330 invoked by uid 48); 31 Jan 2015 02:39:11 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64867] warning for passing non-POD to varargs function
Date: Sat, 31 Jan 2015 02: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64867-4-lDAMM1qO7v@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64867-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64867-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg03583.txt.bz2
Content-length: 242

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd867

--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. trivially-copyable is not the same as trivial (and there are separate type
traits for testing those two properties).


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2015-01-31  2:37 ` redi at gcc dot gnu.org
@ 2015-02-02 19:38 ` tromey at gcc dot gnu.org
  2017-09-05 14:11 ` rsandifo at gcc dot gnu.org
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: tromey at gcc dot gnu.org @ 2015-02-02 19:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Tom Tromey <tromey at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #11)

> That's the wrong thing to assert:

Aha, thank you very much.  I obviously did not realize the difference :)

Unfortunately I think even if I made this change I probably wouldn't
want to enable -Wconditionally-supported here, as it enables some
other warning that IIRC isn't desirable here.

I ended up writing a gcc plugin to find places passing an aggregate
to a varargs function.  But I still think some simpler way to get
a warning here would be nice.


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

* [Bug c++/64867] warning for passing non-POD to varargs function
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2015-02-02 19:38 ` tromey at gcc dot gnu.org
@ 2017-09-05 14:11 ` rsandifo at gcc dot gnu.org
  2021-09-03 18:17 ` [Bug c++/64867] split warning for passing non-POD to varargs function from -Wconditionally-supported into new warning flag, -Wnon-pod-varargs dcb314 at hotmail dot com
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2017-09-05 14:11 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: 1375529 bytes --]

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

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

--- Comment #18 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #16)
> (In reply to John Steele Scott from comment #14)
> > FWIW Clang has this warning via -Wnon-pod-varargs.
> 
> Confirmed, gcc having this warning would help avoid:
> http://gcc.gnu.org/ml/gcc-patches/2017-09/msg00126.html

Yeah.  The situation is similar to the code in comment #4,
which as Jakub says in comment #10 no longer produces a warning
with g++ -Wconditionally-supported.  I had to add a dummy
destructor to get one.
>From gcc-bugs-return-574343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 14:24:43 2017
Return-Path: <gcc-bugs-return-574343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29618 invoked by alias); 5 Sep 2017 14: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 11515 invoked by uid 48); 5 Sep 2017 14:24:34 -0000
From: "thiago at kde dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/71660] [5/6/7/8 regression] alignment of std::atomic<8 byte primitive type> (long long, double) is wrong on x86
Date: Tue, 05 Sep 2017 14:24: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: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thiago at kde dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71660-4-7dU5wDYzXs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00372.txt.bz2
Content-length: 1034

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

--- Comment #8 from Thiago Macieira <thiago at kde dot org> ---
(In reply to Peter Cordes from comment #7)
> 8B alignment is required for 8B objects to be efficiently lock-free (using
> SSE load / store for .load() and .store(), see
> https://stackoverflow.com/questions/36624881/why-is-integer-assignment-on-a-
> naturally-aligned-variable-atomic), and to avoid a factor of ~100 slowdown
> if lock cmpxchg8b is split across a cache-line boundary.

Unfortunately, the issue is not efficiency, but compatibility. The change broke
ABI for roughly 50% of structs containing atomic<64bit>. I understand being
fast, but not at the expense of silently breaking code at runtime.

> alignof(long double) in 32-bit is different from alignof(long double) in
> 64-bit.  std::atomic<long double> or _Atomic long double should always have
> the same alignment as long double.

In and out of structs? That's the whole problem: inside structs, the alignment
is 4 for historical reasons.
>From gcc-bugs-return-574344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 14:44:54 2017
Return-Path: <gcc-bugs-return-574344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67498 invoked by alias); 5 Sep 2017 14:44: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 54839 invoked by uid 48); 5 Sep 2017 14:44:45 -0000
From: "asb at lowrisc dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82106] New: [RISCV] Misaligned loads generated when doubles are split between stack and registers
Date: Tue, 05 Sep 2017 14:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asb at lowrisc 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-82106-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00373.txt.bz2
Content-length: 5696

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

            Bug ID: 82106
           Summary: [RISCV] Misaligned loads generated when doubles are
                    split between stack and registers
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asb at lowrisc dot org
  Target Milestone: ---

Created attachment 42127
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42127&action=edit
Simple program to reproduce this problem

When targeting RISC-V, GCC will allocate space on the stack for values which
are split between argument registers and the stack. If the type has alignment
larger than xlen, it is possible for misaligned loads to be generated. This can
be observed when passing a double in the attached example. The below is
generated using GCC r251714.

$ cat call.c

typedef long long int int64_t;
struct large_struct { int64_t h1; int64_t h2; };

void fun_float(float);
void fun_double(double);
void fun_int64(int64_t);

void callee(float fa0, float fa1, float fa2, float fa3, float fa4, float fa5, 
    float fa6, float fa7, int a0, int a1, int a2, int a3, int a4, int a5, int 
    a6, double a7_s0, int64_t s1, float s2, struct large_struct s3) {
  fun_double(a7_s0);
  fun_int64(s1);
  fun_float(s2);
  fun_int64(s3.h1);
  fun_int64(s3.h2);
  return;
}

/riscv32-unknown-elf-gcc -v -c call.c -march=rv32ifd -mabi=ilp32d -O1
-fno-omit-frame-pointer -S -o -Using built-in specs.
COLLECT_GCC=./riscv32-unknown-elf-gcc
Target: riscv32-unknown-elf
Configured with: ../configure --target=riscv32-unknown-elf --enable-languages=c
--disable-shared --disable-threads --disable-multilib --disable-gdb
--disable-libssp --with-newlib --with-arch=rv32ima --with-abi=ilp32
--prefix=/home/asb/work/2017_09_05_gcc_build/combined/build/built
Thread model: single
gcc version 8.0.0 20170905 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-c' '-march=rv32ifd' '-mabi=ilp32d' '-O1'
'-fno-omit-frame-pointer' '-S' '-o' '-'

/home/asb/work/2017_09_05_gcc_build/combined/build/built/libexec/gcc/riscv32-unknown-elf/8.0.0/cc1
-quiet -v call.c -quiet -dumpbase call.c -march=rv32ifd -mabi=ilp32d
-auxbase-strip - -O1 -version -fno-omit-frame-pointer -o -
GNU C11 (GCC) version 8.0.0 20170905 (experimental) (riscv32-unknown-elf)
        compiled by GNU C version 7.1.1 20170630, GMP version 6.1.2, MPFR
version 3.1.5-p2, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory
"/home/asb/work/2017_09_05_gcc_build/combined/build/built/lib/gcc/riscv32-unknown-elf/8.0.0/../../../../riscv32-unknown-elf/sys-include"
#include "..." search starts here:
#include <...> search starts here:

/home/asb/work/2017_09_05_gcc_build/combined/build/built/lib/gcc/riscv32-unknown-elf/8.0.0/include

/home/asb/work/2017_09_05_gcc_build/combined/build/built/lib/gcc/riscv32-unknown-elf/8.0.0/include-fixed

/home/asb/work/2017_09_05_gcc_build/combined/build/built/lib/gcc/riscv32-unknown-elf/8.0.0/../../../../riscv32-unknown-elf/include
End of search list.
GNU C11 (GCC) version 8.0.0 20170905 (experimental) (riscv32-unknown-elf)
        compiled by GNU C version 7.1.1 20170630, GMP version 6.1.2, MPFR
version 3.1.5-p2, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 82d1950b419a8e1b72499dc8b233dd66
        .file   "call.c"
        .option nopic
        .text
        .align  2
        .globl  callee
        .type   callee, @function
callee:
        add     sp,sp,-32
        sw      ra,12(sp)
        sw      s0,8(sp)
        sw      s1,4(sp)
        add     s0,sp,16
        sw      a7,12(s0)
        lw      s1,36(s0)
        fld     fa0,12(s0)
        call    fun_double
        lw      a0,24(s0)
        lw      a1,28(s0)
        call    fun_int64
        flw     fa0,32(s0)
        call    fun_float
        lw      a0,0(s1)
        lw      a1,4(s1)
        call    fun_int64
        lw      a0,8(s1)
        lw      a1,12(s1)
        call    fun_int64
        lw      ra,12(sp)
        lw      s0,8(sp)
        lw      s1,4(sp)
        add     sp,sp,32
        jr      ra
        .size   callee, .-callee
        .ident  "GCC: (GNU) 8.0.0 20170905 (experimental)"
COMPILER_PATH=/home/asb/work/2017_09_05_gcc_build/combined/build/built/libexec/gcc/riscv32-unknown-elf/8.0.0/:/home/asb/work/2017_09_05_gcc_build/combined/build/built/libexec/gcc/riscv32-unknown-elf/8.0.0/:/home/asb/work/2017_09_05_gcc_build/combined/build/built/libexec/gcc/riscv32-unknown-elf/:/home/asb/work/2017_09_05_gcc_build/combined/build/built/lib/gcc/riscv32-unknown-elf/8.0.0/:/home/asb/work/2017_09_05_gcc_build/combined/build/built/lib/gcc/riscv32-unknown-elf/:/home/asb/work/2017_09_05_gcc_build/combined/build/built/lib/gcc/riscv32-unknown-elf/8.0.0/../../../../riscv32-unknown-elf/bin/
LIBRARY_PATH=/home/asb/work/2017_09_05_gcc_build/combined/build/built/lib/gcc/riscv32-unknown-elf/8.0.0/:/home/asb/work/2017_09_05_gcc_build/combined/build/built/lib/gcc/riscv32-unknown-elf/8.0.0/../../../../riscv32-unknown-elf/lib/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-c' '-march=rv32ifd' '-mabi=ilp32d' '-O1'
'-fno-omit-frame-pointer' '-S' '-o' '-'

`fld    fa0,12(s0)` is using a misaligned stack address. Although this should
work, the compiler should avoid generating misaligned accesses where possible
as they may be trigger an exception and an emulation routine.
>From gcc-bugs-return-574345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 14:56:46 2017
Return-Path: <gcc-bugs-return-574345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96091 invoked by alias); 5 Sep 2017 14:56: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 92138 invoked by uid 48); 5 Sep 2017 14:56:38 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65146] alignment of _Atomic structure member is not correct
Date: Tue, 05 Sep 2017 14:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65146-4-jDLHJX6Ufo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00374.txt.bz2
Content-length: 244

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

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
We need to first decide what we want out of i386 atomic.
Please send a post to

https://groups.google.com/forum/#!forum/ia32-abi
>From gcc-bugs-return-574346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 15:13:29 2017
Return-Path: <gcc-bugs-return-574346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27600 invoked by alias); 5 Sep 2017 15:13: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 14535 invoked by uid 48); 5 Sep 2017 15:13:20 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82043] error: redefinition of ...
Date: Tue, 05 Sep 2017 15:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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-82043-4-0hHHtANPzN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82043-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82043-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00375.txt.bz2
Content-length: 204

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

--- Comment #7 from Ian Lance Taylor <ian at airs dot com> ---
Sorry, I'm not sure what is causing that error.

Why don't you just compile GCC trunk?
>From gcc-bugs-return-574347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 15:29:32 2017
Return-Path: <gcc-bugs-return-574347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116947 invoked by alias); 5 Sep 2017 15: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 113550 invoked by uid 48); 5 Sep 2017 15:29:23 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82105] unexpected padding in a struct
Date: Tue, 05 Sep 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: c
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82105-4-Z8KvjdjRs5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00376.txt.bz2
Content-length: 2182

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

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

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
I combined these all into a single testcase:

$ cat 82105.c
typedef struct {
        unsigned int x:16;
        unsigned int y:17;
        unsigned short z0; /* -Wpadded 1 */
} XXX; /* -Wpadded 2 */

typedef struct __attribute__((packed,aligned(4))) {
    unsigned int x:16;
    unsigned int y:17;
    unsigned short z1; /* -Wpadded 3 */
} XXY; /* -Wpadded 4 */

typedef struct {
        unsigned int x:1;
        unsigned int y:1;
        unsigned short z2; /* -Wpadded 5 */
} XYX; /* silent, good */

typedef struct {
        unsigned int x:16;
        unsigned int y:16;
        unsigned short z3; /* silent, good */
} XYY; /* -Wpadded 6 */
$ /usr/local/bin/gcc -c -Wall -Wextra -pedantic -Wpadded -Wpacked -O2 82105.c
82105.c:4:17: warning: padding struct to align ‘z0’ [-Wpadded]
  unsigned short z0; /* -Wpadded 1 */
                 ^~
82105.c:5:1: warning: padding struct size to alignment boundary [-Wpadded]
 } XXX; /* -Wpadded 2 */
 ^
82105.c:10:20: warning: padding struct to align ‘z1’ [-Wpadded]
     unsigned short z1; /* -Wpadded 3 */
                    ^~
82105.c:11:1: warning: padding struct size to alignment boundary [-Wpadded]
 } XXY; /* -Wpadded 4 */
 ^
82105.c:16:17: warning: padding struct to align ‘z2’ [-Wpadded]
  unsigned short z2; /* -Wpadded 5 */
                 ^~
82105.c:23:1: warning: padding struct size to alignment boundary [-Wpadded]
 } XYY; /* -Wpadded 6 */
 ^
$ 

(In reply to Richard Biener from comment #1)
> This is how bitfields work.  You can use
> 
> typedef struct __attribute__((packed,aligned(4))) {
>     unsigned int x:16;
>     unsigned int y:17;
>     unsigned short z;
> } XXX;
> 
> to get what you want.

It still prints -Wpadded warnings despite the attributes though.
>From gcc-bugs-return-574348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 15:37:09 2017
Return-Path: <gcc-bugs-return-574348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17095 invoked by alias); 5 Sep 2017 15:37:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 6630 invoked by uid 48); 5 Sep 2017 15:37:01 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64867] warning for passing non-POD to varargs function
Date: Tue, 05 Sep 2017 15:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64867-4-ry3Hnak5e6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64867-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64867-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00377.txt.bz2
Content-length: 295

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

--- Comment #19 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Whether Clang warns or not depends on the -std mode active, as that decides the
definition of a POD it uses. GCC always uses the C++11 rule, which I quoted in
comment 9.
>From gcc-bugs-return-574349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 15:43:24 2017
Return-Path: <gcc-bugs-return-574349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73000 invoked by alias); 5 Sep 2017 15:43: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 72677 invoked by uid 48); 5 Sep 2017 15:43:16 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/71660] [5/6/7/8 regression] alignment of std::atomic<8 byte primitive type> (long long, double) is wrong on x86
Date: Tue, 05 Sep 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: libstdc++
X-Bugzilla-Version: 6.1.1
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools 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: cc dependson
Message-ID: <bug-71660-4-gF54I4zbrC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00378.txt.bz2
Content-length: 593

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

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

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

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
This is related to PR 65146.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65146
[Bug 65146] alignment of _Atomic structure member is not correct
>From gcc-bugs-return-574350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 15:51:33 2017
Return-Path: <gcc-bugs-return-574350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65670 invoked by alias); 5 Sep 2017 15:51: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 65600 invoked by uid 48); 5 Sep 2017 15:51:25 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82080] ICE: Segmentation fault
Date: Tue, 05 Sep 2017 15:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82080-4-JC85FX3SmF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82080-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82080-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00379.txt.bz2
Content-length: 582

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Created attachment 42128
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42128&action=edit
error messages printed when trying to compile

I can't reproduce this bug on i386-apple-darwin9.8.0; with -m32 I get a bunch
of normal errors (attached because the output is really long), but no ICEs.
With -m64 I get no messages at all and the compile completes successfully. I'll
leave this for someone with the same platform as you to try to reproduce.
>From gcc-bugs-return-574352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 15:55:46 2017
Return-Path: <gcc-bugs-return-574352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78164 invoked by alias); 5 Sep 2017 15:55: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 78045 invoked by uid 55); 5 Sep 2017 15:55:38 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82072] sanitizer does not detect an overflow from LLONG_MIN
Date: Tue, 05 Sep 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: sanitizer
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82072-4-OqCRYeYVGd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82072-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82072-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00381.txt.bz2
Content-length: 604

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

--- Comment #16 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Sep  5 15:55:04 2017
New Revision: 251717

URL: https://gcc.gnu.org/viewcvs?rev=251717&root=gcc&view=rev
Log:
        PR sanitizer/82072
        * convert.c (convert_to_integer_1) <case NEGATE_EXPR>: Move the ubsan
        check earlier.

        * c-c++-common/ubsan/pr82072-2.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/ubsan/pr82072-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/convert.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 15:55:17 2017
Return-Path: <gcc-bugs-return-574351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77143 invoked by alias); 5 Sep 2017 15:55:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76974 invoked by uid 48); 5 Sep 2017 15:55:10 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82075] structured binding fails with empty base class
Date: Tue, 05 Sep 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82075-4-LtDxCdTHHt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82075-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82075-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00380.txt.bz2
Content-length: 597

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-05
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that gcc errors on the example.
>From gcc-bugs-return-574353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 15:56:10 2017
Return-Path: <gcc-bugs-return-574353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79038 invoked by alias); 5 Sep 2017 15: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 78950 invoked by uid 48); 5 Sep 2017 15:56:03 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82072] sanitizer does not detect an overflow from LLONG_MIN
Date: Tue, 05 Sep 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: sanitizer
X-Bugzilla-Version: 8.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-82072-4-RtCiavd0iu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82072-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82072-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00382.txt.bz2
Content-length: 384

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

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-574354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 15:56:31 2017
Return-Path: <gcc-bugs-return-574354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88004 invoked by alias); 5 Sep 2017 15:56: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 82448 invoked by uid 48); 5 Sep 2017 15:56:24 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82072] sanitizer does not detect an overflow from LLONG_MIN
Date: Tue, 05 Sep 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: sanitizer
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82072-4-4BSOdVGEF2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82072-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82072-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00383.txt.bz2
Content-length: 430

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

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

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

--- Comment #17 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-574355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:02:28 2017
Return-Path: <gcc-bugs-return-574355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112314 invoked by alias); 5 Sep 2017 16:02: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 112094 invoked by uid 48); 5 Sep 2017 16:02:15 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82073] internal compiler error: in pop_to_marker, at tree-ssa-scopedtables.c
Date: Tue, 05 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82073-4-Eex4vdCz2C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82073-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82073-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00384.txt.bz2
Content-length: 472

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Could you post the output of g++ -v so we have version and target info please?
>From gcc-bugs-return-574356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:05:39 2017
Return-Path: <gcc-bugs-return-574356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115694 invoked by alias); 5 Sep 2017 16: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 115630 invoked by uid 48); 5 Sep 2017 16:05:32 -0000
From: "loquens at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82107] New: O2 optimisation on amd64 leads to error
Date: Tue, 05 Sep 2017 16: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: loquens at yandex dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00385.txt.bz2
Content-length: 2098

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

            Bug ID: 82107
           Summary: O2 optimisation on amd64 leads to error
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: loquens at yandex dot ru
  Target Milestone: ---

Created attachment 42129
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42129&action=edit
full error example sources

Complete source code attached.

Steps to reproduce this bug in amd64-environment:
 * extract archive contents
 * enter directory optfail
 * call make
 * run ./optimization_fail - program will hang

Please see comments marked "IMPORTANT" in sources and Makefile. All theese
notes change behaviour (error dissapears).

Originally found on GCC-6.3.0 compiled from sources, but 7.0.1 (from Ubuntu
17.04 repos, full version shown below) and 7.2.0 (compiled from sources, same
flags as 6.3.0, shown below) also produce error.

$ lsb_release -a
LSB Version:   
core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 17.04
Release:    17.04
Codename:   zesty
$ g++ --version
g++ (Ubuntu 7-20170407-0ubuntu2) 7.0.1 20170407 (experimental) [trunk revision
246759]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


gcc-7.2.0 compilation flags:
./configure --disable-cloog-version-check \
    --disable-ppl-version-check --enable-cloog-backend=isl \
    --enable-gold --enable-languages=c,c++ --enable-lto --enable-libssp \
    --prefix=/install/prefix --with-cloog=/install/prefix \
    --with-gmp=/install/prefix --with-mlgmp=/install/prefix \
    --with-mpc=/install/prefix --with-mpfr=/install/prefix \
    --with-ppl=/install/prefix

With best regards,
loquens
>From gcc-bugs-return-574357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:07:46 2017
Return-Path: <gcc-bugs-return-574357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122969 invoked by alias); 5 Sep 2017 16:07: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 122916 invoked by uid 48); 5 Sep 2017 16:07:38 -0000
From: "loquens at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82107] O2 optimisation on amd64 leads to error
Date: Tue, 05 Sep 2017 16: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: loquens at yandex dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82107-4-Wf59olZh9X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00386.txt.bz2
Content-length: 347

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

--- Comment #1 from loquens at yandex dot ru ---
Additional research found, that error produced by 
-O1 and -finline-small-functions -fipa-icf -foptimize-sibling-calls.

All three flags must be present to get an error.

If you exclude -foptimize-sibling-calls, you'll get an stack overflow.
>From gcc-bugs-return-574358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:16:22 2017
Return-Path: <gcc-bugs-return-574358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125637 invoked by alias); 5 Sep 2017 16: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 125485 invoked by uid 48); 5 Sep 2017 16:16:14 -0000
From: "palmer at dabbelt dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82106] [RISCV] Misaligned loads generated when doubles are split between stack and registers
Date: Tue, 05 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: palmer at dabbelt 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-82106-4-YPbe4M8ijH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00387.txt.bz2
Content-length: 343

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

--- Comment #1 from Palmer Dabbelt <palmer at dabbelt dot com> ---
Ugh.  I'd really like to call this a bug and fix it, but since it'll
technically break the ABI it'll require some more thought.

Does "-mstrict-align" change the behavior?  That would be a good argument to
fix the bug :).
>From gcc-bugs-return-574359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:26:31 2017
Return-Path: <gcc-bugs-return-574359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13443 invoked by alias); 5 Sep 2017 16:26: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 13380 invoked by uid 48); 5 Sep 2017 16:26:23 -0000
From: "asb at lowrisc dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82106] [RISCV] Misaligned loads generated when doubles are split between stack and registers
Date: Tue, 05 Sep 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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asb at lowrisc 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-82106-4-UCRbxgGJXJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00388.txt.bz2
Content-length: 1051

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

--- Comment #2 from Alex Bradbury <asb at lowrisc dot org> ---
Same problem with `-mstrict-align`, which as you say makes this worse.

I'm actually not sure if this is an ABI-visible issue. The vararg save area and
it's location is basically required by the ABI due to the dual restrictions of
1) keeping saved fp and ra at consistent offsets to s0, and 2) ensure that
argument registers are contiguous with arguments passed via the stack. I might
be missing something obvious, but I'm not seeing any similar restrictions that
enforce the use of a save area for arguments split between the stack and a
register. I posted to RISC-V sw-dev for another opinion on this
<https://groups.google.com/a/groups.riscv.org/d/msg/sw-dev/SsO9Dq7wooI/OioZNHUAAwAJ>.
It's very possible I'm missing something obvious of course.

Assuming I'm not missing anything, I don't think it would be ABI-visible to
change gcc so it reconstructs the split argument as a local in a
properly-aligned stack location.
>From gcc-bugs-return-574360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:29:51 2017
Return-Path: <gcc-bugs-return-574360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75526 invoked by alias); 5 Sep 2017 16:29: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 69104 invoked by uid 48); 5 Sep 2017 16:29:42 -0000
From: "vsevolod.livinskij at frtk dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82073] internal compiler error: in pop_to_marker, at tree-ssa-scopedtables.c
Date: Tue, 05 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vsevolod.livinskij at frtk dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82073-4-hseaJZeCly@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82073-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82073-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00389.txt.bz2
Content-length: 549

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

--- Comment #2 from Vsevolod Livinskiy <vsevolod.livinskij at frtk dot ru> ---
(In reply to Eric Gallager from comment #1)
> Could you post the output of g++ -v so we have version and target info
> please?
Revision is 251589

>$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /gcc-dev/bin-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170901 (experimental) (GCC)
>From gcc-bugs-return-574362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:32:58 2017
Return-Path: <gcc-bugs-return-574362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12480 invoked by alias); 5 Sep 2017 16:32:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12406 invoked by uid 48); 5 Sep 2017 16:32:48 -0000
From: "ell_se at yahoo dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82108] New: [7.2 Regression] Wrong vectorized code generated for x86_64
Date: Tue, 05 Sep 2017 16:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ell_se 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-82108-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00391.txt.bz2
Content-length: 2920

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

            Bug ID: 82108
           Summary: [7.2 Regression] Wrong vectorized code generated for
                    x86_64
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ell_se at yahoo dot com
  Target Milestone: ---

The following snippet generates wrong vectorized code with GCC 7.2 on x86_64
with -O3:

  void downscale_2 (const float* src, int src_n, float* dst) {
    int i;

    for (i = 0; i < src_n; i += 2) {
      const float* a = src;
      const float* b = src + 4;

      dst[0] = (a[0] + b[0]) / 2;
      dst[1] = (a[1] + b[1]) / 2;
      dst[2] = (a[2] + b[2]) / 2;
      dst[3] = (a[3] + b[3]) / 2;

      src += 2 * 4;
      dst +=     4;
    }

The assembly for the vectorized version of the loop is:

  .L5:
          addl    $1, %ecx
          movups  (%rdi,%rax), %xmm0
          movups  16(%rdi,%rax,2), %xmm2
          addps   %xmm2, %xmm0
          mulps   %xmm1, %xmm0
          movups  %xmm0, (%rdx,%rax)
          addq    $16, %rax
          cmpl    %r8d, %ecx
          jb      .L5

Notice the missing ,2 on the first movups.

It can be tested with:

  #include <stdio.h>

  int main () {
    const float in[4 * 4] = {
      1, 2, 3, 4,
      5, 6, 7, 8,

      1, 2, 3, 4,
      5, 6, 7, 8
    };
    float out[2 * 4];

    downscale_2 (in, 4, out);

    /* correct: 3, 4, 5, 6 */
    printf ("%g, %g, %g, %g\n", out[0], out[1], out[2], out[3]);

    /* incorrect: 5, 6, 7, 8; should also be 3, 4, 5, 6 */
    printf ("%g, %g, %g, %g\n", out[4], out[5], out[6], out[7]);
  }

This doesn't seem to happen with 7.1 or 6.3.

For a chuckle, this affects a recent build of GIMP, and has resulted in this
beauty:
https://bug787222.bugzilla-attachments.gnome.org/attachment.cgi?id=359042 :)

$gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/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 --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.2.0 (GCC)
>From gcc-bugs-return-574361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:32:21 2017
Return-Path: <gcc-bugs-return-574361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10501 invoked by alias); 5 Sep 2017 16:32: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 9475 invoked by uid 48); 5 Sep 2017 16:32:13 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81787] [5/6/7/8 Regression] `#pragma GCC diagnostic warning "-fpermissive"` no longer works since gcc 4.8
Date: Tue, 05 Sep 2017 16: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.1.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81787-4-BL6prrngnI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81787-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81787-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00390.txt.bz2
Content-length: 1097

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

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> (In reply to Manuel López-Ibáñez from comment #2)
> > My personal opinion is that we should instead have -Wpermissive, which
> > defaults to -Werror=permissive and works like any other -W* option should
> > (and would work with #pragma). -fpermissive can then become an alias for
> > -Wpermissive, like I did with -pedantic -> -Wpedantic.
> 
> No no no no. It's not a warning option.

As far as I know, it is currently just an option controlling the type of
diagnostics, it doesn't change the meaning of the code. It doesn't change the
language. The doc just says:

Downgrade some diagnostics about nonconformant code from errors to warnings.
Thus, using -fpermissive allows some nonconforming code to compile.

Preventing users from downgrading the errors to warnings (or disabling them
completely) in specific parts of the code is just going to annoy people, as the
SO posts show.
>From gcc-bugs-return-574364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:40:05 2017
Return-Path: <gcc-bugs-return-574364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24029 invoked by alias); 5 Sep 2017 16:40: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 23513 invoked by uid 55); 5 Sep 2017 16:39:57 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81769] Unnecessary stack realign with -mavx
Date: Tue, 05 Sep 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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl 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-81769-4-HA1J4AImDy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00393.txt.bz2
Content-length: 1863

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

--- Comment #1 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Sep  5 16:39:24 2017
New Revision: 251718

URL: https://gcc.gnu.org/viewcvs?rev=251718&root=gcc&view=rev
Log:
i386: Avoid stack realignment if possible

ix86_finalize_stack_frame_flags has been extended to eliminate frame
pointer when the new stack frame isn't needed with and without
-maccumulate-outgoing-args as well as -fomit-frame-pointer.  Since stack
access with larger alignment may be optimized out, to decide if stack
realignment is needed, we need to not only check for stack frame access,
but also verify the alignment of stack frame access.  Since alignment of
memory access via arg_pointer is set up by caller, not by callee, we
should find the maximum stack alignment from the stack frame access
instructions via stack pointer and frame pointrer to avoid stack
realignment when stack alignment needed is less than incoming stack
boundary.

gcc/

        PR target/59501
        PR target/81624
        PR target/81769
        * config/i386/i386.c (ix86_finalize_stack_frame_flags): Don't
        realign stack if stack alignment needed is less than incoming
        stack boundary.

gcc/testsuite/

        PR target/59501
        PR target/81624
        PR target/81769
        * gcc.target/i386/pr59501-4a.c: Remove xfail.
        * gcc.target/i386/pr81769-1a.c: New test.
        * gcc.target/i386/pr81769-1b.c: Likewise.
        * gcc.target/i386/pr81769-2.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr81769-1a.c
    trunk/gcc/testsuite/gcc.target/i386/pr81769-1b.c
    trunk/gcc/testsuite/gcc.target/i386/pr81769-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr59501-4a.c
>From gcc-bugs-return-574365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:40:05 2017
Return-Path: <gcc-bugs-return-574365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24104 invoked by alias); 5 Sep 2017 16:40: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 23497 invoked by uid 55); 5 Sep 2017 16:39:57 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/81624] [8 Regression] FAIL: gcc.target/i386/pr59501-3a.c scan-assembler-not and[^\n\r]*sp
Date: Tue, 05 Sep 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: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: hjl.tools at gmail dot com
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81624-4-KJLvY91BXt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81624-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81624-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00394.txt.bz2
Content-length: 1863

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

--- Comment #3 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Sep  5 16:39:24 2017
New Revision: 251718

URL: https://gcc.gnu.org/viewcvs?rev=251718&root=gcc&view=rev
Log:
i386: Avoid stack realignment if possible

ix86_finalize_stack_frame_flags has been extended to eliminate frame
pointer when the new stack frame isn't needed with and without
-maccumulate-outgoing-args as well as -fomit-frame-pointer.  Since stack
access with larger alignment may be optimized out, to decide if stack
realignment is needed, we need to not only check for stack frame access,
but also verify the alignment of stack frame access.  Since alignment of
memory access via arg_pointer is set up by caller, not by callee, we
should find the maximum stack alignment from the stack frame access
instructions via stack pointer and frame pointrer to avoid stack
realignment when stack alignment needed is less than incoming stack
boundary.

gcc/

        PR target/59501
        PR target/81624
        PR target/81769
        * config/i386/i386.c (ix86_finalize_stack_frame_flags): Don't
        realign stack if stack alignment needed is less than incoming
        stack boundary.

gcc/testsuite/

        PR target/59501
        PR target/81624
        PR target/81769
        * gcc.target/i386/pr59501-4a.c: Remove xfail.
        * gcc.target/i386/pr81769-1a.c: New test.
        * gcc.target/i386/pr81769-1b.c: Likewise.
        * gcc.target/i386/pr81769-2.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr81769-1a.c
    trunk/gcc/testsuite/gcc.target/i386/pr81769-1b.c
    trunk/gcc/testsuite/gcc.target/i386/pr81769-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr59501-4a.c
>From gcc-bugs-return-574363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:40:05 2017
Return-Path: <gcc-bugs-return-574363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24019 invoked by alias); 5 Sep 2017 16:40:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23496 invoked by uid 55); 5 Sep 2017 16:39:57 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/59501] [4.9 Regression] Vector Gather with GCC 4.9 2013-12-08 Snapshot
Date: Tue, 05 Sep 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: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl 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: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59501-4-ixMLoXMgwW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59501-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59501-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00392.txt.bz2
Content-length: 1863

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

--- Comment #7 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Sep  5 16:39:24 2017
New Revision: 251718

URL: https://gcc.gnu.org/viewcvs?rev=251718&root=gcc&view=rev
Log:
i386: Avoid stack realignment if possible

ix86_finalize_stack_frame_flags has been extended to eliminate frame
pointer when the new stack frame isn't needed with and without
-maccumulate-outgoing-args as well as -fomit-frame-pointer.  Since stack
access with larger alignment may be optimized out, to decide if stack
realignment is needed, we need to not only check for stack frame access,
but also verify the alignment of stack frame access.  Since alignment of
memory access via arg_pointer is set up by caller, not by callee, we
should find the maximum stack alignment from the stack frame access
instructions via stack pointer and frame pointrer to avoid stack
realignment when stack alignment needed is less than incoming stack
boundary.

gcc/

        PR target/59501
        PR target/81624
        PR target/81769
        * config/i386/i386.c (ix86_finalize_stack_frame_flags): Don't
        realign stack if stack alignment needed is less than incoming
        stack boundary.

gcc/testsuite/

        PR target/59501
        PR target/81624
        PR target/81769
        * gcc.target/i386/pr59501-4a.c: Remove xfail.
        * gcc.target/i386/pr81769-1a.c: New test.
        * gcc.target/i386/pr81769-1b.c: Likewise.
        * gcc.target/i386/pr81769-2.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr81769-1a.c
    trunk/gcc/testsuite/gcc.target/i386/pr81769-1b.c
    trunk/gcc/testsuite/gcc.target/i386/pr81769-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr59501-4a.c
>From gcc-bugs-return-574366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 16:44:14 2017
Return-Path: <gcc-bugs-return-574366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16733 invoked by alias); 5 Sep 2017 16:44: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 6237 invoked by uid 48); 5 Sep 2017 16:44:07 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80925] [8 Regression] vect peeling failures
Date: Tue, 05 Sep 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: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-80925-4-y1oydBxcoQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80925-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80925-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00395.txt.bz2
Content-length: 1209

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

Christophe Lyon <clyon at gcc dot gnu.org> changed:

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

--- Comment #21 from Christophe Lyon <clyon at gcc dot gnu.org> ---
(In reply to Steve Ellcey from comment #19)
> Author: sje
> Date: Mon Jul 31 21:44:34 2017
> New Revision: 250752
> 
> URL: https://gcc.gnu.org/viewcvs?rev=250752&root=gcc&view=rev
> Log:
> 2017-07-31  Steve Ellcey  <sellcey@cavium.com>
> 
> 	PR tree-optimization/80925
> 	* gcc.dg/vect/no-section-anchors-vect-69.c: Add 
> 	--param vect-max-peeling-for-alignment=0 option.
> 	Remove unaligned access and peeling checks.
> 	* gcc.dg/vect/section-anchors-vect-69.c: Ditto.
> 
> Modified:
>     trunk/gcc/testsuite/ChangeLog
>     trunk/gcc/testsuite/gcc.dg/vect/no-section-anchors-vect-69.c
>     trunk/gcc/testsuite/gcc.dg/vect/section-anchors-vect-69.c

I think this change caused regressions on armeb-none-linux-gnueabihf
--with-cpu=cortex-a9 --with-fpu=neon-fp16 (works OK --with-fpu=vfpv3-d16-fp16)
>From gcc-bugs-return-574367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 17:06:42 2017
Return-Path: <gcc-bugs-return-574367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39003 invoked by alias); 5 Sep 2017 17: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 38883 invoked by uid 48); 5 Sep 2017 17:06:34 -0000
From: "thiago at kde dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/71660] [5/6/7/8 regression] alignment of std::atomic<8 byte primitive type> (long long, double) is wrong on x86
Date: Tue, 05 Sep 2017 17:06: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: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thiago at kde dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71660-4-knUsCqoHNs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00396.txt.bz2
Content-length: 554

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

--- Comment #10 from Thiago Macieira <thiago at kde dot org> ---
Actually, PR 65146 points out that the problem is not efficiency but
correctness. An under-aligned type could cross a cacheline boundary and thus
fail to be atomic in the first place.

Therefore, it is correct to increase the alignment, even if that causes an ABI
change for existing structures. Those structures were disasters waiting to
happen.

I withdraw my bug report. Close it as INVALID or NOTABUG or whatever is
appropriate.
>From gcc-bugs-return-574368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 17:14:50 2017
Return-Path: <gcc-bugs-return-574368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109153 invoked by alias); 5 Sep 2017 17:14: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 108963 invoked by uid 48); 5 Sep 2017 17:14:42 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81787] [5/6/7/8 Regression] `#pragma GCC diagnostic warning "-fpermissive"` no longer works since gcc 4.8
Date: Tue, 05 Sep 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.1.0
X-Bugzilla-Keywords: diagnostic
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81787-4-w6wo5DLKTG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81787-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81787-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00397.txt.bz2
Content-length: 228

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Accepting invalid C++ changes the language. It's not a diagnostic option, it's
closer to -std in meaning.
>From gcc-bugs-return-574369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 17:22:50 2017
Return-Path: <gcc-bugs-return-574369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80789 invoked by alias); 5 Sep 2017 17:22: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 77680 invoked by uid 48); 5 Sep 2017 17:22:42 -0000
From: "dudu.arbel at ilrd dot co.il" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82105] unexpected padding in a struct
Date: Tue, 05 Sep 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.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dudu.arbel at ilrd dot co.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-82105-4-SOh85Hq5nz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00398.txt.bz2
Content-length: 409

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

--- Comment #6 from Dudu <dudu.arbel at ilrd dot co.il> ---
Thanks for the replies, but I do not look to workaround this issue.
I simply wonder why gcc behaves as it does on this case.
This behavior breaks my understanding of padding.
This behavior seems wrong.
This behavior looks like a bug.

If this behavior is expected - can anyone explain it to me?
>From gcc-bugs-return-574370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 17:36:33 2017
Return-Path: <gcc-bugs-return-574370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104012 invoked by alias); 5 Sep 2017 17:36: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 103802 invoked by uid 48); 5 Sep 2017 17:36:26 -0000
From: "jamrial at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82080] ICE: Segmentation fault
Date: Tue, 05 Sep 2017 17:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamrial at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-82080-4-I7nmuPqRtB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82080-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82080-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00399.txt.bz2
Content-length: 723

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

James Almer <jamrial at gmail dot com> changed:

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

--- Comment #2 from James Almer <jamrial at gmail dot com> ---
Created attachment 42130
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42130&action=edit
Preprocessed output created with -freport-bug

This one should have no warning spam about missing builtins. The original
preprocessed output was created with -march=native.

Still ICEs for me on an x86_64 ArchLinux host.
>From gcc-bugs-return-574371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 18:02:40 2017
Return-Path: <gcc-bugs-return-574371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93919 invoked by alias); 5 Sep 2017 18:02: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 93659 invoked by uid 48); 5 Sep 2017 18:02:32 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82108] [7/8 Regression] Wrong vectorized code generated for x86_64
Date: Tue, 05 Sep 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: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on cc everconfirmed short_desc target_milestone cf_known_to_fail
Message-ID: <bug-82108-4-HeHX50Dsxz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82108-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82108-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00400.txt.bz2
Content-length: 1104

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |6.4.0, 7.1.0
           Keywords|                            |wrong-code
   Last reconfirmed|                            |2017-09-05
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|[7.2 Regression] Wrong      |[7/8 Regression] Wrong
                   |vectorized code generated   |vectorized code generated
                   |for x86_64                  |for x86_64
   Target Milestone|---                         |7.3
      Known to fail|                            |7.2.0, 8.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r250312.
>From gcc-bugs-return-574372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 18:03:31 2017
Return-Path: <gcc-bugs-return-574372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95577 invoked by alias); 5 Sep 2017 18:03: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 95495 invoked by uid 48); 5 Sep 2017 18:03:22 -0000
From: "wilson at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82063] issues with arguments enabled by -Wall
Date: Tue, 05 Sep 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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilson at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82063-4-5To6KK27U1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82063-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82063-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00401.txt.bz2
Content-length: 512

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

--- Comment #5 from Jim Wilson <wilson at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #3)
> Jim, since you've spent some time on this already and understand the
> problems, please feel to propose a patch.  If you don't get to it I'll see
> if I can find the time to fix at least some of these problems in stage 3.

My current project makes contributing complicated.  I will write a patch when I
have a chance, but it may be a little while.
>From gcc-bugs-return-574373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 18:08:29 2017
Return-Path: <gcc-bugs-return-574373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19417 invoked by alias); 5 Sep 2017 18: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 19033 invoked by uid 55); 5 Sep 2017 18:08:20 -0000
From: "andrew at sifive dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82106] [RISCV] Misaligned loads generated when doubles are split between stack and registers
Date: Tue, 05 Sep 2017 18:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.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:
Message-ID: <bug-82106-4-Pqi75dVXGe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00402.txt.bz2
Content-length: 1418

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

--- Comment #3 from Andrew Waterman <andrew at sifive dot com> ---
I believe Alex is correct, in that this is an implementation artifact that
can be fixed without breaking the ABI.

On Tue, Sep 5, 2017 at 9:26 AM asb at lowrisc dot org <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82106
>
> --- Comment #2 from Alex Bradbury <asb at lowrisc dot org> ---
> Same problem with `-mstrict-align`, which as you say makes this worse.
>
> I'm actually not sure if this is an ABI-visible issue. The vararg save
> area and
> it's location is basically required by the ABI due to the dual
> restrictions of
> 1) keeping saved fp and ra at consistent offsets to s0, and 2) ensure that
> argument registers are contiguous with arguments passed via the stack. I
> might
> be missing something obvious, but I'm not seeing any similar restrictions
> that
> enforce the use of a save area for arguments split between the stack and a
> register. I posted to RISC-V sw-dev for another opinion on this
> <
> https://groups.google.com/a/groups.riscv.org/d/msg/sw-dev/SsO9Dq7wooI/OioZNHUAAwAJ
> >.
> It's very possible I'm missing something obvious of course.
>
> Assuming I'm not missing anything, I don't think it would be ABI-visible to
> change gcc so it reconstructs the split argument as a local in a
> properly-aligned stack location.
>From gcc-bugs-return-574374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 18:15:50 2017
Return-Path: <gcc-bugs-return-574374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44481 invoked by alias); 5 Sep 2017 18: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 44214 invoked by uid 48); 5 Sep 2017 18:15:32 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82107] [5/6/7/8 Regression] O2 optimisation on amd64 leads to error
Date: Tue, 05 Sep 2017 18:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status keywords cf_reconfirmed_on cc assigned_to everconfirmed short_desc target_milestone
Message-ID: <bug-82107-4-56DjUmgfY4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00403.txt.bz2
Content-length: 1866

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |wrong-code
   Last reconfirmed|                            |2017-09-05
                 CC|                            |marxin at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|O2 optimisation on amd64    |[5/6/7/8 Regression] O2
                   |leads to error              |optimisation on amd64 leads
                   |                            |to error
   Target Milestone|---                         |8.0

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r221406, which is IPA ICF related revision.
ICF is responsible for following merge:

void FooBase<T>::payload(std::__cxx11::wstring&, std::__cxx11::wstring&) [with
T = FooImpl] (struct FooBase * const this, struct wstring & result1, struct
wstring & result2)
{
  <bb 2> [100.00%]:
  std::__cxx11::basic_string<wchar_t>::assign (result1_3(D), "r");
  std::__cxx11::basic_string<wchar_t>::assign (result2_4(D), "r");
  return;

}


void FooImpl::real_payload(std::__cxx11::wstring&, std::__cxx11::wstring&)
(struct FooImpl * const this, struct wstring & result1, struct wstring &
result2)
{
  <bb 2> [100.00%]:
  std::__cxx11::basic_string<wchar_t>::assign (result1_2(D), "r");
  std::__cxx11::basic_string<wchar_t>::assign (result2_3(D), "r");
  return;

}

Which should be fine as both functions do not touch this pointer. I'll
investigate more tomorrow.
Sorry for the breakage.
>From gcc-bugs-return-574375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 18:25:27 2017
Return-Path: <gcc-bugs-return-574375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74384 invoked by alias); 5 Sep 2017 18: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 74172 invoked by uid 48); 5 Sep 2017 18:25:18 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82064] [7/8 Regression] [OOP] multiple incompatible definitions of extended derived type via module use
Date: Tue, 05 Sep 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: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82064-4-YUikJ0d044@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82064-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82064-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00404.txt.bz2
Content-length: 884

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

--- Comment #5 from janus at gcc dot gnu.org ---
(In reply to Paul Thomas from comment #4)
> (In reply to janus from comment #3)
> > It appears that the regression has been introduced by r241450, which was the
> > fix for PR 69834. Reverting it, in particular the changes to
> > resolve_select_type, makes the error go away.
> 
> Strangely, my GNU Fortran (GCC) 8.0.0 20170830 gives me two "OK"s :-)

Also on the version with separate files?


> That said, this is a repeat of another recent bug (sorry, I am rushing off
> to work - no time to find the number). I posted a work around, which
> translates in this case to:
> 
> [..]
> 
> The permanent fix is to make sure that the vtables get produced
> unconditionally for module derived types.

I thought we already did that, but probably we're still missing some cases?
>From gcc-bugs-return-574376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 18:30:34 2017
Return-Path: <gcc-bugs-return-574376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18833 invoked by alias); 5 Sep 2017 18:30:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18614 invoked by uid 48); 5 Sep 2017 18:30:25 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78015] pthread_cancel while some exception is pending results in std::terminate ()
Date: Tue, 05 Sep 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: 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-78015-4-5O2w6OoMpO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78015-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78015-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00405.txt.bz2
Content-length: 244

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
No, but I'm not familiar enough with the C++ EH libsupc++ stuff to write it
myself.  Jason, do you think you could try that?
>From gcc-bugs-return-574377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 18:36:45 2017
Return-Path: <gcc-bugs-return-574377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68486 invoked by alias); 5 Sep 2017 18:36: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 63245 invoked by uid 48); 5 Sep 2017 18:36:36 -0000
From: "palmer at dabbelt dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82106] [RISCV] Misaligned loads generated when doubles are split between stack and registers
Date: Tue, 05 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: palmer at dabbelt 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-82106-4-Ly5dxu8NVM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00406.txt.bz2
Content-length: 156

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

--- Comment #4 from Palmer Dabbelt <palmer at dabbelt dot com> ---
Ya, sorry, I misread the assembly.
>From gcc-bugs-return-574378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 18:40:32 2017
Return-Path: <gcc-bugs-return-574378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94512 invoked by alias); 5 Sep 2017 18:40: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 93877 invoked by uid 48); 5 Sep 2017 18:40:25 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78015] pthread_cancel while some exception is pending results in std::terminate ()
Date: Tue, 05 Sep 2017 18:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78015-4-6Zi2j9Exut@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78015-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78015-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00407.txt.bz2
Content-length: 432

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #0)
> fails with std::terminate (), while works with -DWORKAROUND.

It's the other way around, right? Was the testcase meant to use #ifndef?

I can take a look at wrapping the non-C++ exception. Do we want to do that for
all foreign exceptions, or just __forced_unwind?
>From gcc-bugs-return-574379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 19:03:06 2017
Return-Path: <gcc-bugs-return-574379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128915 invoked by alias); 5 Sep 2017 19:03:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128667 invoked by uid 48); 5 Sep 2017 19:02:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78015] pthread_cancel while some exception is pending results in std::terminate ()
Date: Tue, 05 Sep 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: libstdc++
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-78015-4-jVlo0tgysT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78015-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78015-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00408.txt.bz2
Content-length: 512

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #5)
> (In reply to Jakub Jelinek from comment #0)
> > fails with std::terminate (), while works with -DWORKAROUND.
> 
> It's the other way around, right? Was the testcase meant to use #ifndef?

Yes, see #c2.

> I can take a look at wrapping the non-C++ exception. Do we want to do that
> for all foreign exceptions, or just __forced_unwind?

Dunno.
>From gcc-bugs-return-574380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 19:18:55 2017
Return-Path: <gcc-bugs-return-574380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107337 invoked by alias); 5 Sep 2017 19:18: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 107221 invoked by uid 48); 5 Sep 2017 19:18:47 -0000
From: "mephi42 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82109] New: False positive when using pthread_cleanup_push() and pthread_cancel()
Date: Tue, 05 Sep 2017 19:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mephi42 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created
Message-ID: <bug-82109-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00409.txt.bz2
Content-length: 1217

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

            Bug ID: 82109
           Summary: False positive when using pthread_cleanup_push() and
                    pthread_cancel()
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mephi42 at gmail dot com
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 42131
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42131&action=edit
minimal reproducible example

The attached program generates what I believe is a false positive:

WRITE of size 4096 thread T1
    #1 in cleanup_routine (asan_pthread_cancel)
    #2 in start_routine (asan_pthread_cancel)
    #3 in start_thread (libpthread.so)
    #4 in __clone (libc.so)

The reason seems to be that ASAN does not zero out shadow memory bytes set by
sleep_routine() when pthread_cancel() is called, which then overlap text
variable in cleanup_routine().
>From gcc-bugs-return-574381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 19:42:35 2017
Return-Path: <gcc-bugs-return-574381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89866 invoked by alias); 5 Sep 2017 19: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 89615 invoked by uid 55); 5 Sep 2017 19:42:27 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81833] [7/8 Regression] PowerPC: VSX: Miscompiles ffmpeg's scalarproduct_int16_vsx at -O1
Date: Tue, 05 Sep 2017 19:42:00 -0000
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.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81833-4-sgLgHVLYXm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81833-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81833-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00410.txt.bz2
Content-length: 1017

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

--- Comment #3 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Tue Sep  5 19:41:55 2017
New Revision: 251723

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

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR target/81833
        * config/rs6000/altivec.md (altivec_vsum2sws): Convert from a
        define_insn to a define_expand.
        (altivec_vsum2sws_direct): New define_insn.
        (altivec_vsumsws): Convert from a define_insn to a define_expand.

[gcc/testsuite]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR target/81833
        * gcc.target/powerpc/pr81833-1.c: New file.
        * gcc.target/powerpc/pr81833-2.c: New file.


Added:
    trunk/gcc/testsuite/gcc.target/powerpc/pr81833-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/pr81833-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/altivec.md
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 20:51:49 2017
Return-Path: <gcc-bugs-return-574382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2224 invoked by alias); 5 Sep 2017 20:51: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 121544 invoked by uid 48); 5 Sep 2017 20:51:41 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82053] [8 Regression] ICE on invalid code
Date: Tue, 05 Sep 2017 20: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: 8.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-82053-4-hcwcq18GTP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82053-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82053-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00411.txt.bz2
Content-length: 489

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-09-05
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-574383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:12:12 2017
Return-Path: <gcc-bugs-return-574383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2999 invoked by alias); 5 Sep 2017 21: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 128901 invoked by uid 48); 5 Sep 2017 21:12:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82095] [8 Regression] ICE in tree_nop_conversion at tree.c:11793 on ppc64le
Date: Tue, 05 Sep 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: middle-end
X-Bugzilla-Version: 8.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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone short_desc
Message-ID: <bug-82095-4-R0Cde1457E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82095-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82095-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00412.txt.bz2
Content-length: 594

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
            Summary|ICE in tree_nop_conversion  |[8 Regression] ICE in
                   |at tree.c:11793 on ppc64le  |tree_nop_conversion at
                   |                            |tree.c:11793 on ppc64le

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r251602.
>From gcc-bugs-return-574384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:32:13 2017
Return-Path: <gcc-bugs-return-574384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22883 invoked by alias); 5 Sep 2017 21:32: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 18839 invoked by uid 48); 5 Sep 2017 21:32:06 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/71660] [5/6/7/8 regression] alignment of std::atomic<8 byte primitive type> (long long, double) is wrong on x86
Date: Tue, 05 Sep 2017 21:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.1.1
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
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-71660-4-j2mj8lTjvR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00413.txt.bz2
Content-length: 1212

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

--- Comment #11 from Peter Cordes <peter at cordes dot ca> ---
(In reply to Thiago Macieira from comment #10)
> Actually, PR 65146 points out that the problem is not efficiency but
> correctness. An under-aligned type could cross a cacheline boundary and thus
> fail to be atomic in the first place.

As I pointed out there, you technically could solve the correctness problem by
checking alignment and falling back to locking for objects where a plain 8B
load or 8B store wouldn't be atomic.  That's what I meant by "efficiently
lock-free".  And we're talking about *huge* inefficiencies here compared to
always being able to inline and SSE load/store.

That would let you keep struct layouts the same, but it would still be an ABI
change, since everything has to agree about which objects are lock-free and
which aren't.  Now that I think about it, all of my suggested fixes on PR 65146
are effectively ABI changes.

> Those structures were disasters waiting to happen.

Yes, exactly.

Basically any existing binaries compiled with a gcc that allows under-aligned
atomic objects are unsafe, so keeping compatibility with them is not important.
>From gcc-bugs-return-574385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:32:20 2017
Return-Path: <gcc-bugs-return-574385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24541 invoked by alias); 5 Sep 2017 21:32: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 22021 invoked by uid 55); 5 Sep 2017 21:32:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81768] [8 Regression] error: control flow in the middle of basic block
Date: Tue, 05 Sep 2017 21: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: 8.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81768-4-VZ096xtKhV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00414.txt.bz2
Content-length: 625

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Sep  5 21:31:39 2017
New Revision: 251741

URL: https://gcc.gnu.org/viewcvs?rev=251741&root=gcc&view=rev
Log:
        PR middle-end/81768
        * omp-expand.c (expand_omp_simd): Force second operands of COND_EXPR
        into gimple val before gimplification fo the COND_EXPR.

        * gcc.dg/gomp/pr81768-1.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/gomp/pr81768-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/omp-expand.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:33:16 2017
Return-Path: <gcc-bugs-return-574386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76768 invoked by alias); 5 Sep 2017 21:33: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 64639 invoked by uid 55); 5 Sep 2017 21:33:08 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81768] [8 Regression] error: control flow in the middle of basic block
Date: Tue, 05 Sep 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: middle-end
X-Bugzilla-Version: 8.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81768-4-rtObQ8Tfme@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00415.txt.bz2
Content-length: 597

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Sep  5 21:32:35 2017
New Revision: 251742

URL: https://gcc.gnu.org/viewcvs?rev=251742&root=gcc&view=rev
Log:
        PR middle-end/81768
        * omp-low.c (lower_omp_for): Recompute tree invariant if
        gimple_omp_for_initial/final is ADDR_EXPR.

        * gcc.dg/gomp/pr81768-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/gomp/pr81768-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/omp-low.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:34:38 2017
Return-Path: <gcc-bugs-return-574387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17546 invoked by alias); 5 Sep 2017 21: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 12902 invoked by uid 48); 5 Sep 2017 21:34:29 -0000
From: "aaro.koskinen at iki dot fi" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82048] GCC bootstrap fails in stage1 on sparc-unknown-linux-gnu
Date: Tue, 05 Sep 2017 21:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aaro.koskinen at iki dot fi
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82048-4-uoJPfTPxKS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82048-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82048-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00416.txt.bz2
Content-length: 322

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

--- Comment #5 from Aaro Koskinen <aaro.koskinen at iki dot fi> ---
> Is there any workaround other than downgrading to glibc 2.24 on SPARC?

If you always re-install the 64-bit glibc build after 32-bit one, that should
restore the correct version of long-double.h.
>From gcc-bugs-return-574388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:45:59 2017
Return-Path: <gcc-bugs-return-574388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30130 invoked by alias); 5 Sep 2017 21: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 18218 invoked by uid 48); 5 Sep 2017 21:45:51 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65146] alignment of _Atomic structure member is not correct
Date: Tue, 05 Sep 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: 4.9.2
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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-65146-4-ekztS7Y8O8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00417.txt.bz2
Content-length: 953

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

--- Comment #8 from Peter Cordes <peter at cordes dot ca> ---
BTW, all of my proposals are really ABI changes, even if struct layout stays
the same.

All code has to agree on which objects are lock-free or not, and whether they
need to check alignment before using an SSE load instead of lock cmpxchg8b or
something.

It won't be safe to link with binaries compiled with old gcc that assumes a
simple SSE load/store is atomic on an 8B atomic_llong*, if the new design can
still pass it underaligned pointers.  The existing ABI is broken.

Some code may happen to not be affected, especially when running on Intel
hardware (where only 64B boundaries matter, not 8B boundaries for x86 in
general).  Or because they only depend on atomic RMW being atomic, not pure
load or pure store, so they just take the ~100x performance hit without losing
correctness in cases where a boundary is crossed.
>From gcc-bugs-return-574389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:49:41 2017
Return-Path: <gcc-bugs-return-574389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45008 invoked by alias); 5 Sep 2017 21:49:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21594 invoked by uid 55); 5 Sep 2017 21:49:33 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81503] [8 Regression] Wrong code at -O2
Date: Tue, 05 Sep 2017 21:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81503-4-YqKnIH4ka2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81503-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81503-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00418.txt.bz2
Content-length: 1333

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

--- Comment #18 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Tue Sep  5 21:49:01 2017
New Revision: 251743

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

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
                    Jakub Jelinek  <jakub@redhat.com>
                    Richard Biener  <rguenther@suse.de>

        PR tree-optimization/81503
        * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
        folded constant fits in the target type; reorder tests for clarity.

[gcc/testsuite]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
                    Jakub Jelinek  <jakub@redhat.com>
                    Richard Biener  <rguenther@suse.de>

        PR tree-optimization/81503
        * gcc.c-torture/execute/pr81503.c: New file.


Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/execute/pr81503.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:51:18 2017
Return-Path: <gcc-bugs-return-574390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37453 invoked by alias); 5 Sep 2017 21:51: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 22263 invoked by uid 55); 5 Sep 2017 21:51:10 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81503] [8 Regression] Wrong code at -O2
Date: Tue, 05 Sep 2017 21:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81503-4-Dr79EOlNYh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81503-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81503-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00419.txt.bz2
Content-length: 1333

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

--- Comment #19 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Tue Sep  5 21:50:38 2017
New Revision: 251744

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

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
                    Jakub Jelinek  <jakub@redhat.com>
                    Richard Biener  <rguenther@suse.de>

        PR tree-optimization/81503
        * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
        folded constant fits in the target type; reorder tests for clarity.

[gcc/testsuite]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
                    Jakub Jelinek  <jakub@redhat.com>
                    Richard Biener  <rguenther@suse.de>

        PR tree-optimization/81503
        * gcc.c-torture/execute/pr81503.c: New file.


Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.c-torture/execute/pr81503.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:52:40 2017
Return-Path: <gcc-bugs-return-574391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121206 invoked by alias); 5 Sep 2017 21: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 109417 invoked by uid 55); 5 Sep 2017 21:52:32 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81503] [8 Regression] Wrong code at -O2
Date: Tue, 05 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81503-4-Y9ZlYJOJbB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81503-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81503-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00420.txt.bz2
Content-length: 1333

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

--- Comment #20 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Tue Sep  5 21:52:01 2017
New Revision: 251745

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

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
                    Jakub Jelinek  <jakub@redhat.com>
                    Richard Biener  <rguenther@suse.de>

        PR tree-optimization/81503
        * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
        folded constant fits in the target type; reorder tests for clarity.

[gcc/testsuite]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
                    Jakub Jelinek  <jakub@redhat.com>
                    Richard Biener  <rguenther@suse.de>

        PR tree-optimization/81503
        * gcc.c-torture/execute/pr81503.c: New file.


Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr81503.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 05 21:53:00 2017
Return-Path: <gcc-bugs-return-574392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12841 invoked by alias); 5 Sep 2017 21:53: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 2205 invoked by uid 48); 5 Sep 2017 21:52:52 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81503] [8 Regression] Wrong code at -O2
Date: Tue, 05 Sep 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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81503-4-4wT3LCnNZc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81503-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81503-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00421.txt.bz2
Content-length: 443

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

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

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

--- Comment #21 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Fixed everywhere now.
>From gcc-bugs-return-574393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 00:04:42 2017
Return-Path: <gcc-bugs-return-574393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36017 invoked by alias); 6 Sep 2017 00:04: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 35958 invoked by uid 48); 6 Sep 2017 00:04:38 -0000
From: "barry.revzin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82110] New: Concept for default constructing works with new T, not with new T[1]
Date: Wed, 06 Sep 2017 00:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: c++-concepts
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: barry.revzin 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-82110-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00422.txt.bz2
Content-length: 929

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

            Bug ID: 82110
           Summary: Concept for default constructing works with new T, not
                    with new T[1]
           Product: gcc
           Version: c++-concepts
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: barry.revzin at gmail dot com
  Target Milestone: ---

This example fails with all versions of gcc currently:

struct X {
    X() = delete;
};

template <class T>
concept bool C = requires(T t) {
    new T;
};

template <class T>
concept bool D = requires(T t) {
    new T[1];
};

int main() {
    static_assert(!C<X>); // ok
    static_assert(!D<X>); // error
}

new T[1] still requires a public default constructor, just like new T, but X is
thought to model D (despite correctly not modeling C).
>From gcc-bugs-return-574394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 00:13:51 2017
Return-Path: <gcc-bugs-return-574394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44583 invoked by alias); 6 Sep 2017 00:13: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 44554 invoked by uid 48); 6 Sep 2017 00:13:46 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82111] New: kcoreaddons-5.37.0: desktopfileparser.cpp miscompiled in dbr pass
Date: Wed, 06 Sep 2017 00:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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 cf_gcchost cf_gcctarget cf_gccbuild attachments.created
Message-ID: <bug-82111-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00423.txt.bz2
Content-length: 2821

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

            Bug ID: 82111
           Summary: kcoreaddons-5.37.0: desktopfileparser.cpp miscompiled
                    in dbr pass
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

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

The kdelibs4support fails to build on hppa due to a segmentation fault in
desktoptojson.  This is debian bug #874312.

The fault occurs in __sync_sub_and_fetch_4.  It occurs because the r26
argument register is not initialized before the call.

We have in ServiceTypeDefinition::parseValue(QByteArray const&, QString const&)
const the following code:

0x00018cac <+660>:      ldw c(r6),r25
  0x00018cb0 <+664>:    ldw c(ret0),r26
  0x00018cb4 <+668>:    copy r5,r24
  0x00018cb8 <+672>:    add,l r6,r25,r25
  0x00018cbc <+676>:    b,l 0x13144,rp
  0x00018cc0 <+680>:    add,l ret0,r26,r26
  0x00018cc4 <+684>:    cmpib,<> 0,ret0,0x18ac0
<ServiceTypeDefinition::parseValue(QByteArray const&, QString const&)
const+168>
  0x00018cc8 <+688>:    copy r4,r19
  0x00018ccc <+692>:    ldw 4(r3),ret0
  0x00018cd0 <+696>:    ldo -1(ret0),ret0
  0x00018cd4 <+700>:    cmpib,= -1,ret0,0x18cec
<ServiceTypeDefinition::parseValue(QByteArray const&, QString const&)
const+724>
  0x00018cd8 <+704>:    copy r19,r4
  0x00018cdc <+708>:    b,l 0x22a78 <__sync_sub_and_fetch_4>,rp
  0x00018ce0 <+712>:    ldi 1,r25

The call at 0x00018cbc is to memcmp.  When the two cmpib instructions fall
through to the call to __sync_sub_and_fetch_4, the r26 argument register is
not initialized for the call to __sync_sub_and_fetch_4.

The compilation command is:

/usr/lib/gcc/hppa-linux-gnu/7/cc1plus -fpreprocessed desktopfileparser.ii
-quiet -dumpbase desktopfileparser.cpp -auxbase-strip
CMakeFiles/desktoptojson.dir/__/lib/plugin/desktopfileparser.cpp.o -g -O2
-Wformat=1 -Werror=format-security -Wall -Wextra -Wcast-align -Wchar-subscripts
-Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor
-Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wpedantic
-Wsuggest-override -std=c++11 -std=gnu++11 -version
-fdebug-prefix-map=/home/dave/debian/kcoreaddons/kcoreaddons-5.37.0=.
-fno-operator-names -fexceptions -fvisibility=hidden
-fvisibility-inlines-hidden -fPIC -o desktopfileparser.s

It appears in looking at the rtl dumps that things go bad in the dbr pass.
>From gcc-bugs-return-574395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 00:14:50 2017
Return-Path: <gcc-bugs-return-574395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45879 invoked by alias); 6 Sep 2017 00:14: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 45754 invoked by uid 48); 6 Sep 2017 00:14:43 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82111] kcoreaddons-5.37.0: desktopfileparser.cpp miscompiled in dbr pass
Date: Wed, 06 Sep 2017 00:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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: attachments.created
Message-ID: <bug-82111-4-1yQyDzDrbd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82111-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82111-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00424.txt.bz2
Content-length: 244

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

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
Created attachment 42133
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42133&action=edit
Dump from barriers
>From gcc-bugs-return-574396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 00:15:33 2017
Return-Path: <gcc-bugs-return-574396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46835 invoked by alias); 6 Sep 2017 00:15: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 46714 invoked by uid 48); 6 Sep 2017 00:15:22 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82111] kcoreaddons-5.37.0: desktopfileparser.cpp miscompiled in dbr pass
Date: Wed, 06 Sep 2017 00: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: 7.2.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: attachments.created
Message-ID: <bug-82111-4-AicIenClYx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82111-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82111-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00425.txt.bz2
Content-length: 244

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

--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> ---
Created attachment 42134
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42134&action=edit
Dump from dbr pass
>From gcc-bugs-return-574397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 01:15:39 2017
Return-Path: <gcc-bugs-return-574397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62004 invoked by alias); 6 Sep 2017 01: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 61378 invoked by uid 48); 6 Sep 2017 01:15:24 -0000
From: "dongkyun.s at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81907] memset called when it does not need to be; -mtune=cortex-a9
Date: Wed, 06 Sep 2017 01:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: dongkyun.s at samsung dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81907-4-KT30a9xsDQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81907-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81907-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00426.txt.bz2
Content-length: 600

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

dongkyun.s at samsung dot com changed:

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

--- Comment #18 from dongkyun.s at samsung dot com ---
Dear Michail,
Your analysis was very helpful. I've also verified that compiler may insert
memset() call or not according by 1) DSE optimization - object size/base and
tune options 2) code generation.
>From gcc-bugs-return-574398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 02:14:27 2017
Return-Path: <gcc-bugs-return-574398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71248 invoked by alias); 6 Sep 2017 02:14: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 71164 invoked by uid 48); 6 Sep 2017 02:14:23 -0000
From: "thiago at kde dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/71660] [5/6/7/8 regression] alignment of std::atomic<8 byte primitive type> (long long, double) is wrong on x86
Date: Wed, 06 Sep 2017 02: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: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thiago at kde dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71660-4-6S35cAsf68@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00427.txt.bz2
Content-length: 239

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

--- Comment #12 from Thiago Macieira <thiago at kde dot org> ---
Another problem is that we've now had a couple of years with this issue, so
it's probably worse to make a change again.
>From gcc-bugs-return-574399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 04:05:46 2017
Return-Path: <gcc-bugs-return-574399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101842 invoked by alias); 6 Sep 2017 04: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 99736 invoked by uid 48); 6 Sep 2017 04:05:42 -0000
From: "noloader at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82112] New: internal compiler error: in fold_convert_loc, at fold-const.c:2262
Date: Wed, 06 Sep 2017 04: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: noloader 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-82112-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00428.txt.bz2
Content-length: 3508

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

            Bug ID: 82112
           Summary: internal compiler error: in fold_convert_loc, at
                    fold-const.c:2262
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: noloader at gmail dot com
  Target Milestone: ---

I'm working on GCC112 (gcc112.fsffrance.org on the compile farm).

$ cat test.cxx
#include <altivec.h>

typedef unsigned char byte;
typedef vector unsigned char uint8x16_p8;
typedef vector unsigned long long uint64x2_p8;
#define ALIGN_DATA(n) __attribute__((aligned(n)))

int main(int argc, char* argv[])
{
  ALIGN_DATA(16) const byte c[16] = {
    0,1,2,3,  4,5,6,7,  8,9,10,11,  12,13,14,15
  };
  const uint64x2_p8 mask = vec_ld(0, c);
  return 0;
}

==========

$ /opt/cfarm/gcc-latest/bin/g++ -c test.cxx
test.cxx: In function 'int main(int, char**)':
test.cxx:13:39: internal compiler error: in fold_convert_loc, at
fold-const.c:2262
   const uint64x2_p8 mask = vec_ld(0, c);
                                       ^
0x1057fb4b fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc-7.1.0-src/gcc/fold-const.c:2261
0x103b3363 altivec_resolve_overloaded_builtin(unsigned int, tree_node*, void*)
        ../../gcc-7.1.0-src/gcc/config/rs6000/rs6000-c.c:6223
0x103632bb resolve_overloaded_builtin(unsigned int, tree_node*, vec<tree_node*,
va_gc, vl_embed>*)
        ../../gcc-7.1.0-src/gcc/c-family/c-common.c:7192
0x102a7713 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**,
bool, bool, int)
        ../../gcc-7.1.0-src/gcc/cp/semantics.c:2406
0x102399b7 cp_parser_postfix_expression
        ../../gcc-7.1.0-src/gcc/cp/parser.c:6992
0x1023a57f cp_parser_unary_expression
        ../../gcc-7.1.0-src/gcc/cp/parser.c:8103
0x1023b883 cp_parser_cast_expression
        ../../gcc-7.1.0-src/gcc/cp/parser.c:8781
0x1023c207 cp_parser_binary_expression
        ../../gcc-7.1.0-src/gcc/cp/parser.c:8882
0x1023cac7 cp_parser_assignment_expression
        ../../gcc-7.1.0-src/gcc/cp/parser.c:9169
0x1023d05b cp_parser_constant_expression
        ../../gcc-7.1.0-src/gcc/cp/parser.c:9439
0x1023e153 cp_parser_initializer_clause
        ../../gcc-7.1.0-src/gcc/cp/parser.c:21575
0x1023f5eb cp_parser_initializer
        ../../gcc-7.1.0-src/gcc/cp/parser.c:21515
0x10256ccf cp_parser_init_declarator
        ../../gcc-7.1.0-src/gcc/cp/parser.c:19332
0x102574cb cp_parser_simple_declaration
        ../../gcc-7.1.0-src/gcc/cp/parser.c:12777
0x10258393 cp_parser_block_declaration
        ../../gcc-7.1.0-src/gcc/cp/parser.c:12602
0x10258eff cp_parser_declaration_statement
        ../../gcc-7.1.0-src/gcc/cp/parser.c:12212
0x1022d5df cp_parser_statement
        ../../gcc-7.1.0-src/gcc/cp/parser.c:10699
0x1022e74b cp_parser_statement_seq_opt
        ../../gcc-7.1.0-src/gcc/cp/parser.c:11031
0x1022e857 cp_parser_compound_statement
        ../../gcc-7.1.0-src/gcc/cp/parser.c:10985
0x10245643 cp_parser_function_body
        ../../gcc-7.1.0-src/gcc/cp/parser.c:21432
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.

==========

$ /opt/cfarm/gcc-latest/bin/g++ --version
g++ (GCC) 7.1.0
Copyright (C) 2017 Free Software Foundation, Inc.
>From gcc-bugs-return-574400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 04:54:09 2017
Return-Path: <gcc-bugs-return-574400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24795 invoked by alias); 6 Sep 2017 04: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 22442 invoked by uid 48); 6 Sep 2017 04:54:05 -0000
From: "for.gcc.bugzilla at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82113] New: RVO isn't applied to base class constructor call in C++17
Date: Wed, 06 Sep 2017 04:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: for.gcc.bugzilla 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-82113-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00429.txt.bz2
Content-length: 1074

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

            Bug ID: 82113
           Summary: RVO isn't applied to base class constructor call in
                    C++17
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: for.gcc.bugzilla at gmail dot com
  Target Milestone: ---

Reported on
https://stackoverflow.com/questions/46065704/why-isnt-rvo-applied-to-base-class-constructor-call-in-c17

With C++17 guaranteed copy elision, B::B() below should compile even when
Base::Base(Base&&) is deleted.

struct Base {
    Base(Base&&) = delete;
    Base& operator=(Base&&) = delete;

    Base()
    {
    }
};

Base make_base()
{
    return Base{};
}

struct A {
    A() : b(make_base()) {} // <<<--- compiles fine

    Base b;
};

#ifdef FAIL
struct B : public Base {
    B() : Base(make_base()) {} // <<<--- "Base(Base&&) is deleted"
};
#endif

example https://godbolt.org/g/w3jRuc
>From gcc-bugs-return-574401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 05:21:02 2017
Return-Path: <gcc-bugs-return-574401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80340 invoked by alias); 6 Sep 2017 05:21: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 74775 invoked by uid 55); 6 Sep 2017 05:20:58 -0000
From: "law at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/64910] tree reassociation results in poor code
Date: Wed, 06 Sep 2017 05:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law 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-64910-4-JXTNQvaoWs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64910-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64910-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00430.txt.bz2
Content-length: 478

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

--- Comment #6 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Wed Sep  6 05:20:25 2017
New Revision: 251751

URL: https://gcc.gnu.org/viewcvs?rev=251751&root=gcc&view=rev
Log:
        PR tree-optimization/64910
        * tree-ssa-reassoc.c (reassociate_bb): Restrict last change to
        cases where we have 3 or more operands.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-reassoc.c
>From gcc-bugs-return-574402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 05:21:26 2017
Return-Path: <gcc-bugs-return-574402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93919 invoked by alias); 6 Sep 2017 05: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 91918 invoked by uid 48); 6 Sep 2017 05:21:23 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82114] New: gcc.dg/gimplefe-14.c for bare metal and argc is 0
Date: Wed, 06 Sep 2017 05:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82114-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00431.txt.bz2
Content-length: 557

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

            Bug ID: 82114
           Summary: gcc.dg/gimplefe-14.c for bare metal and argc is 0
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

On bare-metal targets, argc is usually 0 (and not 1) that means the check for
argc in gcc.dg/gimplefe-14.c is not working.
>From gcc-bugs-return-574403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 05:32:29 2017
Return-Path: <gcc-bugs-return-574403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15279 invoked by alias); 6 Sep 2017 05: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 12738 invoked by uid 48); 6 Sep 2017 05:32:24 -0000
From: "dudu.arbel at ilrd dot co.il" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82105] unexpected padding in a struct
Date: Wed, 06 Sep 2017 05: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.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dudu.arbel at ilrd dot co.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-82105-4-yvBwQUz9c2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00432.txt.bz2
Content-length: 511

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

--- Comment #7 from Dudu <dudu.arbel at ilrd dot co.il> ---
By the way: if you use long instead of int - you get no padding between x and
y, so the size of the struct is smaller!!!

typedef struct {
        unsigned long x:16;
        unsigned long y:17;
        unsigned short z;
} SizeofThisIs8;

typedef struct {
        unsigned int x:16;
        unsigned int y:17;
        unsigned short z;
} SizeofThisIs12;

Is this really the expected behavior???
>From gcc-bugs-return-574404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 05:35:44 2017
Return-Path: <gcc-bugs-return-574404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36534 invoked by alias); 6 Sep 2017 05:35: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 34454 invoked by uid 48); 6 Sep 2017 05:35:40 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82105] unexpected padding in a struct
Date: Wed, 06 Sep 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: 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:
Message-ID: <bug-82105-4-gT6scjWuIT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00433.txt.bz2
Content-length: 701

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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Dudu from comment #7)
> By the way: if you use long instead of int - you get no padding between x
> and y, so the size of the struct is smaller!!!
> 
> typedef struct {
> 	unsigned long x:16;
> 	unsigned long y:17;
> 	unsigned short z;
> } SizeofThisIs8;
> 
> typedef struct {
> 	unsigned int x:16;
> 	unsigned int y:17;
> 	unsigned short z;
> } SizeofThisIs12;
> 
> Is this really the expected behavior???

Yes.  Basically in the first case, long is 64bits so 16+17 <=64 while int is 32
since 16+17 > 32, the 17 bit-field has to go to the next 32bit unit.
>From gcc-bugs-return-574405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 05:38:49 2017
Return-Path: <gcc-bugs-return-574405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109423 invoked by alias); 6 Sep 2017 05:38: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 104180 invoked by uid 48); 6 Sep 2017 05:38:45 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82115] New: ICE on (valid) C++11 code: Segmentation fault signal terminated program cc1plus
Date: Wed, 06 Sep 2017 05: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-82115-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00434.txt.bz2
Content-length: 1432

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

            Bug ID: 82115
           Summary: ICE on (valid) C++11 code: Segmentation fault signal
                    terminated program cc1plus
           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 seems to be a recent regression. 

$ g++tk -v
Using built-in specs.
COLLECT_GCC=g++tk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170905 (experimental) [trunk revision 251739] (GCC)
$
$ g++-6.2 -c small.cpp
$ 
$ g++tk -c small.cpp
g++tk: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
$


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


struct A { int const u = 0; };

struct B : A
{ 
  constexpr B (int const *p) : v (p) {}
  int const *v;
} constexpr b (&b.u);

template < typename > void foo () { b; }
>From gcc-bugs-return-574406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 07:12:07 2017
Return-Path: <gcc-bugs-return-574406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61099 invoked by alias); 6 Sep 2017 07: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 59162 invoked by uid 48); 6 Sep 2017 07:12:03 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82107] [5/6/7/8 Regression] O2 optimisation on amd64 leads to error
Date: Wed, 06 Sep 2017 07: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: 6.3.0
X-Bugzilla-Keywords: wrong-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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-82107-4-2OrLh6rfw8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00435.txt.bz2
Content-length: 298

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
>From gcc-bugs-return-574407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 07:24:16 2017
Return-Path: <gcc-bugs-return-574407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49295 invoked by alias); 6 Sep 2017 07:24: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 49189 invoked by uid 48); 6 Sep 2017 07:24:00 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82115] [8 Regression] ICE on (valid) C++11 code: Segmentation fault signal terminated program cc1plus
Date: Wed, 06 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords version target_milestone short_desc
Message-ID: <bug-82115-4-ERdv82zeTb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00436.txt.bz2
Content-length: 704

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
            Version|unknown                     |8.0
   Target Milestone|---                         |8.0
            Summary|ICE on (valid) C++11 code:  |[8 Regression] ICE on
                   |Segmentation fault signal   |(valid) C++11 code:
                   |terminated program cc1plus  |Segmentation fault signal
                   |                            |terminated program cc1plus
>From gcc-bugs-return-574408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 07:26:14 2017
Return-Path: <gcc-bugs-return-574408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58342 invoked by alias); 6 Sep 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 54952 invoked by uid 48); 6 Sep 2017 07:26:10 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82108] [7/8 Regression] Wrong vectorized code generated for x86_64
Date: Wed, 06 Sep 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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget bug_status assigned_to
Message-ID: <bug-82108-4-28GanHBMrl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82108-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82108-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00437.txt.bz2
Content-length: 524

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Bah.  Mine.
>From gcc-bugs-return-574409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 07:27:09 2017
Return-Path: <gcc-bugs-return-574409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33698 invoked by alias); 6 Sep 2017 07:27: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 23940 invoked by uid 48); 6 Sep 2017 07:27:05 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/82107] [5/6/7/8 Regression] O2 optimisation on amd64 leads to error
Date: Wed, 06 Sep 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: ipa
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority component
Message-ID: <bug-82107-4-VMPqBMCnGK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00438.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
          Component|c++                         |ipa
>From gcc-bugs-return-574410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 07:28:06 2017
Return-Path: <gcc-bugs-return-574410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58574 invoked by alias); 6 Sep 2017 07:28:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48424 invoked by uid 48); 6 Sep 2017 07:28:03 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82106] [RISCV] Misaligned loads generated when doubles are split between stack and registers
Date: Wed, 06 Sep 2017 07:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82106-4-TnsgSKic9M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82106-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00439.txt.bz2
Content-length: 519

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Target|                            |riscv
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-06
     Ever confirmed|0                           |1
>From gcc-bugs-return-574411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 07:39:28 2017
Return-Path: <gcc-bugs-return-574411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120255 invoked by alias); 6 Sep 2017 07:39: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 120211 invoked by uid 48); 6 Sep 2017 07:39:23 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82115] [8 Regression] ICE on (valid) C++11 code: Segmentation fault signal terminated program cc1plus
Date: Wed, 06 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82115-4-p0igm3cOIE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00440.txt.bz2
Content-length: 7407

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, but for some reason hard to bisect. Stack overflow happens here:

#15 0x00000000007922d8 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:24095
#16 0x0000000000792192 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:23937
#17 0x0000000000791ce7 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:24011
#18 0x0000000000791ce7 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:24011
#19 0x0000000000792396 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:24046
#20 0x00000000007922d8 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:24095
#21 0x0000000000792192 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:23937
#22 0x0000000000791ce7 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:24011
#23 0x0000000000791ce7 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:24011
#24 0x0000000000792396 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:24046
#25 0x00000000007922d8 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:24095
#26 0x0000000000792192 in value_dependent_expression_p (expression=<optimized
out>) at ../../gcc/cp/pt.c:23937
#27 0x00000000007949c9 in instantiation_dependent_expression_p
(expression=<optimized out>) at ../../gcc/cp/pt.c:24519
#28 0x0000000000650ca7 in is_nondependent_constant_expression
(t=0x7ffff697e7e0) at ../../gcc/cp/constexpr.c:5907
#29 0x0000000000651113 in fold_non_dependent_expr (t=t@entry=0x7ffff697e7e0) at
../../gcc/cp/constexpr.c:4933
#30 0x000000000078b712 in build_non_dependent_expr
(expr=expr@entry=0x7ffff697e7e0) at ../../gcc/cp/pt.c:24955
#31 0x00000000007fe848 in finish_expr_stmt (expr=expr@entry=0x7ffff697e7e0) at
../../gcc/cp/semantics.c:693
#32 0x000000000074a5f5 in cp_parser_expression_statement
(parser=parser@entry=0x7ffff7feccf0,
in_statement_expr=in_statement_expr@entry=0x0) at ../../gcc/cp/parser.c:11127
#33 0x0000000000751bd4 in cp_parser_statement
(parser=parser@entry=0x7ffff7feccf0,
in_statement_expr=in_statement_expr@entry=0x0, in_compound=<optimized out>,
in_compound@entry=true, if_p=if_p@entry=0x0, chain=chain@entry=0x0,
loc_after_labels=loc_after_labels@entry=0x0)
    at ../../gcc/cp/parser.c:10887
#34 0x0000000000752de1 in cp_parser_statement_seq_opt
(parser=parser@entry=0x7ffff7feccf0,
in_statement_expr=in_statement_expr@entry=0x0) at ../../gcc/cp/parser.c:11214
#35 0x0000000000752eb8 in cp_parser_compound_statement
(parser=parser@entry=0x7ffff7feccf0,
in_statement_expr=in_statement_expr@entry=0x0, bcs_flags=bcs_flags@entry=0,
function_body=function_body@entry=true) at ../../gcc/cp/parser.c:11168
#36 0x000000000076c719 in cp_parser_function_body (in_function_try_block=false,
parser=0x7ffff7feccf0) at ../../gcc/cp/parser.c:21622
#37 cp_parser_ctor_initializer_opt_and_function_body
(parser=parser@entry=0x7ffff7feccf0,
in_function_try_block=in_function_try_block@entry=false) at
../../gcc/cp/parser.c:21660
#38 0x000000000076e07b in cp_parser_function_definition_after_declarator
(parser=parser@entry=0x7ffff7feccf0, inline_p=inline_p@entry=false) at
../../gcc/cp/parser.c:26496
#39 0x000000000076ed5e in
cp_parser_function_definition_from_specifiers_and_declarator
(declarator=<optimized out>, attributes=0x0, decl_specifiers=0x7fffffffd610,
parser=0x7ffff7feccf0) at ../../gcc/cp/parser.c:26410
#40 cp_parser_init_declarator (parser=parser@entry=0x7ffff7feccf0,
decl_specifiers=decl_specifiers@entry=0x7fffffffd610, checks=checks@entry=0x0,
function_definition_allowed_p=function_definition_allowed_p@entry=true,
member_p=member_p@entry=false, 
    declares_class_or_enum=<optimized out>,
function_definition_p=0x7fffffffd60b, maybe_range_for_decl=0x0, init_loc=0x0,
auto_result=0x0) at ../../gcc/cp/parser.c:19374
#41 0x00000000007749fb in cp_parser_single_declaration
(parser=parser@entry=0x7ffff7feccf0, checks=checks@entry=0x0,
member_p=member_p@entry=false,
explicit_specialization_p=explicit_specialization_p@entry=false,
friend_p=friend_p@entry=0x7fffffffd6ef)
    at ../../gcc/cp/parser.c:26953
#42 0x0000000000774bed in cp_parser_template_declaration_after_parameters
(parser=parser@entry=0x7ffff7feccf0,
parameter_list=parameter_list@entry=0x7ffff69882e0,
member_p=member_p@entry=false) at ../../gcc/cp/parser.c:26556
#43 0x0000000000775577 in cp_parser_explicit_template_declaration
(member_p=false, parser=0x7ffff7feccf0) at ../../gcc/cp/parser.c:26792
#44 cp_parser_template_declaration_after_export
(parser=parser@entry=0x7ffff7feccf0, member_p=<optimized out>) at
../../gcc/cp/parser.c:26811
#45 0x0000000000775899 in cp_parser_template_declaration
(parser=parser@entry=0x7ffff7feccf0, member_p=member_p@entry=false) at
../../gcc/cp/parser.c:14899
#46 0x000000000077b8ba in cp_parser_declaration
(parser=parser@entry=0x7ffff7feccf0) at ../../gcc/cp/parser.c:12652
#47 0x000000000077bbec in cp_parser_declaration_seq_opt
(parser=parser@entry=0x7ffff7feccf0) at ../../gcc/cp/parser.c:12579
#48 0x000000000077befb in cp_parser_translation_unit (parser=0x7ffff7feccf0) at
../../gcc/cp/parser.c:4387
#49 c_parse_file () at ../../gcc/cp/parser.c:38799
#50 0x00000000008c3c47 in c_common_parse_file () at
../../gcc/c-family/c-opts.c:1106
#51 0x0000000000d9dd4f in compile_file () at ../../gcc/toplev.c:471
#52 0x00000000005f22f7 in do_compile () at ../../gcc/toplev.c:2037
#53 toplev::main (this=this@entry=0x7fffffffd92e, argc=<optimized out>,
argc@entry=15, argv=<optimized out>, argv@entry=0x7fffffffda28) at
../../gcc/toplev.c:2172
#54 0x00000000005f47db in main (argc=15, argv=0x7fffffffda28) at
../../gcc/main.c:39

Breakpoint 1, value_dependent_expression_p (expression=0x7ffff69753d8) at
../../gcc/cp/pt.c:23889
23889   {
(gdb) p print_generic_expr(stderr, expression, 0)
{.u=0}$11 = void
(gdb) c
Continuing.

Breakpoint 1, value_dependent_expression_p (expression=0x7ffff6833270) at
../../gcc/cp/pt.c:23889
23889   {
(gdb) p print_generic_expr(stderr, expression, 0)
0$12 = void
(gdb) c
Continuing.

Breakpoint 1, value_dependent_expression_p (expression=0x7ffff6988200) at
../../gcc/cp/pt.c:23889
23889   {
(gdb) p print_generic_expr(stderr, expression, 0)
&b.D.2295.u$13 = void
(gdb) c
Continuing.

Breakpoint 1, value_dependent_expression_p (expression=0x7ffff68129c0) at
../../gcc/cp/pt.c:23889
23889   {
(gdb) p print_generic_expr(stderr, expression, 0)
b.D.2295.u$14 = void
(gdb) c
Continuing.

Breakpoint 1, value_dependent_expression_p (expression=0x7ffff6812a50) at
../../gcc/cp/pt.c:23889
23889   {
(gdb) p print_generic_expr(stderr, expression, 0)
b.D.2295$15 = void
(gdb) c
Continuing.

Breakpoint 1, value_dependent_expression_p (expression=0x7ffff697e7e0) at
../../gcc/cp/pt.c:23889
23889   {
(gdb) p print_generic_expr(stderr, expression, 0)
b$16 = void
(gdb) c
Continuing.
>From gcc-bugs-return-574412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 07:48:45 2017
Return-Path: <gcc-bugs-return-574412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72382 invoked by alias); 6 Sep 2017 07:48: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 65549 invoked by uid 55); 6 Sep 2017 07:48:40 -0000
From: "edlinger at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77308] surprisingly large stack usage for sha512 on arm
Date: Wed, 06 Sep 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: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: edlinger at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77308-4-LRfgH8nKEf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77308-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77308-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00441.txt.bz2
Content-length: 632

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

--- Comment #65 from Bernd Edlinger <edlinger at gcc dot gnu.org> ---
Author: edlinger
Date: Wed Sep  6 07:47:52 2017
New Revision: 251752

URL: https://gcc.gnu.org/viewcvs?rev=251752&root=gcc&view=rev
Log:
2017-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR target/77308
        * config/arm/predicates.md (arm_general_adddi_operand): Create new
        non-vfp predicate.
        * config/arm/arm.md (*arm_adddi3, *arm_subdi3): Use new predicates.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.md
    trunk/gcc/config/arm/predicates.md
>From gcc-bugs-return-574413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 08:02:53 2017
Return-Path: <gcc-bugs-return-574413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51488 invoked by alias); 6 Sep 2017 08: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 51435 invoked by uid 48); 6 Sep 2017 08:02:49 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/78468] [8 regression] libgomp.c/reduction-10.c and many more FAIL
Date: Wed, 06 Sep 2017 08:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: ro at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
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: bug_status cf_reconfirmed_on cc version resolution target_milestone short_desc
Message-ID: <bug-78468-4-2OuvTTT4jR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00442.txt.bz2
Content-length: 1062

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
   Last reconfirmed|2016-11-25 00:00:00         |2017-9-6
                 CC|                            |wilco at gcc dot gnu.org
            Version|7.0                         |8.0
         Resolution|FIXED                       |---
   Target Milestone|7.0                         |8.0
            Summary|[7 regression]              |[8 regression]
                   |libgomp.c/reduction-10.c    |libgomp.c/reduction-10.c
                   |and many more FAIL          |and many more FAIL

--- Comment #37 from Rainer Orth <ro at gcc dot gnu.org> ---
This patch

2017-09-05  Wilco Dijkstra  <wdijkstr@arm.com>

        * explow.c (get_dynamic_stack_size): Improve dynamic alignment.

brought the exact same set of failures back on sparc-sun-solaris2.11.

  Rainer
>From gcc-bugs-return-574414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 08:27:03 2017
Return-Path: <gcc-bugs-return-574414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110636 invoked by alias); 6 Sep 2017 08: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 109978 invoked by uid 55); 6 Sep 2017 08:26:11 -0000
From: "paul.richard.thomas at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82064] [7/8 Regression] [OOP] multiple incompatible definitions of extended derived type via module use
Date: Wed, 06 Sep 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: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paul.richard.thomas at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82064-4-efnfYyqnoW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82064-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82064-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00443.txt.bz2
Content-length: 1422

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

--- Comment #6 from paul.richard.thomas at gmail dot com <paul.richard.thomas at gmail dot com> ---
Aaaah! I missed the point wrt separate files.

As far as I remember, we make sure that class or derived entities get
their vtable but not unreferenced type declarations.

Cheers

Paul

On 5 September 2017 at 14:25, janus at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82064
>
> --- Comment #5 from janus at gcc dot gnu.org ---
> (In reply to Paul Thomas from comment #4)
>> (In reply to janus from comment #3)
>> > It appears that the regression has been introduced by r241450, which was the
>> > fix for PR 69834. Reverting it, in particular the changes to
>> > resolve_select_type, makes the error go away.
>>
>> Strangely, my GNU Fortran (GCC) 8.0.0 20170830 gives me two "OK"s :-)
>
> Also on the version with separate files?
>
>
>> That said, this is a repeat of another recent bug (sorry, I am rushing off
>> to work - no time to find the number). I posted a work around, which
>> translates in this case to:
>>
>> [..]
>>
>> The permanent fix is to make sure that the vtables get produced
>> unconditionally for module derived types.
>
> I thought we already did that, but probably we're still missing some cases?
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>From gcc-bugs-return-574415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 08:48:45 2017
Return-Path: <gcc-bugs-return-574415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98766 invoked by alias); 6 Sep 2017 08:48: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 94294 invoked by uid 48); 6 Sep 2017 08:48:41 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78269] FAIL: FAIL: g++.dg/cpp1z/noexcept-type11.C and FAIL: g++.dg/cpp1z/noexcept-type9.C
Date: Wed, 06 Sep 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: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-78269-4-54108bKCnt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00444.txt.bz2
Content-length: 538

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

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

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

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thomas, both trunk and gcc-7-brnanch seem fine to me, I'm tempted to close the
bug. Can you double check the released 7.1.0 on aarch64?
>From gcc-bugs-return-574416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 08:51:00 2017
Return-Path: <gcc-bugs-return-574416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123276 invoked by alias); 6 Sep 2017 08:51: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 123185 invoked by uid 48); 6 Sep 2017 08:50:55 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/80463] [5/6/7/8 Regression] ICE with -fselective-scheduling2 and -fvar-tracking-assignments
Date: Wed, 06 Sep 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: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: abel at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-80463-4-Cr2yS9qTfA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00445.txt.bz2
Content-length: 1802

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |abel at gcc dot gnu.org

--- Comment #3 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
I've debugged this one a bit on a revision with an ICE.  We fail to move up a
bookkeeping copy of a debug insn because of a piece of code in sched-deps.c:

3094       /* Quite often, a debug insn will refer to stuff in the
3095          previous instruction, but the reason we want this
3096          dependency here is to make sure the scheduler doesn't
3097          gratuitously move a debug insn ahead.  This could dirty
3098          DF flags and cause additional analysis that wouldn't have
3099          occurred in compilation without debug insns, and such
3100          additional analysis can modify the generated code.  */
3101       prev = PREV_INSN (insn);
3102
3103       if (prev && NONDEBUG_INSN_P (prev)
3104         add_dependence (insn, prev, REG_DEP_ANTI);

The initial insn didn't have this dependence because it was the first in block.
We could either switch off this conditional completely for selective scheduling
or pass there the insn through which we try to move our debug insn to be used
as prev instead of completely bogus prev insn.  The former is much simple
because var-tracking doesn't play well with sel-sched anyways.

However, while experimenting with these I have found an issue with the
scheduler creating bookkeeping blocks such that the hot/cold partitioning
breaks. This one should be fixed first hopefully after some discussions with
Honza at the cauldron.
>From gcc-bugs-return-574417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 08:55:01 2017
Return-Path: <gcc-bugs-return-574417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8911 invoked by alias); 6 Sep 2017 08:55: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 8790 invoked by uid 48); 6 Sep 2017 08:54:57 -0000
From: "wdijkstr at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/78468] [8 regression] libgomp.c/reduction-10.c and many more FAIL
Date: Wed, 06 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: wdijkstr at arm dot com
X-Bugzilla-Status: REOPENED
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-78468-4-jlp6asZ0z4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00446.txt.bz2
Content-length: 861

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

Wilco <wdijkstr at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wdijkstr at arm dot com

--- Comment #38 from Wilco <wdijkstr at arm dot com> ---
(In reply to Rainer Orth from comment #37)
> This patch
> 
> 2017-09-05  Wilco Dijkstra  <wdijkstr@arm.com>
> 
> 	* explow.c (get_dynamic_stack_size): Improve dynamic alignment.
> 
> brought the exact same set of failures back on sparc-sun-solaris2.11.
> 
>   Rainer

The existing alloca code relies on STACK_BOUNDARY being set correctly. Has the
value been fixed already for the OS variants mentioned? If stack alignment
can't be guaranteed by OS/runtime/prolog, STACK_BOUNDARY should be 8.
>From gcc-bugs-return-574418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:11:08 2017
Return-Path: <gcc-bugs-return-574418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39746 invoked by alias); 6 Sep 2017 09:11: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 39613 invoked by uid 55); 6 Sep 2017 09:10:59 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82095] [8 Regression] ICE in tree_nop_conversion at tree.c:11793 on ppc64le
Date: Wed, 06 Sep 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: middle-end
X-Bugzilla-Version: 8.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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82095-4-ULGeB5qYfU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82095-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82095-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00447.txt.bz2
Content-length: 587

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Sep  6 09:10:26 2017
New Revision: 251754

URL: https://gcc.gnu.org/viewcvs?rev=251754&root=gcc&view=rev
Log:
        PR middle-end/82095
        * varasm.c (categorize_decl_for_section): Use SECCAT_TBSS for TLS vars
with
        NULL DECL_INITIAL.

        * gcc.dg/tls/pr82095.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/tls/pr82095.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/varasm.c
>From gcc-bugs-return-574419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:16:14 2017
Return-Path: <gcc-bugs-return-574419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65853 invoked by alias); 6 Sep 2017 09:16: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 55810 invoked by uid 48); 6 Sep 2017 09:16:06 -0000
From: "mephi42 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82116] New: "nested bug in the same thread" when a bug is found while reporting another one
Date: Wed, 06 Sep 2017 09:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mephi42 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created
Message-ID: <bug-82116-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00448.txt.bz2
Content-length: 1121

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

            Bug ID: 82116
           Summary: "nested bug in the same thread" when a bug is found
                    while reporting another one
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mephi42 at gmail dot com
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 42135
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42135&action=edit
minimal reproducible example

The attached program fails with

    AddressSanitizer: nested bug in the same thread, aborting.

without diagnosing the stack-buffer-overflow.



In rare cases it exits correctly with the expected

    AddressSanitizer: while reporting a bug found another one. Ignoring.
    ERROR: AddressSanitizer: stack-buffer-overflow on address ...
>From gcc-bugs-return-574420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:16:18 2017
Return-Path: <gcc-bugs-return-574420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67284 invoked by alias); 6 Sep 2017 09:16:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66046 invoked by uid 48); 6 Sep 2017 09:16:14 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/78468] [8 regression] libgomp.c/reduction-10.c and many more FAIL
Date: Wed, 06 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
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:
Message-ID: <bug-78468-4-a16QJ9Ddbj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00449.txt.bz2
Content-length: 509

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

--- Comment #39 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> The existing alloca code relies on STACK_BOUNDARY being set correctly. Has
> the value been fixed already for the OS variants mentioned? If stack
> alignment can't be guaranteed by OS/runtime/prolog, STACK_BOUNDARY should be
> 8.

No, no, no, please read the ??? note I put in emit-rtl.c.  STACK_BOUNDARY is
correct, the problem is the declared alignment of the virtual registers.
>From gcc-bugs-return-574421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:21:38 2017
Return-Path: <gcc-bugs-return-574421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116540 invoked by alias); 6 Sep 2017 09:21:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 113314 invoked by uid 48); 6 Sep 2017 09:21:33 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82078] [8 Regression] wrong code at -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu
Date: Wed, 06 Sep 2017 09:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82078-4-T2PamVf9cL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82078-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82078-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00450.txt.bz2
Content-length: 256

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

--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Thanks for a nice small testcase. I have proposed a fix on the mailing list:

https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00321.html
>From gcc-bugs-return-574422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:25:37 2017
Return-Path: <gcc-bugs-return-574422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16513 invoked by alias); 6 Sep 2017 09:25: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 16468 invoked by uid 55); 6 Sep 2017 09:25:33 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82078] [8 Regression] wrong code at -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu
Date: Wed, 06 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82078-4-nzv6HzA144@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82078-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82078-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00451.txt.bz2
Content-length: 869

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

--- Comment #9 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Wed Sep  6 09:25:00 2017
New Revision: 251756

URL: https://gcc.gnu.org/viewcvs?rev=251756&root=gcc&view=rev
Log:
Enqueue all SRA links for write flag propagation

2017-09-06  Martin Jambor  <mjambor@suse.cz>

        PR tree-optimization/82078
gcc/
        * tree-sra.c (sort_and_splice_var_accesses): Move call to
        add_access_to_work_queue...
        (build_accesses_from_assign): ...here.
        (propagate_all_subaccesses): Make sure racc is the group
        representative, if there is one.

gcc/testsuite/
        * gcc.dg/tree-ssa/pr82078.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr82078.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-sra.c
>From gcc-bugs-return-574423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:32:24 2017
Return-Path: <gcc-bugs-return-574423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27012 invoked by alias); 6 Sep 2017 09:32: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 26932 invoked by uid 48); 6 Sep 2017 09:32:20 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82116] "nested bug in the same thread" when a bug is found while reporting another one
Date: Wed, 06 Sep 2017 09: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82116-4-BIETMbacnl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82116-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82116-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00452.txt.bz2
Content-length: 176

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That looks like upstream libsanitizer bug or limitation.
>From gcc-bugs-return-574424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:39:56 2017
Return-Path: <gcc-bugs-return-574424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51016 invoked by alias); 6 Sep 2017 09: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 50974 invoked by uid 48); 6 Sep 2017 09:39:52 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82117] New: [8 Regression] SPEC CPU2017 502/602 compfail (ICE)
Date: Wed, 06 Sep 2017 09:39: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82117-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00453.txt.bz2
Content-length: 1286

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

            Bug ID: 82117
           Summary: [8 Regression] SPEC CPU2017 502/602 compfail (ICE)
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey.y.guskov at intel dot com
  Target Milestone: ---

Since r251650, the following happens @ CPU2017 502 and 602:


during GIMPLE pass: pre
sel-sched.c: In function 'fill_vec_av_set':
sel-sched.c:3689:1: internal compiler error: Segmentation fault
 fill_vec_av_set (av_set_t av, blist_t bnds, fence_t fence,
 ^
0xc97776 crash_signal
<------>../../../gcc/gcc/toplev.c:341
0xdd527d fini_eliminate
<------>../../../gcc/gcc/tree-ssa-pre.c:4863
0xddd8a7 execute
<------>../../../gcc/gcc/tree-ssa-pre.c:5201
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.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.


Option set:
-m64 -march=core-avx2 -mfpmath=sse -Ofast -fno-associative-math -funroll-loops
-flto -z muldefs -std=gnu89 -fopenmp
>From gcc-bugs-return-574425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:52:39 2017
Return-Path: <gcc-bugs-return-574425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6637 invoked by alias); 6 Sep 2017 09:52: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 6533 invoked by uid 48); 6 Sep 2017 09:52:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82117] [8 Regression] SPEC CPU2017 502/602 compfail (ICE)
Date: Wed, 06 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-82117-4-ANMkUYT31R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82117-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00454.txt.bz2
Content-length: 546

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE
   Target Milestone|---                         |8.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 82102 ***
>From gcc-bugs-return-574426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:52:39 2017
Return-Path: <gcc-bugs-return-574426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6673 invoked by alias); 6 Sep 2017 09:52: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 6566 invoked by uid 48); 6 Sep 2017 09:52:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82102] [8 Regression] ICE: Segmentation fault in /home/arnd/git/gcc/gcc/tree-ssa-pre.c:4863
Date: Wed, 06 Sep 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: 8.0
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82102-4-fGlTrPdHuy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82102-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82102-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00455.txt.bz2
Content-length: 455

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrey.y.guskov at intel dot com

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 82117 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-574427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 09:59:01 2017
Return-Path: <gcc-bugs-return-574427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28793 invoked by alias); 6 Sep 2017 09:59:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28735 invoked by uid 48); 6 Sep 2017 09:58:57 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82117] [8 Regression] SPEC CPU2017 502/602 compfail (ICE)
Date: Wed, 06 Sep 2017 09:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82117-4-aMxk2B24Kf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82117-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00456.txt.bz2
Content-length: 214

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

--- Comment #2 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
Weird. I did a Bugzilla search for "r251650", but it told me that nothing was
found.
>From gcc-bugs-return-574428-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 10:09:19 2017
Return-Path: <gcc-bugs-return-574428-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60535 invoked by alias); 6 Sep 2017 10: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 60380 invoked by uid 48); 6 Sep 2017 10:09:10 -0000
From: "wdijkstr at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/78468] [8 regression] libgomp.c/reduction-10.c and many more FAIL
Date: Wed, 06 Sep 2017 10:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: wdijkstr at arm dot com
X-Bugzilla-Status: REOPENED
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:
Message-ID: <bug-78468-4-tfBzcxoEca@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00457.txt.bz2
Content-length: 797

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

--- Comment #40 from Wilco <wdijkstr at arm dot com> ---
(In reply to Eric Botcazou from comment #39)
> > The existing alloca code relies on STACK_BOUNDARY being set correctly. Has
> > the value been fixed already for the OS variants mentioned? If stack
> > alignment can't be guaranteed by OS/runtime/prolog, STACK_BOUNDARY should be
> > 8.
> 
> No, no, no, please read the ??? note I put in emit-rtl.c.  STACK_BOUNDARY is
> correct, the problem is the declared alignment of the virtual registers.

If you cannot guarantee the alignment of the pointers to STACK_BOUNDARY then
STACK_BOUNDARY is incorrect. GCC uses the STACK_BOUNDARY guarantee in
optimizations so it is essential to get this right if you want correct code
generation.
>From gcc-bugs-return-574429-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 10:12:04 2017
Return-Path: <gcc-bugs-return-574429-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87332 invoked by alias); 6 Sep 2017 10:12: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 84418 invoked by uid 48); 6 Sep 2017 10:12:00 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82117] [8 Regression] SPEC CPU2017 502/602 compfail (ICE)
Date: Wed, 06 Sep 2017 10:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82117-4-CM0fsZL8RL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82117-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00458.txt.bz2
Content-length: 591

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

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

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

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Andrey Guskov from comment #2)
> Weird. I did a Bugzilla search for "r251650", but it told me that nothing
> was found.

Already fixed and closed bugs are not searched by default.
>From gcc-bugs-return-574430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 10:14:53 2017
Return-Path: <gcc-bugs-return-574430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101216 invoked by alias); 6 Sep 2017 10: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 99631 invoked by uid 48); 6 Sep 2017 10:14:49 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/78468] [8 regression] libgomp.c/reduction-10.c and many more FAIL
Date: Wed, 06 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
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:
Message-ID: <bug-78468-4-Et4Mam6zNq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00459.txt.bz2
Content-length: 937

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

--- Comment #41 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> If you cannot guarantee the alignment of the pointers to STACK_BOUNDARY then
> STACK_BOUNDARY is incorrect.

No, it is correct as per the definition:

 -- Macro: STACK_BOUNDARY
     Define this macro to the minimum alignment enforced by hardware
     for the stack pointer on this machine.  The definition is a C
     expression for the desired alignment (measured in bits).  This
     value is used as a default if `PREFERRED_STACK_BOUNDARY' is not
     defined.  On most machines, this should be the same as
     `PARM_BOUNDARY'.

> GCC uses the STACK_BOUNDARY guarantee in optimizations so it is essential to 
> get this right if you want correct code  generation.

No, you're interpolating, please read the entire discussion.  Your change is
based on a premise that is wrong at least on 32-bit SPARC.
>From gcc-bugs-return-574431-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 10:23:10 2017
Return-Path: <gcc-bugs-return-574431-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57547 invoked by alias); 6 Sep 2017 10: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 55451 invoked by uid 48); 6 Sep 2017 10:23:06 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82115] [8 Regression] ICE on (valid) C++11 code: Segmentation fault signal terminated program cc1plus
Date: Wed, 06 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82115-4-SZUU0zJpro@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00460.txt.bz2
Content-length: 664

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

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> ---
Why do you think it is a recent regression?
I certainly see ICE with the same issue (endless recursion in
value_dependent_expression_p) all the way back to r180013 (r180000 fails to
compile it, so it must be one of r180001, r180002 or r180003 where it started
to be accepted and ICE).
>From gcc-bugs-return-574432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 10:27:22 2017
Return-Path: <gcc-bugs-return-574432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25346 invoked by alias); 6 Sep 2017 10:27:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23246 invoked by uid 48); 6 Sep 2017 10:27:18 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82115] [8 Regression] ICE on (valid) C++11 code: Segmentation fault signal terminated program cc1plus
Date: Wed, 06 Sep 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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82115-4-xJz67iOzfg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00461.txt.bz2
Content-length: 161

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It doesn't ICE with -fno-checking though.
>From gcc-bugs-return-574433-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 10:39:12 2017
Return-Path: <gcc-bugs-return-574433-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3956 invoked by alias); 6 Sep 2017 10:39: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 3906 invoked by uid 48); 6 Sep 2017 10:39:09 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/78468] [8 regression] libgomp.c/reduction-10.c and many more FAIL
Date: Wed, 06 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
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:
Message-ID: <bug-78468-4-abSPkSuAWI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00462.txt.bz2
Content-length: 1406

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

--- Comment #42 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Eric Botcazou from comment #41)
> > If you cannot guarantee the alignment of the pointers to STACK_BOUNDARY then
> > STACK_BOUNDARY is incorrect.
> 
> No, it is correct as per the definition:
> 
>  -- Macro: STACK_BOUNDARY
>      Define this macro to the minimum alignment enforced by hardware
>      for the stack pointer on this machine.  The definition is a C
>      expression for the desired alignment (measured in bits).  This
>      value is used as a default if `PREFERRED_STACK_BOUNDARY' is not
>      defined.  On most machines, this should be the same as
>      `PARM_BOUNDARY'.

Indeed, so that means alloca code can safely rely on SP being aligned to
STACK_BOUNDARY.

> > GCC uses the STACK_BOUNDARY guarantee in optimizations so it is essential to 
> > get this right if you want correct code  generation.
> 
> No, you're interpolating, please read the entire discussion.  Your change is
> based on a premise that is wrong at least on 32-bit SPARC.

Yes I did, and it is quite clear - if SPARC doesn't guarantee alignment of the
pointers, it setting of STACK_BOUNDARY is simply incorrect. Alloca will access
data below SP if SP is not aligned to STACK_BOUNDARY even before my patch. No
amount of extra padding to try hiding the bug will fix that.
>From gcc-bugs-return-574434-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 11:36:20 2017
Return-Path: <gcc-bugs-return-574434-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70532 invoked by alias); 6 Sep 2017 11:36: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 66678 invoked by uid 48); 6 Sep 2017 11:36:16 -0000
From: "pmenzel+gcc at molgen dot mpg.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82118] New: Instruction `lsrsne` unknown
Date: Wed, 06 Sep 2017 11: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pmenzel+gcc at molgen dot mpg.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-82118-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00463.txt.bz2
Content-length: 1575

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

            Bug ID: 82118
           Summary: Instruction `lsrsne` unknown
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pmenzel+gcc at molgen dot mpg.de
  Target Milestone: ---

>From the discussion of a change-set for coreboot [1], it turns out that GCC
does not understand valid instructions.

```
$ arm-linux-gnueabi-gcc-7 --version
arm-linux-gnueabi-gcc-7 (Debian 7.2.0-1) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ cat mov1.S
        lsrsne r0, r0, #4
$ arm-linux-gnueabi-gcc-7 mov1.S -c -o mov1.gas
mov1.S: Assembler messages:
mov1.S:1: Error: bad instruction `lsrsne r0,r0,#4'
$ cat mov1.S
        lsrsne r0, r0, #4
$ arm-linux-gnueabi-gcc-7 mov2.S -c -o mov2.gas
```

Julius Werner comments as below.

> FWIW, the ARMv7 A.R.M. says the S comes before the condition code, so this
> should've been MOVSNE instead of MOVNES anyway. It also doesn't explicitly
> allow a source operand shift for MOV, so LSRSNE should be the correct form. I
> bet GCC just has a few additional non-standard aliases, but I would be
> surprised if it can't recognize the official and most obvious notation
> (LSRSNE).

But there is an error in GCC.

[1] https://review.coreboot.org/21358/
>From gcc-bugs-return-574435-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 12:01:29 2017
Return-Path: <gcc-bugs-return-574435-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46029 invoked by alias); 6 Sep 2017 12:01: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 43711 invoked by uid 48); 6 Sep 2017 12:01:24 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug hsa/82119] New: Revision 251264 caused a number of run-time HSA failures
Date: Wed, 06 Sep 2017 12:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: hsa
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
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-82119-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00464.txt.bz2
Content-length: 1101

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

            Bug ID: 82119
           Summary: Revision 251264 caused a number of run-time HSA
                    failures
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: hsa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamborm at gcc dot gnu.org
                CC: jamborm at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

I have tracked a number of new run-time HSA failures to r251264:

===== libgomp.sum =====
Tests that previously PASSED but now FAILED:

 libgomp.c/examples-4/declare_target-1.c execution test
 libgomp.c/pr66199-7.c execution test
 libgomp.c/pr66199-8.c execution test
 libgomp.c/pr66199-9.c execution test
 libgomp.c++/pr66199-7.C execution test
 libgomp.c++/pr66199-8.C execution test
 libgomp.c++/pr66199-9.C execution test
 libgomp.c++/target-9.C execution test
 libgomp.hsa.c/switch-1.c execution test
 libgomp.hsa.c/switch-branch-1.c execution test
>From gcc-bugs-return-574436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 12:02:47 2017
Return-Path: <gcc-bugs-return-574436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125534 invoked by alias); 6 Sep 2017 12:02: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 110446 invoked by uid 48); 6 Sep 2017 12:02:33 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug hsa/82119] Revision 251264 caused a number of run-time HSA failures
Date: Wed, 06 Sep 2017 12:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: hsa
X-Bugzilla-Version: 8.0
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: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-82119-4-oEqdtsJU6q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82119-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82119-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00465.txt.bz2
Content-length: 601

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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-09-06
           Assignee|unassigned at gcc dot gnu.org      |jamborm at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Jambor <jamborm at gcc dot gnu.org> ---
I will have a look at what is going on.
>From gcc-bugs-return-574437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 12:12:09 2017
Return-Path: <gcc-bugs-return-574437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108260 invoked by alias); 6 Sep 2017 12:12: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 106998 invoked by uid 48); 6 Sep 2017 12:12:05 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82118] Instruction `lsrsne` unknown
Date: Wed, 06 Sep 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: c
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon 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-82118-4-rxqYZixnGk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82118-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82118-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00466.txt.bz2
Content-length: 553

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

Christophe Lyon <clyon at gcc dot gnu.org> changed:

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

--- Comment #1 from Christophe Lyon <clyon at gcc dot gnu.org> ---
The error message comes from gas (binutils package), not gcc.
You should file your bug report there:
https://sourceware.org/bugzilla/
then select the 'binutils' component.
>From gcc-bugs-return-574438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 12:31:57 2017
Return-Path: <gcc-bugs-return-574438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17256 invoked by alias); 6 Sep 2017 12:31: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 12989 invoked by uid 48); 6 Sep 2017 12:31:49 -0000
From: "pmenzel+gcc at molgen dot mpg.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82118] Instruction `lsrsne` unknown
Date: Wed, 06 Sep 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: c
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pmenzel+gcc at molgen dot mpg.de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: MOVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82118-4-kk7T5YPWLV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82118-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82118-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00467.txt.bz2
Content-length: 589

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

Paul Menzel <pmenzel+gcc at molgen dot mpg.de> changed:

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

--- Comment #2 from Paul Menzel <pmenzel+gcc at molgen dot mpg.de> ---
Sorry for the noise, and thank you for the help. This is bug 22094 at the
binutils bug tracker [1].

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=22094
>From gcc-bugs-return-574439-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 12:32:28 2017
Return-Path: <gcc-bugs-return-574439-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41876 invoked by alias); 6 Sep 2017 12: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 35635 invoked by uid 55); 6 Sep 2017 12:32:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82108] [7/8 Regression] Wrong vectorized code generated for x86_64
Date: Wed, 06 Sep 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: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82108-4-0DS4sH8MLv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82108-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82108-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00468.txt.bz2
Content-length: 671

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Sep  6 12:31:52 2017
New Revision: 251790

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

        PR tree-optimization/82108
        * tree-vect-stmts.c (vectorizable_load): Fix pointer adjustment
        for gap in the non-permutation SLP case.

        * gcc.dg/vect/pr82108.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr82108.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-stmts.c
>From gcc-bugs-return-574440-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 13:02:06 2017
Return-Path: <gcc-bugs-return-574440-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79969 invoked by alias); 6 Sep 2017 13: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 79834 invoked by uid 48); 6 Sep 2017 13:01:56 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78269] FAIL: FAIL: g++.dg/cpp1z/noexcept-type11.C and FAIL: g++.dg/cpp1z/noexcept-type9.C
Date: Wed, 06 Sep 2017 13: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: thopre01 at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78269-4-gCtsYf1GaS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00469.txt.bz2
Content-length: 457

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

--- Comment #6 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
(In reply to Paolo Carlini from comment #5)
> Thomas, both trunk and gcc-7-brnanch seem fine to me, I'm tempted to close
> the bug. Can you double check the released 7.1.0 on aarch64?

Hi Paolo,

yes I can confirm g++.dg/cpp1z/noexcept-type11.C passes on both ARM and Aarch64
on trunk and latest GCC 7.

This bug can be closed.
>From gcc-bugs-return-574441-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 13:10:08 2017
Return-Path: <gcc-bugs-return-574441-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114585 invoked by alias); 6 Sep 2017 13:10: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 114360 invoked by uid 48); 6 Sep 2017 13:09:55 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78269] FAIL: FAIL: g++.dg/cpp1z/noexcept-type11.C and FAIL: g++.dg/cpp1z/noexcept-type9.C
Date: Wed, 06 Sep 2017 13: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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-78269-4-lxndhSXN1g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00470.txt.bz2
Content-length: 216

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

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Any idea about stock 7.1.0? Or 7.2.0? We want to add the information before
resolving it.
>From gcc-bugs-return-574442-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 13:14:49 2017
Return-Path: <gcc-bugs-return-574442-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102532 invoked by alias); 6 Sep 2017 13:14:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 102500 invoked by uid 48); 6 Sep 2017 13:14:45 -0000
From: "exterminator@forty-seven.info" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58012] Gcc bootstrap failed with cloog-isl: undefined reference to std::istream::ignore(long)
Date: Wed, 06 Sep 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: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: exterminator@forty-seven.info
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: cc
Message-ID: <bug-58012-4-bpcD7ulF6B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58012-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58012-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00471.txt.bz2
Content-length: 567

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

Markus <exterminator@forty-seven.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |exterminator@forty-seven.in
                   |                            |fo

--- Comment #3 from Markus <exterminator@forty-seven.info> ---
I had the same issue with 5.4.0 even without isl. What solved it for me was to
remove the '--disable-static' from the configure options.
>From gcc-bugs-return-574443-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 13:32:32 2017
Return-Path: <gcc-bugs-return-574443-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64422 invoked by alias); 6 Sep 2017 13: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 63404 invoked by uid 48); 6 Sep 2017 13:32:21 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] New: FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Wed, 06 Sep 2017 13:32: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thopre01 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-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00472.txt.bz2
Content-length: 724

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

            Bug ID: 82120
           Summary: FAIL: gcc.dg/tree-ssa/pr81588.c
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thopre01 at gcc dot gnu.org
  Target Milestone: ---
            Target: arm-none-eabi

Hi,

gcc.dg/tree-ssa/pr81588.c scan-tree-dump-times fails on GCC 7 (but not on
trunk) for Arm Cortex-M0, Cortex-M3 and Cortex-M4 cores. It does work when
targeting Arm Cortex-M7 though.

For the affected target, the string searched is not found in the dump.

Best regards.
>From gcc-bugs-return-574444-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 13:47:40 2017
Return-Path: <gcc-bugs-return-574444-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55069 invoked by alias); 6 Sep 2017 13:47: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 33420 invoked by uid 48); 6 Sep 2017 13:47:31 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81588] [7/8 Regression] Wrong code at -O2
Date: Wed, 06 Sep 2017 13:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon 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: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81588-4-Yue0WjzCsI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81588-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81588-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00473.txt.bz2
Content-length: 467

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

--- Comment #10 from Christophe Lyon <clyon at gcc dot gnu.org> ---
(In reply to Christophe Lyon from comment #9)
> I've noticed that the new testcase (gcc.dg/tree-ssa/pr81588.c) fails on the
> gcc-7 branch (r251446) on arm-linux-gnueabihf --with-cpu=cortex-a5
> --with-fpu=vfpv3-d16-fp16.

Thomas has just created a new bug report for this: bug #82120

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82120
>From gcc-bugs-return-574445-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 13:49:36 2017
Return-Path: <gcc-bugs-return-574445-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32163 invoked by alias); 6 Sep 2017 13:49: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 32085 invoked by uid 48); 6 Sep 2017 13:49:28 -0000
From: "iain.miller at ecmwf dot int" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82121] New: Unclassifiable statement during compilation when assigning to a Character array in a derived type contained in a ASSOCIATE statement
Date: Wed, 06 Sep 2017 13:49: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iain.miller at ecmwf dot int
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-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-82121-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00474.txt.bz2
Content-length: 4296

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

            Bug ID: 82121
           Summary: Unclassifiable statement during compilation when
                    assigning to a Character array in a derived type
                    contained in a ASSOCIATE statement
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: iain.miller at ecmwf dot int
  Target Milestone: ---

Created attachment 42136
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42136&action=edit
Tarball of files showing issue and corresponding .s files

A bug has been introduced in gfortran 7+ when trying to use an ASSOCIATE
construct to associate a new variable name to a Character array held within a
derived type. The correct F03 code was previously compiled without issue in
gfortran 6.3.0 and earlier.

Addressing the array verbosely without using the associate variable compiles.
Addressing character arrays not in a derived type via an associate variable
compiles as well.

Output is:

sucddh.F90:17:0:

 CADHTLS(2)='SVGTLT'

Error: Unclassifiable statement at (1)

Files to reproduce (also attached for completeness):

#===== yomcddh.F90 =====#

MODULE YOMCDDH

IMPLICIT NONE

SAVE

TYPE :: TCDDH
CHARACTER(len=12),ALLOCATABLE :: CADHTLS(:)
END TYPE TCDDH

CHARACTER(len=12),ALLOCATABLE :: CADHTTS(:)

TYPE(TCDDH), POINTER :: YRCDDH => NULL()

END MODULE YOMCDDH

#===== end of yomcddh.F90 =====#

#===== sucddh.F90 =====#

SUBROUTINE SUCDDH()

USE YOMCDDH  , ONLY : YRCDDH,CADHTTS

IMPLICIT NONE

ALLOCATE (YRCDDH%CADHTLS(20))

ALLOCATE (CADHTTS(20))

ASSOCIATE(CADHTLS=>YRCDDH%CADHTLS, NORMCHAR=>CADHTTS)

! Direct reference to character array compiles correctly
YRCDDH%CADHTLS(1)='SVGTLF'

! Reference to associated variable name fails to compile
CADHTLS(2)='SVGTLT'

NORMCHAR(1)='SVLTTC'

END ASSOCIATE

END SUBROUTINE SUCDDH

#===== end of sucddh.F90 =====#

Build using following commands:

gfortran -c yomcddh.F90
gfortran -c -I. sucddh.F90

This has been confirmed on three separate x86_64 systems, two using SLES and
gfortran 7.2.0 and one using Fedora and gfortran 7.1.1.

Build details for SLES systems:
lxg38: vsimple $ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/home/group/usid/bin/compilers/lxg/gcc/7.2.0/libexec/gcc/x86_64-suse-linux/7.2.0/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../gcc-7.2.0/configure
--prefix=/home/group/usid/bin/compilers/lxg/gcc/7.2.0
--enable-languages=c,c++,objc,fortran,obj-c++ --enable-checking=release
--enable-ssp --disable-libssp --disable-plugin --disable-libgcj
--disable-libmudflap --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --with-cpu=generic
--build=x86_64-suse-linux --enable-linker-build-id --enable-linux-futex
--without-system-libunwind --disable-multilib --with-pkgversion='ECMWF build by
usid'
Thread model: posix
gcc version 7.2.0 (ECMWF build by usid) 

Build details for Fedora system:
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin
--enable-initfini-array --with-isl --enable-libmpx
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC)
>From gcc-bugs-return-574446-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 13:50:51 2017
Return-Path: <gcc-bugs-return-574446-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33981 invoked by alias); 6 Sep 2017 13:50: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 33754 invoked by uid 48); 6 Sep 2017 13:50:42 -0000
From: "drizt at land dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82122] New: Overloaded operator new/delete in MinGW is not calling from .dlls
Date: Wed, 06 Sep 2017 13:50: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: drizt at land dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82122-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00475.txt.bz2
Content-length: 3583

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

            Bug ID: 82122
           Summary: Overloaded operator new/delete in MinGW is not calling
                    from .dlls
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: drizt at land dot ru
  Target Milestone: ---

$ /usr/bin/i686-w64-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/i686-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-w64-mingw32/7.2.0/lto-wrapper
Target: i686-w64-mingw32
Configured with: ../configure --prefix=/usr --bindir=/usr/bin
--includedir=/usr/include --mandir=/usr/share/man --infodir=/usr/share/info
--datadir=/usr/share --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --with-gnu-as --with-gnu-ld --verbose
--without-newlib --disable-multilib --disable-plugin --with-system-zlib
--disable-nls --without-included-gettext --disable-win32-registry
--enable-languages=c,c++,objc,obj-c++,fortran
--with-bugurl=http://bugzilla.redhat.com/bugzilla --with-cloog
--enable-threads=posix --enable-libgomp --target=i686-w64-mingw32
--with-sysroot=/usr/i686-w64-mingw32/sys-root
--with-gxx-include-dir=/usr/i686-w64-mingw32/sys-root/mingw/include/c++
Thread model: posix
gcc version 7.2.0 20170814 (Fedora MinGW 7.2.0-1.fc26) (GCC) 

For MinGW targets overloading new/delete operators is not applied for .dll
files. I tested it with Fedora 26 MinGW, MinGW 4.9.2 and MinGW 4.8.2 on Windows
7. Here I show log for Fedora MinGW

Source files:

$ cat lib.cpp 
#include "lib.h"

#include <cstdio>
#include <cstdlib>  

void func(A *a)
{
    std::printf("library delete called, pointer = 0x%p\n", a);
    delete a;
}

$ cat lib.h
class A
{
    int a;
};

void func(A *a);

$ cat main.cpp
#include "lib.h"

#include <cstdio>
#include <cstdlib>

// replacement of a minimal set of functions:
void *operator new(std::size_t sz)
{
    void *ptr = std::malloc(sz);
    std::printf("global op new called, size = %zu, pointer = 0x%p\n", sz, ptr);
    return ptr;
}

void operator delete(void* ptr) noexcept
{
    std::printf("global op delete called, pointer = 0x%p\n", ptr);
    std::free(ptr);
}

int main()
{
    A *a = new A();
    A *b = new A();
    func(a);
    delete b;
    return 0;
}

Compile:
$ i686-w64-mingw32-g++  -Dlib_EXPORTS  -std=c++11 -o lib.cpp.obj -c lib.cpp
$ i686-w64-mingw32-g++ -std=c++11 -shared -o liblib.dll lib.cpp.obj
$ i686-w64-mingw32-g++ -std=c++11 -o main.cpp.obj -c main.cpp
$ i686-w64-mingw32-g++ -std=c++11 -o main.exe liblib.dll -lkernel32 -luser32
-lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
main.cpp.obj

Output:
$ ./main.exe 
fixme:winediag:start_process Wine Staging 2.15 is a testing version containing
experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug
reports on winehq.org.
global op new called, size = 4, pointer = 0x00241718
global op new called, size = 4, pointer = 0x00246268
library delete called, pointer = 0x00241718
global op delete called, pointer = 0x00246268

The same with Linux gcc output:
$ ./main 
global op new called, size = 4, pointer = 0x0x1accc20
global op new called, size = 4, pointer = 0x0x1acd050
library delete called, pointer = 0x0x1accc20
global op delete called, pointer = 0x0x1accc20
global op delete called, pointer = 0x0x1acd050
>From gcc-bugs-return-574447-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 13:54:48 2017
Return-Path: <gcc-bugs-return-574447-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55391 invoked by alias); 6 Sep 2017 13:54: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 55356 invoked by uid 48); 6 Sep 2017 13:54:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82112] internal compiler error: in fold_convert_loc, at fold-const.c:2262
Date: Wed, 06 Sep 2017 13: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.1.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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created
Message-ID: <bug-82112-4-wmE1AVRVUb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82112-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82112-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00476.txt.bz2
Content-length: 689

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-09-06
           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 42137
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42137&action=edit
gcc8-pr82112.patch

Untested fix.
>From gcc-bugs-return-574448-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 13:55:09 2017
Return-Path: <gcc-bugs-return-574448-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56213 invoked by alias); 6 Sep 2017 13:55:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56139 invoked by uid 48); 6 Sep 2017 13:55:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Wed, 06 Sep 2017 13: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82120-4-vt24fzIQoz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00477.txt.bz2
Content-length: 408

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

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

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
logica-op-short-circuit?
>From gcc-bugs-return-574449-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 14:05:58 2017
Return-Path: <gcc-bugs-return-574449-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79878 invoked by alias); 6 Sep 2017 14:05: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 79489 invoked by uid 48); 6 Sep 2017 14:05:53 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82108] [7 Regression] Wrong vectorized code generated for x86_64
Date: Wed, 06 Sep 2017 14: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-82108-4-JbOV6TcTr6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82108-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82108-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00478.txt.bz2
Content-length: 714

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |8.0
            Summary|[7/8 Regression] Wrong      |[7 Regression] Wrong
                   |vectorized code generated   |vectorized code generated
                   |for x86_64                  |for x86_64
      Known to fail|8.0                         |

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar, thanks for the report.
>From gcc-bugs-return-574450-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 14:13:02 2017
Return-Path: <gcc-bugs-return-574450-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4602 invoked by alias); 6 Sep 2017 14: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 4350 invoked by uid 48); 6 Sep 2017 14:12:54 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78269] FAIL: FAIL: g++.dg/cpp1z/noexcept-type11.C and FAIL: g++.dg/cpp1z/noexcept-type9.C
Date: Wed, 06 Sep 2017 14:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: bug_status cc resolution target_milestone
Message-ID: <bug-78269-4-IHUMdwAOTY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00479.txt.bz2
Content-length: 570

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|paolo.carlini at oracle dot com    |
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.0

--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Confirmed that 7.1.0 is fine.
>From gcc-bugs-return-574451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 14:15:43 2017
Return-Path: <gcc-bugs-return-574451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7718 invoked by alias); 6 Sep 2017 14:15: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 6889 invoked by uid 48); 6 Sep 2017 14:15:29 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78269] FAIL: FAIL: g++.dg/cpp1z/noexcept-type11.C and FAIL: g++.dg/cpp1z/noexcept-type9.C
Date: Wed, 06 Sep 2017 14:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78269-4-eIqWYf5Ea5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00480.txt.bz2
Content-length: 350

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

--- Comment #9 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
(In reply to Paolo Carlini from comment #8)
> Confirmed that 7.1.0 is fine.

It is indeed. As can be seen in my comment #4, this was fixed somewhere before
14th of November 2016, well before GCC 7 release.

Best regards.
>From gcc-bugs-return-574452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 14:21:58 2017
Return-Path: <gcc-bugs-return-574452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31942 invoked by alias); 6 Sep 2017 14: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 31848 invoked by uid 48); 6 Sep 2017 14:21:53 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Wed, 06 Sep 2017 14:21: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.2.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-82120-4-XBDrmfI9TF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00481.txt.bz2
Content-length: 2545

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is a total mess.  I've copied a boilerplate from other tests that require
branch cost of 2.
I guess
2017-09-06  Jakub Jelinek  <jakub@redhat.com>

        PR testsuite/82120
        * gcc.dg/tree-ssa/pr81588.c: Don't run on logical_op_short_circuit
targets.

--- gcc/testsuite/gcc.dg/tree-ssa/pr81588.c.jj  2017-08-02 12:10:36.000000000
+0200
+++ gcc/testsuite/gcc.dg/tree-ssa/pr81588.c     2017-09-06 16:09:57.373505808
+0200
@@ -1,5 +1,5 @@
 /* PR tree-optimization/81588 */
-/* { dg-do compile { target { ! "m68k*-*-* mmix*-*-* bfin*-*-* v850*-*-*
moxie*-*-* cris*-*-* m32c*-*-* fr30*-*-* mcore*-*-* powerpc*-*-* xtensa*-*-*
hppa*-*-* nios2*-*-*" } } } */
+/* { dg-do compile { target { ! { logical_op_short_circuit || { m68k*-*-*
bfin*-*-* v850*-*-* moxie*-*-* m32c*-*-* fr30*-*-* mcore*-*-* xtensa*-*-*
hppa*-*-* } } } } } */
 /* { dg-options "-O2 -fdump-tree-reassoc1-details" } */
 /* { dg-additional-options "-mbranch-cost=2" { target mips*-*-* avr-*-*
s390*-*-* i?86-*-* x86_64-*-* } } */

could fix that, but that will mean it will be untested even on mips, avr and
s390 when it could be tested there.

So perhaps better:
2017-09-06  Jakub Jelinek  <jakub@redhat.com>

        PR testsuite/82120
        * gcc.dg/tree-ssa/pr81588.c: Don't run on logical_op_short_circuit
targets
        except for those where -mbranch-cost=2 is supported.

--- gcc/testsuite/gcc.dg/tree-ssa/pr81588.c.jj  2017-08-02 12:10:36.000000000
+0200
+++ gcc/testsuite/gcc.dg/tree-ssa/pr81588.c     2017-09-06 16:17:30.563118589
+0200
@@ -1,5 +1,5 @@
 /* PR tree-optimization/81588 */
-/* { dg-do compile { target { ! "m68k*-*-* mmix*-*-* bfin*-*-* v850*-*-*
moxie*-*-* cris*-*-* m32c*-*-* fr30*-*-* mcore*-*-* powerpc*-*-* xtensa*-*-*
hppa*-*-* nios2*-*-*" } } } */
+/* { dg-do compile { target { ! { { logical_op_short_circuit && { ! "mips*-*-*
avr-*-* s390*-*-*" } } || { m68k*-*-* bfin*-*-* v850*-*-* moxie*-*-* m32c*-*-*
fr30*-*-* mcore*-*-* xtensa*-*-* hppa*-*-* } } } } } */
 /* { dg-options "-O2 -fdump-tree-reassoc1-details" } */
 /* { dg-additional-options "-mbranch-cost=2" { target mips*-*-* avr-*-*
s390*-*-* i?86-*-* x86_64-*-* } } */


Can you test it on the various arm configurations (just make check-gcc
RUNTESTFLAGS=tree-ssa.exp=pr81588.c)?
Wonder about the targets that aren't included in logical_op_short_circuit, what
they actually do and why they are in the lists in the other testcases.
>From gcc-bugs-return-574453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 14:28:12 2017
Return-Path: <gcc-bugs-return-574453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41442 invoked by alias); 6 Sep 2017 14:28:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 41385 invoked by uid 48); 6 Sep 2017 14:28:08 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78269] FAIL: FAIL: g++.dg/cpp1z/noexcept-type11.C and FAIL: g++.dg/cpp1z/noexcept-type9.C
Date: Wed, 06 Sep 2017 14: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: 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78269-4-UXb47HFFE2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78269-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00482.txt.bz2
Content-length: 470

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

--- Comment #10 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
(In reply to Thomas Preud'homme from comment #9)
> (In reply to Paolo Carlini from comment #8)
> > Confirmed that 7.1.0 is fine.
> 
> It is indeed. As can be seen in my comment #4, this was fixed somewhere
> before 14th of November 2016, well before GCC 7 release.
> 
> Best regards.

Exact revision that fixed the bug on ARM is: r242026
>From gcc-bugs-return-574454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 14:39:40 2017
Return-Path: <gcc-bugs-return-574454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93704 invoked by alias); 6 Sep 2017 14:39: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 93641 invoked by uid 48); 6 Sep 2017 14:39:34 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Wed, 06 Sep 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: testsuite
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thopre01 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-82120-4-fKd9HwRLCT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00483.txt.bz2
Content-length: 2844

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

--- Comment #3 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #2)
> This is a total mess.  I've copied a boilerplate from other tests that
> require branch cost of 2.
> I guess
> 2017-09-06  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR testsuite/82120
> 	* gcc.dg/tree-ssa/pr81588.c: Don't run on logical_op_short_circuit targets.
> 
> --- gcc/testsuite/gcc.dg/tree-ssa/pr81588.c.jj	2017-08-02 12:10:36.000000000
> +0200
> +++ gcc/testsuite/gcc.dg/tree-ssa/pr81588.c	2017-09-06 16:09:57.373505808
> +0200
> @@ -1,5 +1,5 @@
>  /* PR tree-optimization/81588 */
> -/* { dg-do compile { target { ! "m68k*-*-* mmix*-*-* bfin*-*-* v850*-*-*
> moxie*-*-* cris*-*-* m32c*-*-* fr30*-*-* mcore*-*-* powerpc*-*-* xtensa*-*-*
> hppa*-*-* nios2*-*-*" } } } */
> +/* { dg-do compile { target { ! { logical_op_short_circuit || { m68k*-*-*
> bfin*-*-* v850*-*-* moxie*-*-* m32c*-*-* fr30*-*-* mcore*-*-* xtensa*-*-*
> hppa*-*-* } } } } } */
>  /* { dg-options "-O2 -fdump-tree-reassoc1-details" } */
>  /* { dg-additional-options "-mbranch-cost=2" { target mips*-*-* avr-*-*
> s390*-*-* i?86-*-* x86_64-*-* } } */
>  
> could fix that, but that will mean it will be untested even on mips, avr and
> s390 when it could be tested there.
> 
> So perhaps better:
> 2017-09-06  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR testsuite/82120
> 	* gcc.dg/tree-ssa/pr81588.c: Don't run on logical_op_short_circuit targets
> 	except for those where -mbranch-cost=2 is supported.
> 
> --- gcc/testsuite/gcc.dg/tree-ssa/pr81588.c.jj	2017-08-02 12:10:36.000000000
> +0200
> +++ gcc/testsuite/gcc.dg/tree-ssa/pr81588.c	2017-09-06 16:17:30.563118589
> +0200
> @@ -1,5 +1,5 @@
>  /* PR tree-optimization/81588 */
> -/* { dg-do compile { target { ! "m68k*-*-* mmix*-*-* bfin*-*-* v850*-*-*
> moxie*-*-* cris*-*-* m32c*-*-* fr30*-*-* mcore*-*-* powerpc*-*-* xtensa*-*-*
> hppa*-*-* nios2*-*-*" } } } */
> +/* { dg-do compile { target { ! { { logical_op_short_circuit && { !
> "mips*-*-* avr-*-* s390*-*-*" } } || { m68k*-*-* bfin*-*-* v850*-*-*
> moxie*-*-* m32c*-*-* fr30*-*-* mcore*-*-* xtensa*-*-* hppa*-*-* } } } } } */
>  /* { dg-options "-O2 -fdump-tree-reassoc1-details" } */
>  /* { dg-additional-options "-mbranch-cost=2" { target mips*-*-* avr-*-*
> s390*-*-* i?86-*-* x86_64-*-* } } */
>  
> 
> Can you test it on the various arm configurations (just make check-gcc
> RUNTESTFLAGS=tree-ssa.exp=pr81588.c)?
> Wonder about the targets that aren't included in logical_op_short_circuit,
> what they actually do and why they are in the lists in the other testcases.

I've tested it for a variety of Arm Cortex-M and Cortex-A cores and it either
PASS or is marked as UNSUPPORTED so looks good to me, thanks.

Best regards.
>From gcc-bugs-return-574455-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 15:11:13 2017
Return-Path: <gcc-bugs-return-574455-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125926 invoked by alias); 6 Sep 2017 15:11:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125753 invoked by uid 55); 6 Sep 2017 15:11:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Wed, 06 Sep 2017 15:11: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.2.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-82120-4-WPBhACsp5s@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00484.txt.bz2
Content-length: 559

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Sep  6 15:10:28 2017
New Revision: 251806

URL: https://gcc.gnu.org/viewcvs?rev=251806&root=gcc&view=rev
Log:
        PR testsuite/82120
        * gcc.dg/tree-ssa/pr81588.c: Don't run on logical_op_short_circuit
        targets except for those where -mbranch-cost=2 is supported.

Modified:
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/tree-ssa/pr81588.c
>From gcc-bugs-return-574456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 15:28:58 2017
Return-Path: <gcc-bugs-return-574456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111729 invoked by alias); 6 Sep 2017 15:28: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 111671 invoked by uid 48); 6 Sep 2017 15:28:53 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82121] [7/8 Regression] Unclassifiable statement during compilation when assigning to a Character array in a derived type contained in a ASSOCIATE statement
Date: Wed, 06 Sep 2017 15: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.2.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_known_to_work keywords cf_reconfirmed_on cc everconfirmed short_desc cf_known_to_fail
Message-ID: <bug-82121-4-JC0jMoPXEP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82121-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82121-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00485.txt.bz2
Content-length: 1317

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |6.4.0
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2017-09-06
                 CC|                            |pault at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|Unclassifiable statement    |[7/8 Regression]
                   |during compilation when     |Unclassifiable statement
                   |assigning to a Character    |during compilation when
                   |array in a derived type     |assigning to a Character
                   |contained in a ASSOCIATE    |array in a derived type
                   |statement                   |contained in a ASSOCIATE
                   |                            |statement
      Known to fail|                            |7.2.0, 8.0

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed, likely r241860 (pr64933).
>From gcc-bugs-return-574457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 15:41:53 2017
Return-Path: <gcc-bugs-return-574457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16705 invoked by alias); 6 Sep 2017 15:41: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 16651 invoked by uid 48); 6 Sep 2017 15:41:49 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82123] New: [7 regression] spurious -Wformat-overflow warning for converted vars
Date: Wed, 06 Sep 2017 15:41: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arnd at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82123-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00486.txt.bz2
Content-length: 1586

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

            Bug ID: 82123
           Summary: [7 regression] spurious -Wformat-overflow warning for
                    converted vars
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arnd at linaro dot org
  Target Milestone: ---

This one seems to be related to pr77721 and pr81483. The first however only
happens with -Wformat-overflow=2, and the second one has no type conversion, so
I'm opening a separate pr for this one. Reproduced with gcc-7.1.1 and gcc-8.0.0
(r251692).

$ x86_64-linux-gcc-8.0.0 -c gpiolib-acpi.c -O2 -Wformat-overflow=1
gpiolib-acpi.c: In function 'acpi_gpiochip_request_interrupt':
gpiolib-acpi.c:7:28: warning: '%02X' directive writing between 2 and 4 bytes
into a region of size 3 [-Wformat-overflow=]
   __builtin_sprintf(name, "%02X", pin);
                            ^~~~
gpiolib-acpi.c:7:27: note: directive argument in the range [0, 65535]
   __builtin_sprintf(name, "%02X", pin);
                           ^~~~~~
gpiolib-acpi.c:7:3: note: '__builtin_sprintf' output between 3 and 5 bytes into
a destination of size 3
   __builtin_sprintf(name, "%02X", pin);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

8<----
void acpi_gpiochip_request_interrupt(unsigned short s)
{
        char name[3];
        unsigned int pin = s;

        if (pin <= 255)
                __builtin_sprintf(name, "%02X", pin);
}
>From gcc-bugs-return-574458-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 16:12:28 2017
Return-Path: <gcc-bugs-return-574458-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41713 invoked by alias); 6 Sep 2017 16:12:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 41603 invoked by uid 48); 6 Sep 2017 16:12:14 -0000
From: "jupitercuso4 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82067] G++ has an internal compiler error in possible_polymorphic_call_targets, at ipa-devirt.c:1557
Date: Wed, 06 Sep 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: c++
X-Bugzilla-Version: 4.9.4
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jupitercuso4 at gmail dot com
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82067-4-jRrJ2T74rx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82067-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82067-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00487.txt.bz2
Content-length: 1925

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

--- Comment #5 from jupitercuso4 at gmail dot com ---
$ g++ -std=c++11 -O3 --save-temps test.i
test.cpp: In constructor
'xtsc_component::xtsc_queue_pin::xtsc_queue_pin(sc_core::sc_module_name, const
xtsc_component::xtsc_queue_pin_parms&)':
test.cpp:32:1: internal compiler error: in possible_polymorphic_call_targets,
at ipa-devirt.c:1557
 xtsc_component::xtsc_queue_pin::xtsc_queue_pin(sc_module_name module_name,
const xtsc_queue_pin_parms& queue_parms) :
 ^
0x6828cb possible_polymorphic_call_targets(tree_node*, long,
ipa_polymorphic_call_context, bool*, void**, int*)
        ../../gcc-4.9.4/gcc/ipa-devirt.c:1557
0x665cea possible_polymorphic_call_targets(tree_node*, bool*, void**)
        ../../gcc-4.9.4/gcc/ipa-utils.h:142
0xc87198 gimple_fold_call
        ../../gcc-4.9.4/gcc/gimple-fold.c:1127
0xc87198 fold_stmt_1
        ../../gcc-4.9.4/gcc/gimple-fold.c:1302
0xd909b8 fold_marked_statements
        ../../gcc-4.9.4/gcc/tree-inline.c:4549
0xd8c2e0 optimize_inline_calls(tree_node*)
        ../../gcc-4.9.4/gcc/tree-inline.c:4630
0xf48b89 inline_transform(cgraph_node*)
        ../../gcc-4.9.4/gcc/ipa-inline-transform.c:457
0xd1b58a execute_one_ipa_transform_pass
        ../../gcc-4.9.4/gcc/passes.c:2066
0xd1b58a execute_all_ipa_transforms()
        ../../gcc-4.9.4/gcc/passes.c:2107
0xbd8abd expand_function
        ../../gcc-4.9.4/gcc/cgraphunit.c:1775
0xf99653 expand_all_functions
        ../../gcc-4.9.4/gcc/cgraphunit.c:1916
0xf99653 compile()
        ../../gcc-4.9.4/gcc/cgraphunit.c:2260
0xf98f17 finalize_compilation_unit()
        ../../gcc-4.9.4/gcc/cgraphunit.c:2337
0xb149dd cp_write_global_declarations()
        ../../gcc-4.9.4/gcc/cp/decl2.c:4647
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-574459-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 16:14:20 2017
Return-Path: <gcc-bugs-return-574459-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57593 invoked by alias); 6 Sep 2017 16:14: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 57493 invoked by uid 48); 6 Sep 2017 16:14:12 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/77726] On MinGW targets, user-defined `operator delete(void *)` is not called if the sized-deallocation version is not provided in C++14 mode when libstdc++ is linked dynamically
Date: Wed, 06 Sep 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: libstdc++
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
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: see_also
Message-ID: <bug-77726-4-WKu7JxONcK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77726-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77726-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00488.txt.bz2
Content-length: 510

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

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

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Replacing new/delete doesn't work properly on mingw.
>From gcc-bugs-return-574460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 16:14:45 2017
Return-Path: <gcc-bugs-return-574460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70368 invoked by alias); 6 Sep 2017 16: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 66974 invoked by uid 48); 6 Sep 2017 16:14:38 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/77726] On MinGW targets, user-defined `operator delete(void *)` is not called if the sized-deallocation version is not provided in C++14 mode when libstdc++ is linked dynamically
Date: Wed, 06 Sep 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: libstdc++
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_severity
Message-ID: <bug-77726-4-1jbeMqlsYF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77726-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77726-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00489.txt.bz2
Content-length: 294

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal
>From gcc-bugs-return-574462-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 16:16:27 2017
Return-Path: <gcc-bugs-return-574462-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72448 invoked by alias); 6 Sep 2017 16:16:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 71936 invoked by uid 48); 6 Sep 2017 16:16:20 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81413] overloaded new and delete might not be called when dynamically linked with libstdc++
Date: Wed, 06 Sep 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: libstdc++
X-Bugzilla-Version: 7.1.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: cc
Message-ID: <bug-81413-4-1qJtV7hk40@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00491.txt.bz2
Content-length: 437

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drizt at land dot ru

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 82122 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-574461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 16:16:23 2017
Return-Path: <gcc-bugs-return-574461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71972 invoked by alias); 6 Sep 2017 16:16: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 71919 invoked by uid 48); 6 Sep 2017 16:16:19 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82122] Overloaded operator new/delete in MinGW is not calling from .dlls
Date: Wed, 06 Sep 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: libstdc++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: 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-82122-4-H3dUQUrYuB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82122-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82122-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00490.txt.bz2
Content-length: 488

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

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

*** This bug has been marked as a duplicate of bug 81413 ***
>From gcc-bugs-return-574463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 16:35:33 2017
Return-Path: <gcc-bugs-return-574463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27823 invoked by alias); 6 Sep 2017 16:35:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27719 invoked by uid 55); 6 Sep 2017 16:35:29 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/78468] [8 regression] libgomp.c/reduction-10.c and many more FAIL
Date: Wed, 06 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
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:
Message-ID: <bug-78468-4-OicAa0HMh5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00492.txt.bz2
Content-length: 828

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

--- Comment #43 from Wilco <wilco at gcc dot gnu.org> ---
Author: wilco
Date: Wed Sep  6 16:34:54 2017
New Revision: 251811

URL: https://gcc.gnu.org/viewcvs?rev=251811&root=gcc&view=rev
Log:
PR78468 - add alloca alignment test

Add an alignment test to check that aligned alloca's really do get
correctly aligned.  Some targets may not ensure SP is always a multiple
of STACK_BOUNDARY (particularly with outgoing arguments), which means
aligned alloca does not get correctly aligned.  This can be fixed either
by aligning the outgoing arguments or setting STACK_BOUNDARY correctly.

    testsuite/
        PR middle-end/78468
        * gcc.dg/pr78468.c: Add alignment test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr78468.c
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574464-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 17:44:18 2017
Return-Path: <gcc-bugs-return-574464-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22500 invoked by alias); 6 Sep 2017 17:44: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 22374 invoked by uid 48); 6 Sep 2017 17:44:08 -0000
From: "lh_mouse at 126 dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/77726] On MinGW targets, user-defined `operator delete(void *)` is not called if the sized-deallocation version is not provided in C++14 mode when libstdc++ is linked dynamically
Date: Wed, 06 Sep 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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lh_mouse at 126 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-77726-4-prB8ETLH51@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77726-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77726-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00493.txt.bz2
Content-length: 1739

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

--- Comment #2 from Liu Hao <lh_mouse at 126 dot com> ---
It isn't weired if you know how a Dynamic-Link Library (DLL) on Windows works
different than a Shared Object (SO) on Linux.

Windows does not have a dynamic linker such as `ld.so` on Linux. Symbols in a
DLL are resolved at build-time, in contrary to Linux, where symbols in a SO are
resolved at load-time. The DLL loader can resolve symbols to addresses, but it
isn't as powerful as linkers after all. Consequently, an executable cannot use
its strong symbols to override already-resolved weak ones in a DLL.

If the user does not define a sized deallocation function, the default one in
libstdc++*.dll is used, which calls the weak, default, non-sized deallocation
function in the same DLL, which is the only candidate when the DLL is built and
can't be overridden.

Possible solution:
The default sized deallocation function should not call the non-sized one
directly. We may introduce a static pointer-to-function which points to the
non-sized one initially. The default sized deallocation function should read
that pointer then call the function it points to. An executable that defines a
non-sized deallocation function should modify that pointer to point to the
user-provided non-sized deallocation function before any other code that may
allocate dynamic memory, possibly via an implicitly generated __constructor__
with high priority.

Question:
What will happen if both the executable and another DLL try to replace the
non-sized deallocation function?
It looks to me that on Linux such scenario will end up in multiple definitions.
In this case abort() or std::terminate() is possibly solution.
>From gcc-bugs-return-574465-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 18:11:56 2017
Return-Path: <gcc-bugs-return-574465-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16327 invoked by alias); 6 Sep 2017 18:11:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16268 invoked by uid 48); 6 Sep 2017 18:11:51 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82070] [8 Regression] inaccessible within this context in lambda rejects valid
Date: Wed, 06 Sep 2017 18:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-82070-4-NHknoiwY4Z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82070-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82070-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00494.txt.bz2
Content-length: 489

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-09-06
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-574466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 18:43:38 2017
Return-Path: <gcc-bugs-return-574466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121371 invoked by alias); 6 Sep 2017 18:43:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 111386 invoked by uid 55); 6 Sep 2017 18:43:29 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81987] [8 Regression] ICE in verify_ssa with -O3 -march=skylake-avx512
Date: Wed, 06 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81987-4-rOJ06P8p3G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81987-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81987-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00495.txt.bz2
Content-length: 1112

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

--- Comment #9 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Wed Sep  6 18:42:56 2017
New Revision: 251815

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

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline:
        2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/81987
        * gimple-ssa-strength-reduction.c (insert_initializers): Don't
        insert an initializer in a location not dominated by the stride
        definition.

[gcc/testsuite]

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline:
        2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/81987
        * g++.dg/torture/pr81987.C: New file.


Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/torture/pr81987.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 18:45:34 2017
Return-Path: <gcc-bugs-return-574467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9475 invoked by alias); 6 Sep 2017 18: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 5362 invoked by uid 55); 6 Sep 2017 18:45:26 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81987] [8 Regression] ICE in verify_ssa with -O3 -march=skylake-avx512
Date: Wed, 06 Sep 2017 18:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81987-4-3mRiRTVVGN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81987-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81987-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00496.txt.bz2
Content-length: 1113

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

--- Comment #10 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Wed Sep  6 18:44:51 2017
New Revision: 251816

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

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline:
        2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/81987
        * gimple-ssa-strength-reduction.c (insert_initializers): Don't
        insert an initializer in a location not dominated by the stride
        definition.

[gcc/testsuite]

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline:
        2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/81987
        * g++.dg/torture/pr81987.C: New file.


Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/torture/pr81987.C
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 18:49:28 2017
Return-Path: <gcc-bugs-return-574468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104981 invoked by alias); 6 Sep 2017 18:49: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 103589 invoked by uid 55); 6 Sep 2017 18:49:23 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81987] [8 Regression] ICE in verify_ssa with -O3 -march=skylake-avx512
Date: Wed, 06 Sep 2017 18:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81987-4-GnUURP7vvo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81987-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81987-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00497.txt.bz2
Content-length: 1113

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

--- Comment #11 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Wed Sep  6 18:48:50 2017
New Revision: 251817

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

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline:
        2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/81987
        * gimple-ssa-strength-reduction.c (insert_initializers): Don't
        insert an initializer in a location not dominated by the stride
        definition.

[gcc/testsuite]

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline:
        2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/81987
        * g++.dg/torture/pr81987.C: New file.


Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr81987.C
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 18:50:08 2017
Return-Path: <gcc-bugs-return-574469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116427 invoked by alias); 6 Sep 2017 18:50: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 113995 invoked by uid 48); 6 Sep 2017 18:50:00 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81987] [8 Regression] ICE in verify_ssa with -O3 -march=skylake-avx512
Date: Wed, 06 Sep 2017 18:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81987-4-rXIOZL88eG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81987-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81987-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00498.txt.bz2
Content-length: 473

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

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

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

--- Comment #12 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Now fixed everywhere.  Thanks again for the report!
>From gcc-bugs-return-574470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 18:59:11 2017
Return-Path: <gcc-bugs-return-574470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13618 invoked by alias); 6 Sep 2017 18:59:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8252 invoked by uid 48); 6 Sep 2017 18:59:07 -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: Wed, 06 Sep 2017 18:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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 assigned_to
Message-ID: <bug-79433-4-Vs9zK4MTZP@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-09/txt/msg00499.txt.bz2
Content-length: 550

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

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

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

--- Comment #24 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The study group has approved the idea in comment 23 so I'm making that change
(on trunk only so far).
>From gcc-bugs-return-574471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 19:24:41 2017
Return-Path: <gcc-bugs-return-574471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110922 invoked by alias); 6 Sep 2017 19:24:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108678 invoked by uid 48); 6 Sep 2017 19:24:37 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82080] ICE: Segmentation fault
Date: Wed, 06 Sep 2017 19:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82080-4-SfsxEaqqtS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82080-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82080-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00500.txt.bz2
Content-length: 731

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-06
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Turns out the issue was with my compiler version; after updating from an August
checkout to a September checkout, I can reproduce the ICE with both -m64 and
-m32. Confirmed.
>From gcc-bugs-return-574472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 19:37:25 2017
Return-Path: <gcc-bugs-return-574472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82974 invoked by alias); 6 Sep 2017 19:37: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 80249 invoked by uid 55); 6 Sep 2017 19:37:20 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82070] [8 Regression] inaccessible within this context in lambda rejects valid
Date: Wed, 06 Sep 2017 19:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82070-4-wYRNKXxUKC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82070-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82070-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00501.txt.bz2
Content-length: 555

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Sep  6 19:36:48 2017
New Revision: 251819

URL: https://gcc.gnu.org/viewcvs?rev=251819&root=gcc&view=rev
Log:
        PR c++/82070 - error with nested lambda capture

        * pt.c (tsubst_expr) [DECL_EXPR]: Register capture proxies with
        register_local_specialization.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
>From gcc-bugs-return-574473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 19:39:32 2017
Return-Path: <gcc-bugs-return-574473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67769 invoked by alias); 6 Sep 2017 19: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 65241 invoked by uid 48); 6 Sep 2017 19:39:27 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/82124] New: FAIL: libgomp.c++/pr69393.C (test for excess errors)
Date: Wed, 06 Sep 2017 19:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-82124-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00502.txt.bz2
Content-length: 4907

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

            Bug ID: 82124
           Summary: FAIL: libgomp.c++/pr69393.C (test for excess errors)
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: openmp
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egallager at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---
              Host: i386-apple-darwin9.8.0
            Target: i386-apple-darwin9.8.0
             Build: i386-apple-darwin9.8.0

Diffing https://gcc.gnu.org/ml/gcc-testresults/2017-08/msg00882.html and 
https://gcc.gnu.org/ml/gcc-testresults/2017-09/msg00470.html shows that a new
libgomp test failure was introduced between August and September:

 Running target unix
+FAIL: libgomp.c++/pr69393.C (test for excess errors)

                === libgomp Summary ===

-# of expected passes           1788
+# of expected passes           1789
+# of unexpected failures       1
 # of unsupported tests         208

Checking libgomp/testsuite/libgomp.log, the excess errors are:

FAIL: libgomp.c++/pr69393.C (test for excess errors)
Excess errors:
/var/tmp//ccWCqG7a.s:303:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:303:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:300:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:300:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:298:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:298:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:296:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:296:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:289:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:289:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:282:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:282:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:276:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:276:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:270:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:270:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:265:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:265:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:258:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:258:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
/var/tmp//ccWCqG7a.s:256:non-relocatable subtraction expression,
"_pr69393.C.a48af4a2" minus "Lsection__debug_info"
/var/tmp//ccWCqG7a.s:256:symbol: "_pr69393.C.a48af4a2" can't be undefined in a
subtraction expression
lto-wrapper: fatal error: /var/root/gcc-git/my_oddly_named_builddir/gcc/xgcc
returned 1 exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.

I attached the full logfile. Version info:

$ /usr/local/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i386-apple-darwin9.8.0/8.0.0/lto-wrapper
Target: i386-apple-darwin9.8.0
Configured with: ../configure --disable-werror --disable-werror-always
--enable-languages=c,c++,lto,objc,obj-c++ --enable-stage1-checking=release,rtl
-C --with-system-libunwind --enable-secureplt --enable-frame-pointer
--enable-debug --with-isl --disable-host-shared --enable-maintainer-mode
--disable-default-pie --with-ld64 --without-pic --enable-target-optspace
--enable-libstdcxx-debug CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++
AUTOCONF=/usr/local/bin/autoconf AUTOHEADER=/usr/local/bin/autoheader
AUTORECONF=/usr/local/bin/autoreconf AUTOM4TE=/usr/local/bin/autom4te
AUTOSCAN=/usr/local/bin/autoscan AUTOUPDATE=/usr/local/bin/autoupdate
IFNAMES=/usr/local/bin/ifnames
Thread model: posix
gcc version 8.0.0 20170905 (experimental) (GCC) 
$
>From gcc-bugs-return-574474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 19:41:29 2017
Return-Path: <gcc-bugs-return-574474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46891 invoked by alias); 6 Sep 2017 19:41: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 42451 invoked by uid 48); 6 Sep 2017 19:41:21 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/82124] FAIL: libgomp.c++/pr69393.C (test for excess errors)
Date: Wed, 06 Sep 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: libgomp
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82124-4-OrypbMGngZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82124-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82124-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00503.txt.bz2
Content-length: 331

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Created attachment 42138
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42138&action=edit
bzipped libgomp.log

Oops, the log was too big to attach on its own; trying again after compressing
it...
>From gcc-bugs-return-574475-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 19:43:06 2017
Return-Path: <gcc-bugs-return-574475-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14716 invoked by alias); 6 Sep 2017 19:43: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 10564 invoked by uid 48); 6 Sep 2017 19:42:58 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/82124] FAIL: libgomp.c++/pr69393.C (test for excess errors)
Date: Wed, 06 Sep 2017 19:43: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: 8.0
X-Bugzilla-Keywords: openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82124-4-YmIguQMqez@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82124-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82124-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00504.txt.bz2
Content-length: 361

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Created attachment 42139
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42139&action=edit
Full testresults diff

(attaching the full diff between the 2 test logs to remind myself to open other
bugs for the other new failures)
>From gcc-bugs-return-574476-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 19:45:37 2017
Return-Path: <gcc-bugs-return-574476-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61699 invoked by alias); 6 Sep 2017 19: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 130240 invoked by uid 48); 6 Sep 2017 19:45:00 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82070] [8 Regression] inaccessible within this context in lambda rejects valid
Date: Wed, 06 Sep 2017 19:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82070-4-tB2ivgozFx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82070-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82070-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00505.txt.bz2
Content-length: 423

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

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-574477-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 19:59:09 2017
Return-Path: <gcc-bugs-return-574477-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29639 invoked by alias); 6 Sep 2017 19:59:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25605 invoked by uid 48); 6 Sep 2017 19:59:01 -0000
From: "dilfridge at gentoo dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69953] [5/6 Regression] Using lto causes gtkmm/gparted and gtkmm/inkscape compile to fail
Date: Wed, 06 Sep 2017 19: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: 5.2.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dilfridge at gentoo dot 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: attachments.created
Message-ID: <bug-69953-4-8hc4TGsvUM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69953-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00506.txt.bz2
Content-length: 427

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

--- Comment #37 from Andreas K. Huettel <dilfridge at gentoo dot org> ---
Created attachment 42140
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42140&action=edit
gparted build log

Here's the build log from my Gentoo colleague.

If you need more, please tell me precisely what - I dont have that much
experience reporting here yet. Can't reopen the bug either.
>From gcc-bugs-return-574478-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 06 23:15:36 2017
Return-Path: <gcc-bugs-return-574478-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37100 invoked by alias); 6 Sep 2017 23: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 36876 invoked by uid 48); 6 Sep 2017 23:15:04 -0000
From: "rs2740 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82125] New: Suboptimal error message for range-based for
Date: Wed, 06 Sep 2017 23: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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rs2740 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82125-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00507.txt.bz2
Content-length: 1197

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

            Bug ID: 82125
           Summary: Suboptimal error message for range-based for
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rs2740 at gmail dot com
  Target Milestone: ---

void meow() {
   int a[3][4];
   for(const auto r : a)
        for(auto e : r) {}
}

This emits

prog.cc: In function 'void meow()':
prog.cc:4:22: error: 'begin' was not declared in this scope
         for(auto e : r) {}
                      ^
prog.cc:4:22: error: 'end' was not declared in this scope

which, while not inaccurate, isn't helpful either. There is literally no scope
in which begin/end can be looked up, because int* has no associated namespace
whatsoever.

Moreover, if some begin/end is around - say, via #include <iterator> - then we
get a list of "suggested alternatives". But that seems even less helpful since
the form of the call is hard-coded in the language and isn't something the
programmer has any control over.
>From gcc-bugs-return-574479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 01:03:07 2017
Return-Path: <gcc-bugs-return-574479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117291 invoked by alias); 7 Sep 2017 01: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 117207 invoked by uid 48); 7 Sep 2017 01:03:02 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82053] [8 Regression] ICE on invalid code
Date: Thu, 07 Sep 2017 01:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-invalid-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: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82053-4-Y4fWrQ2Ybh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82053-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82053-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00508.txt.bz2
Content-length: 423

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

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

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-574480-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 01:03:24 2017
Return-Path: <gcc-bugs-return-574480-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118116 invoked by alias); 7 Sep 2017 01:03:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118014 invoked by uid 55); 7 Sep 2017 01:03:19 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82053] [8 Regression] ICE on invalid code
Date: Thu, 07 Sep 2017 01:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-invalid-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: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82053-4-kIdm2kKaLi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82053-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82053-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00509.txt.bz2
Content-length: 674

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Sep  7 01:02:46 2017
New Revision: 251826

URL: https://gcc.gnu.org/viewcvs?rev=251826&root=gcc&view=rev
Log:
        PR c++/82053 - ICE with default argument in lambda in template

        * pt.c (tsubst_arg_types): Substitute default arguments for lambdas
        in templates.
        (retrieve_specialization): Use lambda_fn_in_template_p.
        * cp-tree.h: Declare it.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-defarg7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c
>From gcc-bugs-return-574481-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 01:09:31 2017
Return-Path: <gcc-bugs-return-574481-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31694 invoked by alias); 7 Sep 2017 01:09: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 31580 invoked by uid 48); 7 Sep 2017 01:09:27 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81640] [8 Regression] ICE in lookup_fnfields_slot_nolazy w/ -Wshadow=compatible-local
Date: Thu, 07 Sep 2017 01:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: 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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-81640-4-zc51JlXV7R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81640-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81640-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00510.txt.bz2
Content-length: 501

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

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

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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
So, fixed.
>From gcc-bugs-return-574482-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 01:17:57 2017
Return-Path: <gcc-bugs-return-574482-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40778 invoked by alias); 7 Sep 2017 01: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 40703 invoked by uid 48); 7 Sep 2017 01:17:51 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70029] [8 Regression] ICE with C++11 and -flto
Date: Thu, 07 Sep 2017 01: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: 6.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code, lto
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-70029-4-DEb8gnZ7S3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00511.txt.bz2
Content-length: 378

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

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-574483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 01:32:37 2017
Return-Path: <gcc-bugs-return-574483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112597 invoked by alias); 7 Sep 2017 01:32: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 112429 invoked by uid 48); 7 Sep 2017 01:32:33 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70029] [8 Regression] ICE with C++11 and -flto
Date: Thu, 07 Sep 2017 01: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.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code, lto
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70029-4-BPmkiaWbKO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00512.txt.bz2
Content-length: 350

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

--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> ---
I believe r241831 fixed the actual problem that verify_type was catching.  This
still fails because free_lang_data_in_type clears TYPE_LANG_FLAG_4 on 't' but
not 'ct'.  Should something have added TYPE_CANONICAL to fld.types?
>From gcc-bugs-return-574484-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 01:52:08 2017
Return-Path: <gcc-bugs-return-574484-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35001 invoked by alias); 7 Sep 2017 01: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 32789 invoked by uid 48); 7 Sep 2017 01:52:01 -0000
From: "daniel.black at au dot ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81318] [8 regression] ICE in to_reg_br_prob_base, at profile-count.h:189
Date: Thu, 07 Sep 2017 01:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.black at au dot ibm.com
X-Bugzilla-Status: REOPENED
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-81318-4-DkcJYbDCMB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81318-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81318-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00513.txt.bz2
Content-length: 1447

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

Daniel Black <daniel.black at au dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.black at au dot ibm.com

--- Comment #25 from Daniel Black <daniel.black at au dot ibm.com> ---
Also getting this on linux kernel 4.13 release on gcc master branch but not
gcc-7:

There are at least two locations that generate this backtrace.

gcc -O1 -c -o drivers/scsi/mpt3sas/.tmp_mpt3sas_scsih.o   ./mpt3sas_scsih.i

during GIMPLE pass: profile_estimate
drivers/scsi/mpt3sas/mpt3sas_scsih.c: In function ‘mpt3sas_scsih_issue_tm’:
drivers/scsi/mpt3sas/mpt3sas_scsih.c:9455:1: internal compiler error: in
to_reg_br_prob_base, at profile-count.h:189
 module_exit(_mpt3sas_exit);
 ^~~~~~
0x1085d55f profile_probability::to_reg_br_prob_base() const
        ../../gcc/profile-count.h:189
0x1085d55f estimate_bb_frequencies(bool)
        ../../gcc/predict.c:3570
0x10861123 tree_estimate_probability(bool)
        ../../gcc/predict.c:2827
0x1086165f execute
        ../../gcc/predict.c:3712
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.

Simplest ICE generation is -O1. -O0 gets to code errors.
>From gcc-bugs-return-574485-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 02:55:13 2017
Return-Path: <gcc-bugs-return-574485-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64908 invoked by alias); 7 Sep 2017 02:55: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 64859 invoked by uid 48); 7 Sep 2017 02:55:08 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/54113] -Wmissing-prototypes produces false alarms for C99 inline functions
Date: Thu, 07 Sep 2017 02: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: 4.7.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-54113-4-p6Q7uKOSN8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54113-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54113-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00514.txt.bz2
Content-length: 1032

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

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

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Paul Eggert from comment #0)
> 
> The simplest way to work around the problem is to avoid
> the use of -Wmissing-prototypes, but that disables the
> diagnostic for non-inline functions, where it's useful.
> 

Note that this only works for plain C; using diagnostic pragmas (like those
expanded from gnulib's _GL_INLINE_HEADER_BEGIN) to suppress
-Wmissing-prototypes leads to the following warning in C++:

build-gnulib/../config.h:2101:5: warning: option ‘-Wmissing-prototypes’ is
valid for C/ObjC but not for C++ [-Wpragmas]
     _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
     ^~~~~~~
>From gcc-bugs-return-574486-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 04:54:31 2017
Return-Path: <gcc-bugs-return-574486-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48507 invoked by alias); 7 Sep 2017 04:54:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44899 invoked by uid 48); 7 Sep 2017 04:54:26 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82123] [7 regression] spurious -Wformat-overflow warning for converted vars
Date: Thu, 07 Sep 2017 04: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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82123-4-9CjvllCWLE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82123-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82123-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00515.txt.bz2
Content-length: 566

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-574487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 05:03:30 2017
Return-Path: <gcc-bugs-return-574487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61759 invoked by alias); 7 Sep 2017 05:03: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 61473 invoked by uid 48); 7 Sep 2017 05:03:17 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82110] Concept for default constructing works with new T, not with new T[1]
Date: Thu, 07 Sep 2017 05: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: c++-concepts
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc blocked everconfirmed
Message-ID: <bug-82110-4-8JwL7Txk38@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82110-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82110-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00516.txt.bz2
Content-length: 984

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-07
                 CC|                            |egallager at gcc dot gnu.org
             Blocks|                            |67491
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that g++ errors where you say it does:

$ /usr/local/bin/g++ -c -fconcepts -std=c++1z 82110.cc
82110.cc: In function ‘int main()’:
82110.cc:17:5: error: static assertion failed
     static_assert(!D<X>); // error
     ^~~~~~~~~~~~~
$


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491
[Bug 67491] [meta-bug] concepts issues
>From gcc-bugs-return-574488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 07:16:02 2017
Return-Path: <gcc-bugs-return-574488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37372 invoked by alias); 7 Sep 2017 07:16:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27254 invoked by uid 55); 7 Sep 2017 07:15:57 -0000
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBzYW5pdGl6ZXIvODEwNjZdIHNhbml0aXplcl9zdG9wdGhld29ybGRf?= =?UTF-8?B?bGludXhfbGliY2RlcC5jYzoyNzY6MjI6IGVycm9yOiBhZ2dyZWdhdGUg4oCY?= =?UTF-8?B?c2lnYWx0c3RhY2sgaGFuZGxlcl9zdGFja+KAmSBoYXMgaW5jb21wbGV0ZSB0?= =?UTF-8?B?eXBlIGFuZCBjYW5ub3QgYmUgZGVmaW5lZA==?Date: Thu, 07 Sep 2017 07: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: 8.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: doko at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81066-4-bfrkAt9MaC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81066-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81066-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00517.txt.bz2
Content-length: 1063

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

--- Comment #18 from Matthias Klose <doko at gcc dot gnu.org> ---
Author: doko
Date: Thu Sep  7 07:15:24 2017
New Revision: 251828

URL: https://gcc.gnu.org/viewcvs?rev=251828&root=gcc&view=rev
Log:
2017-09-07  Matthias Klose  <doko@ubuntu.com>

        Backported from mainline
        2017-07-14  Jakub Jelinek  <jakub@redhat.com>

        PR sanitizer/81066
        * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
        * sanitizer_common/sanitizer_linux.cc: Likewise.
        * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
        * tsan/tsan_platform_linux.cc: Likewise.

Modified:
    branches/gcc-6-branch/libsanitizer/ChangeLog
    branches/gcc-6-branch/libsanitizer/sanitizer_common/sanitizer_linux.cc
    branches/gcc-6-branch/libsanitizer/sanitizer_common/sanitizer_linux.h
   
branches/gcc-6-branch/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
    branches/gcc-6-branch/libsanitizer/tsan/tsan_platform_linux.cc
>From gcc-bugs-return-574489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 07:17:54 2017
Return-Path: <gcc-bugs-return-574489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22893 invoked by alias); 7 Sep 2017 07: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 17718 invoked by uid 55); 7 Sep 2017 07:17:50 -0000
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBzYW5pdGl6ZXIvODEwNjZdIHNhbml0aXplcl9zdG9wdGhld29ybGRf?= =?UTF-8?B?bGludXhfbGliY2RlcC5jYzoyNzY6MjI6IGVycm9yOiBhZ2dyZWdhdGUg4oCY?= =?UTF-8?B?c2lnYWx0c3RhY2sgaGFuZGxlcl9zdGFja+KAmSBoYXMgaW5jb21wbGV0ZSB0?= =?UTF-8?B?eXBlIGFuZCBjYW5ub3QgYmUgZGVmaW5lZA==?Date: Thu, 07 Sep 2017 07:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: doko at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81066-4-Pg3WbUr4Xh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81066-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81066-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00518.txt.bz2
Content-length: 1063

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

--- Comment #19 from Matthias Klose <doko at gcc dot gnu.org> ---
Author: doko
Date: Thu Sep  7 07:17:17 2017
New Revision: 251829

URL: https://gcc.gnu.org/viewcvs?rev=251829&root=gcc&view=rev
Log:
2017-09-07  Matthias Klose  <doko@ubuntu.com>

        Backported from mainline
        2017-07-14  Jakub Jelinek  <jakub@redhat.com>

        PR sanitizer/81066
        * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
        * sanitizer_common/sanitizer_linux.cc: Likewise.
        * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
        * tsan/tsan_platform_linux.cc: Likewise.

Modified:
    branches/gcc-5-branch/libsanitizer/ChangeLog
    branches/gcc-5-branch/libsanitizer/sanitizer_common/sanitizer_linux.cc
    branches/gcc-5-branch/libsanitizer/sanitizer_common/sanitizer_linux.h
   
branches/gcc-5-branch/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
    branches/gcc-5-branch/libsanitizer/tsan/tsan_platform_linux.cc
>From gcc-bugs-return-574490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 07:19:17 2017
Return-Path: <gcc-bugs-return-574490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97621 invoked by alias); 7 Sep 2017 07:19: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 91555 invoked by uid 48); 7 Sep 2017 07:19:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82123] [7/8 regression] spurious -Wformat-overflow warning for converted vars
Date: Thu, 07 Sep 2017 07: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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone short_desc cf_known_to_fail
Message-ID: <bug-82123-4-prujFxYcK9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82123-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82123-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00519.txt.bz2
Content-length: 618

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |7.3
            Summary|[7 regression] spurious     |[7/8 regression] spurious
                   |-Wformat-overflow warning   |-Wformat-overflow warning
                   |for converted vars          |for converted vars
      Known to fail|                            |7.1.1
>From gcc-bugs-return-574491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 07:21:14 2017
Return-Path: <gcc-bugs-return-574491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71468 invoked by alias); 7 Sep 2017 07: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 68468 invoked by uid 48); 7 Sep 2017 07:21:06 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/82124] FAIL: libgomp.c++/pr69393.C (test for excess errors)
Date: Thu, 07 Sep 2017 07:21: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: 8.0
X-Bugzilla-Keywords: openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82124-4-pp716afDir@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82124-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82124-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00520.txt.bz2
Content-length: 536

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think this is a dup, the testcase uses -flto.

*** This bug has been marked as a duplicate of bug 82005 ***
>From gcc-bugs-return-574492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 07:21:15 2017
Return-Path: <gcc-bugs-return-574492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71787 invoked by alias); 7 Sep 2017 07:21:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68785 invoked by uid 48); 7 Sep 2017 07:21:07 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82005] [8 regression] early lto debug creates invalid assembly on Darwin
Date: Thu, 07 Sep 2017 07:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: lto, wrong-debug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82005-4-m4vEthrZk8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82005-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82005-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00521.txt.bz2
Content-length: 452

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

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

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

--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 82124 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-574493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 07:50:50 2017
Return-Path: <gcc-bugs-return-574493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18018 invoked by alias); 7 Sep 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 6710 invoked by uid 48); 7 Sep 2017 07:50:43 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Thu, 07 Sep 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: testsuite
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon 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-82120-4-YbBOAWUl8h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00522.txt.bz2
Content-length: 913

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

Christophe Lyon <clyon at gcc dot gnu.org> changed:

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

--- Comment #5 from Christophe Lyon <clyon at gcc dot gnu.org> ---
(In reply to Thomas Preud'homme from comment #3)
> I've tested it for a variety of Arm Cortex-M and Cortex-A cores and it
> either PASS or is marked as UNSUPPORTED so looks good to me, thanks.
> 

In my testing, Jakub's patch (r251806) indeed made the test UNSUPPORTED for
arm-none-eabi/--with-cpu=cortex-m3.

However, for arm-none-linux-gnueabihf --with-cpu=cortex-a5
--with-fpu=vfpv3-d16-fp16, I still have:
FAIL: gcc.dg/tree-ssa/pr81588.c scan-tree-dump-times reassoc1 "Optimizing range
test [^\n\r]* and comparison" 1
>From gcc-bugs-return-574494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 08:49:47 2017
Return-Path: <gcc-bugs-return-574494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108340 invoked by alias); 7 Sep 2017 08:49: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 103690 invoked by uid 48); 7 Sep 2017 08:49:39 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Thu, 07 Sep 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: testsuite
X-Bugzilla-Version: 7.2.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-82120-4-zq6BlqTeQG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00523.txt.bz2
Content-length: 279

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Doesn't cortex-a5 also force BRANCH_COST of 1?  If yes, you should fix up
logical_op_short_circuit tcl function.  If not, then I have no idea why that
happens.
>From gcc-bugs-return-574495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:01:41 2017
Return-Path: <gcc-bugs-return-574495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112939 invoked by alias); 7 Sep 2017 09: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 83505 invoked by uid 48); 7 Sep 2017 09:00:58 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82126] New: [8 regression] gnat.dg/alignment3.adb FAILs
Date: Thu, 07 Sep 2017 09:01: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ro 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 cf_gcctarget
Message-ID: <bug-82126-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00524.txt.bz2
Content-length: 892

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

            Bug ID: 82126
           Summary: [8 regression] gnat.dg/alignment3.adb FAILs
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: ebotcazou at gcc dot gnu.org
  Target Milestone: ---
            Target: sparc-sun-solaris2.12, ia64-suse-linux-gnu

Between 20170905 (r251718) and 20170906 (r251809), the gnat.dg/alignment3.adb
test began to FAIL

FAIL: gnat.dg/alignment3.adb (test for excess errors)

Excess errors:
alignment3.adb:30:49: warning: source alignment (1) < alignment of "Natural"
(4)

I'm seeing it on both 32 and 64-bit SPARC, according to gcc-testresults, the
test
also FAILs on IA-64.

  Rainer
>From gcc-bugs-return-574496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:03:58 2017
Return-Path: <gcc-bugs-return-574496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99948 invoked by alias); 7 Sep 2017 09:03: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 86124 invoked by uid 48); 7 Sep 2017 09:03:37 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82126] [8 regression] gnat.dg/alignment3.adb FAILs
Date: Thu, 07 Sep 2017 09:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ro at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-82126-4-yXGdYou2Ec@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82126-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82126-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00525.txt.bz2
Content-length: 285

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-574497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:05:18 2017
Return-Path: <gcc-bugs-return-574497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56062 invoked by alias); 7 Sep 2017 09:05:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 52133 invoked by uid 55); 7 Sep 2017 09:05:09 -0000
From: "rjvbertin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80781] Feature request: build option to use libc++ instead of libstdc++ for increased usability on Mac
Date: Thu, 07 Sep 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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rjvbertin 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-80781-4-jLKh7ctKpk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80781-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80781-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00526.txt.bz2
Content-length: 1229

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

--- Comment #9 from René J.V. Bertin <rjvbertin at gmail dot com> ---
redi at gcc dot gnu.org wrote on 20170517::08:56:33 re: "[Bug target/80781]
Feature request: build option to use libc++ instead of libstdc++ for increased
usability on Mac"

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

>> Meaning "that G++ will one day have this kind of support for libc++"? Is
>> there a timeline or something?
>
>No. Somebody has to do the work. It will get into GCC if somebody does the
>work, but not before then.

What's the most efficient way (recipe) to end up with a build dir in which one
can do incremental builds (= regular development)? The build script I've been
using until now doesn't allow this reliably, forcing me to go through the whole
3-pass build each time. With efficient I here mean both in time and in terms of
disk footprint.

I'd expect that one ought to be able to rebuild GCC x.y.z from its own sources
in a single pass because it's already proven to be able to do that, so is it
possible to create a clean 1-pass build directory, configure and build it to
develop smallish modifications to the driver like we're discussing here?
>From gcc-bugs-return-574498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:24:08 2017
Return-Path: <gcc-bugs-return-574498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89937 invoked by alias); 7 Sep 2017 09:24: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 47126 invoked by uid 48); 7 Sep 2017 09:23:31 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82127] New: [8 regression] gnat.dg/specs/constructor.ads FAILs
Date: Thu, 07 Sep 2017 09: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ro 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-82127-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00527.txt.bz2
Content-length: 2001

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

            Bug ID: 82127
           Summary: [8 regression] gnat.dg/specs/constructor.ads FAILs
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: sparc-sun-solaris2.12, ia64-suse-linux-gnu

Between 20170905 (r251718) and 20170906 (r251809),
gnat.dg/specs/constructor.ads
started to FAIL

FAIL: gnat.dg/specs/constructor.ads (internal compiler error)
FAIL: gnat.dg/specs/constructor.ads (test for excess errors)

Excess errors:
xgcc: internal compiler error: Segmentation Fault signal terminated program
gnat1
I'm seeing for 64-bit sparc only, but a similar failure occurs on IA-64, too,
which may or may not be related.

On SPARC, I have

$ gnat1 -quiet
-fRTS=/var/gcc/regression/trunk/11.4-gcc/build/sparc-sun-solaris2.11/sparcv9/libada
-m64 -mptr64 -mstack-bias -mno-v8plus -mcpu=v9
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gnat.dg/specs/constructor.ads -o
constructor.s

Thread 2 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
wi::divmod_internal (quotient=0x0, remainder_len=0x0, remainder=0x0, 
    dividend_val=0x0, dividend_len=0, dividend_prec=0, 
    divisor_val=<unavailable>, divisor_len=<unavailable>, 
    divisor_prec=<unavailable>, sgn=<unavailable>, oflow=<unavailable>)
    at /vol/gcc/src/hg/trunk/local/gcc/wide-int.cc:1728
1728                                               dividend_prec);

There is no further stacktrace.

1: x/i $pc
=> 0x12289fc <wi::divmod_internal(long long*, unsigned int*, long long*, long
long const*, unsigned int, unsigned int, long long const*, unsigned int,
unsigned int, signop, bool*)+80>:        st  %g3, [ %fp + -436 ]
(gdb) p/x $g3
$1 = 0x4
(gdb) p/x $fp
$2 = 0x0

  Rainer
>From gcc-bugs-return-574499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:28:57 2017
Return-Path: <gcc-bugs-return-574499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93356 invoked by alias); 7 Sep 2017 09:28: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 45061 invoked by uid 55); 7 Sep 2017 09:28:05 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82126] [8 regression] gnat.dg/alignment3.adb FAILs
Date: Thu, 07 Sep 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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82126-4-g1AEhWj9cO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82126-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82126-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00528.txt.bz2
Content-length: 450

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

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Thu Sep  7 09:27:31 2017
New Revision: 251834

URL: https://gcc.gnu.org/viewcvs?rev=251834&root=gcc&view=rev
Log:
        PR ada/82126
        * gnat.dg/alignment3.adb: Add pragma No_Component_Reordering.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gnat.dg/alignment3.adb
>From gcc-bugs-return-574500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:29:22 2017
Return-Path: <gcc-bugs-return-574500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103971 invoked by alias); 7 Sep 2017 09:29:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 98745 invoked by uid 48); 7 Sep 2017 09:29:11 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82126] [8 regression] gnat.dg/alignment3.adb FAILs
Date: Thu, 07 Sep 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: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82126-4-mxuzOo2772@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82126-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82126-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00529.txt.bz2
Content-length: 428

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

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

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

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
>From gcc-bugs-return-574501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:31:43 2017
Return-Path: <gcc-bugs-return-574501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99145 invoked by alias); 7 Sep 2017 09: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 94700 invoked by uid 48); 7 Sep 2017 09:31:35 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82127] [8 regression] gnat.dg/specs/constructor.ads FAILs
Date: Thu, 07 Sep 2017 09: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ro at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-82127-4-0K9FKlOMQq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00530.txt.bz2
Content-length: 285

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-574502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:42:03 2017
Return-Path: <gcc-bugs-return-574502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44080 invoked by alias); 7 Sep 2017 09:42: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 28503 invoked by uid 48); 7 Sep 2017 09:41:54 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82127] [8 regression] gnat.dg/specs/constructor.ads FAILs
Date: Thu, 07 Sep 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: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82127-4-BI6bP6WMP5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00531.txt.bz2
Content-length: 1526

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
This is the failure on ia64:

Program received signal SIGSEGV, Segmentation fault.
wi::fits_to_tree_p<generic_wide_int<wide_int_ref_storage<false> > > (
    x=<error reading variable: Cannot access memory at address
0x6008000004000298>, 
    type=<error reading variable: Cannot access memory at address
0x60080000040002a0>) at ../../gcc/tree.h:5263
5263    wi::fits_to_tree_p (const T &x, const_tree type)
(gdb) bt
#0  wi::fits_to_tree_p<generic_wide_int<wide_int_ref_storage<false> > > (
    x=<error reading variable: Cannot access memory at address
0x6008000004000298>, 
    type=<error reading variable: Cannot access memory at address
0x60080000040002a0>) at ../../gcc/tree.h:5263
#1  0x4000000002133190 in force_fit_type (
    type=<error reading variable: Cannot access memory at address
0x6008000004000248>, 
    cst=<error reading variable: Cannot access memory at address
0x6008000004000250>, 
    overflowable=<error reading variable: Cannot access memory at address
0x6008000004000258>, 
    overflowed=<error reading variable: Cannot access memory at address
0x6008000004000260>) at ../../gcc/tree.c:1348
(gdb) x/i $pc
=> 0x40000000021419c0
<wi::fits_to_tree_p<generic_wide_int<wide_int_ref_storage<false> >
>(generic_wide_int<wide_int_ref_storage<false> > const&, tree_node const*)>:  
[MMI]       alloc r39=ar.pfs,15,10,0

That looks like a stack overflow.
>From gcc-bugs-return-574503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:48:37 2017
Return-Path: <gcc-bugs-return-574503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30120 invoked by alias); 7 Sep 2017 09:48: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 28135 invoked by uid 48); 7 Sep 2017 09:48:33 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82128] New: [8 Regression] ICE on valid code
Date: Thu, 07 Sep 2017 09:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82128-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00532.txt.bz2
Content-length: 1361

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

            Bug ID: 82128
           Summary: [8 Regression] ICE on valid code
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

After Richi's commit r251650 we ICE on:

$ g++ /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/torture/pr65626.C -O3
-fno-tree-forwprop
during GIMPLE pass: fre
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/torture/pr65626.C: In member
function ‘void B::m_fn3(const A&, const int&, const C&, int&) const’:
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/torture/pr65626.C:19:1:
internal compiler error: in VN_INFO, at tree-ssa-sccvn.c:387
 }
 ^
0xf6f52b VN_INFO(tree_node*)
        ../../gcc/tree-ssa-sccvn.c:387
0xf47c35 eliminate_avail
        ../../gcc/tree-ssa-pre.c:4104
0xf4a0b7 eliminate_dom_walker::before_dom_children(basic_block_def*)
        ../../gcc/tree-ssa-pre.c:4604
0x14e0c7a dom_walker::walk(basic_block_def*)
        ../../gcc/domwalk.c:291
0xf4923b eliminate
        ../../gcc/tree-ssa-pre.c:4831
0xf4930e execute
        ../../gcc/tree-ssa-pre.c:5277
>From gcc-bugs-return-574504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 09:58:03 2017
Return-Path: <gcc-bugs-return-574504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126440 invoked by alias); 7 Sep 2017 09:58: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 123531 invoked by uid 48); 7 Sep 2017 09:58:00 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82128] [8 Regression] ICE on valid code
Date: Thu, 07 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone
Message-ID: <bug-82128-4-y1lvAlvpy8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82128-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82128-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00533.txt.bz2
Content-length: 371

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.0
>From gcc-bugs-return-574505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 10:00:37 2017
Return-Path: <gcc-bugs-return-574505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44622 invoked by alias); 7 Sep 2017 10:00: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 24220 invoked by uid 48); 7 Sep 2017 10:00:23 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82067] G++ has an internal compiler error in possible_polymorphic_call_targets, at ipa-devirt.c:1557
Date: Thu, 07 Sep 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: 4.9.4
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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-82067-4-RK2ssLSI8s@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82067-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82067-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00534.txt.bz2
Content-length: 170

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

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Sorry I meant --verbose (not --save-temps) :)
>From gcc-bugs-return-574506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 10:13:32 2017
Return-Path: <gcc-bugs-return-574506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78623 invoked by alias); 7 Sep 2017 10:13:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 73142 invoked by uid 48); 7 Sep 2017 10:13:28 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69953] [5/6 Regression] Using lto causes gtkmm/gparted and gtkmm/inkscape compile to fail
Date: Thu, 07 Sep 2017 10: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: 5.2.0
X-Bugzilla-Keywords: lto, wrong-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: 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-69953-4-cFDNG3oQRF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69953-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00535.txt.bz2
Content-length: 372

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

--- Comment #38 from Martin Liška <marxin at gcc dot gnu.org> ---
So downloading the package and testing that with problematic 6.3 does not
reproduce. Can you please verify you have really GCC 6.4? If so, would it be
possible to create a virtual machine or a Docker image which I can replay and
thus reproduce?
>From gcc-bugs-return-574507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 10:14:20 2017
Return-Path: <gcc-bugs-return-574507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5043 invoked by alias); 7 Sep 2017 10:14: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 3296 invoked by uid 48); 7 Sep 2017 10:14:16 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81318] [8 regression] ICE in to_reg_br_prob_base, at profile-count.h:189
Date: Thu, 07 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
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:
Message-ID: <bug-81318-4-Uk4qvYxyAy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81318-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81318-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00536.txt.bz2
Content-length: 220

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

--- Comment #26 from Martin Liška <marxin at gcc dot gnu.org> ---
Sorry for the inconvenience, I'll work on that with Honza right after Cauldron
this weekend.
>From gcc-bugs-return-574508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 10:32:24 2017
Return-Path: <gcc-bugs-return-574508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111384 invoked by alias); 7 Sep 2017 10:32: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 111270 invoked by uid 48); 7 Sep 2017 10:32:20 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82129] New: [8 Regression] ICE in compute_antic, at tree-ssa-pre.c:2447
Date: Thu, 07 Sep 2017 10: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82129-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00537.txt.bz2
Content-length: 1810

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

            Bug ID: 82129
           Summary: [8 Regression] ICE in compute_antic, at
                    tree-ssa-pre.c:2447
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-8.0.0-alpha20170903 snapshot (r251628) ICEs when compiling the following
snippet w/ -O2, -O3, or -Ofast:

int pj;

void
g4 (unsigned long int *bc, unsigned long int *h5)
{
  if (pj != 0)
    {
      int ib = 0;

      while (bc != 0)
        {
 m6:
          for (pj = 0; pj < 2; ++pj)
            pj = 0;

          while (pj != 0)
            {
              for (;;)
                {
                }

              while (ib != 0)
                {
                  unsigned long int tv = *bc;
                  unsigned long int n7;

                  *bc = 1;
                  while (*bc != 0)
                    {
                    }

 ut:
                  if (pj == 0)
                    n7 = *h5 > 0;
                  else
                    {
                      *h5 = tv;
                      n7 = *h5;
                    }
                  ib += n7;
                }
            }
        }

      goto ut;
    }

  goto m6;
}

% gcc-8.0.0-alpha20170903 -O2 -c vbgefb2z.c                         
during GIMPLE pass: pre
vbgefb2z.c: In function 'g4':
vbgefb2z.c:4:1: internal compiler error: in compute_antic, at
tree-ssa-pre.c:2447
 g4 (unsigned long int *bc, unsigned long int *h5)
 ^~
>From gcc-bugs-return-574510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 10:52:18 2017
Return-Path: <gcc-bugs-return-574510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86174 invoked by alias); 7 Sep 2017 10:52: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 80272 invoked by uid 48); 7 Sep 2017 10:52:14 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82127] [8 regression] gnat.dg/specs/constructor.ads FAILs
Date: Thu, 07 Sep 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: ada
X-Bugzilla-Version: 8.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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82127-4-J5kIXCD0FE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00539.txt.bz2
Content-length: 464

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

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 #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Fixing.
>From gcc-bugs-return-574509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 10:52:02 2017
Return-Path: <gcc-bugs-return-574509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67244 invoked by alias); 7 Sep 2017 10:52: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 61927 invoked by uid 48); 7 Sep 2017 10:51:58 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82127] [8 regression] gnat.dg/specs/constructor.ads FAILs
Date: Thu, 07 Sep 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: ada
X-Bugzilla-Version: 8.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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82127-4-O6820RluLp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00538.txt.bz2
Content-length: 583

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

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

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

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Yes, an infinite recursion.
>From gcc-bugs-return-574511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 10:59:53 2017
Return-Path: <gcc-bugs-return-574511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129028 invoked by alias); 7 Sep 2017 10:59: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 128995 invoked by uid 48); 7 Sep 2017 10:59:48 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/82130] New: stringification (#) in traditional mode
Date: Thu, 07 Sep 2017 10:59: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: 7.1.0
X-Bugzilla-Keywords:
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: ---
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-82130-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00540.txt.bz2
Content-length: 1030

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

            Bug ID: 82130
           Summary: stringification (#) in traditional mode
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janus at gcc dot gnu.org
  Target Milestone: ---

I noticed that cpp does not seem to support stringification in traditional
mode.

Simple Fortran test:


#define _ASSERT_(expr)              if (.not. (expr)) print *, #expr
program test
logical :: check = .false.
_ASSERT_(check)
end


cpp in standard mode does the expected thing, namely translate the _ASSERT_
line into:

if (.not. (check)) print *, "check"

(which is valid Fortran code). But with -traditional I get:

if (.not. (check)) print *, #check

That's a shame because it makes stringification unusable with gfortran. Is is
feasible to add support for stringification in traditional mode?
>From gcc-bugs-return-574512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:14:53 2017
Return-Path: <gcc-bugs-return-574512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86531 invoked by alias); 7 Sep 2017 11: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 86470 invoked by uid 48); 7 Sep 2017 11:14:49 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82129] [8 Regression] ICE in compute_antic, at tree-ssa-pre.c:2447
Date: Thu, 07 Sep 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: tree-optimization
X-Bugzilla-Version: 8.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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-82129-4-0ciBZ3RWWe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82129-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82129-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00541.txt.bz2
Content-length: 715

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-07
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r249063.
>From gcc-bugs-return-574513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:15:39 2017
Return-Path: <gcc-bugs-return-574513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87694 invoked by alias); 7 Sep 2017 11: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 87645 invoked by uid 48); 7 Sep 2017 11:15:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82129] [8 Regression] ICE in compute_antic, at tree-ssa-pre.c:2447
Date: Thu, 07 Sep 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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82129-4-xpKztNvx7N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82129-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82129-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00542.txt.bz2
Content-length: 459

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

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

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hum...
>From gcc-bugs-return-574514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:16:19 2017
Return-Path: <gcc-bugs-return-574514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88546 invoked by alias); 7 Sep 2017 11: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 88505 invoked by uid 48); 7 Sep 2017 11:16:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82128] [8 Regression] ICE on valid code
Date: Thu, 07 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-82128-4-myEV067aVR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82128-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82128-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00543.txt.bz2
Content-length: 574

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-09-07
           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> ---
Mine then.
>From gcc-bugs-return-574515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:21:20 2017
Return-Path: <gcc-bugs-return-574515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9226 invoked by alias); 7 Sep 2017 11:21: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 9147 invoked by uid 55); 7 Sep 2017 11:21:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81979] [8 Regression] Assembler messages: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section}
Date: Thu, 07 Sep 2017 11:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: 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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81979-4-rIq53ISSRi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81979-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81979-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00544.txt.bz2
Content-length: 994

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  7 11:20:40 2017
New Revision: 251843

URL: https://gcc.gnu.org/viewcvs?rev=251843&root=gcc&view=rev
Log:
        PR target/81979
        * output.h (switch_to_other_text_partition): New declaration.
        * varasm.c (switch_to_other_text_partition): New function.
        * config/rs6000/rs6000.c (uses_TOC): Return 2 if
        NOTE_INSN_SWITCH_TEXT_SECTIONS is seen before finding load_toc_* insn.
        (rs6000_elf_declare_function_name): If uses_TOC returned 2, switch
        to the other text partition before emitting LCL label and switch back
        after emitting the word after it.

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr81979.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/output.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/varasm.c
>From gcc-bugs-return-574516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:24:37 2017
Return-Path: <gcc-bugs-return-574516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67576 invoked by alias); 7 Sep 2017 11:24:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 52572 invoked by uid 48); 7 Sep 2017 11:24:24 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82125] Suboptimal error message for range-based for
Date: Thu, 07 Sep 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: 8.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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82125-4-qsHWD4PBAm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82125-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82125-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00545.txt.bz2
Content-length: 554

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

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

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, we should have a custom diagnostic for range-based 'for' that fails to
compile.
>From gcc-bugs-return-574517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:34:50 2017
Return-Path: <gcc-bugs-return-574517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8385 invoked by alias); 7 Sep 2017 11:34: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 7297 invoked by uid 48); 7 Sep 2017 11:34:40 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82123] [7/8 regression] spurious -Wformat-overflow warning for converted vars
Date: Thu, 07 Sep 2017 11:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82123-4-eqHnGxDRsR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82123-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82123-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00546.txt.bz2
Content-length: 763

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is the typical case of value range info being more precise during vrp pass
(where we have ASSERT_EXPRs) rather than elsewhere (where we don't have them
and pin_3 here is set before the condition).  Supposedly the planed on demand
value range stuff could help there, but I have no idea for ETA on that.
>From gcc-bugs-return-574518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:36:12 2017
Return-Path: <gcc-bugs-return-574518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10716 invoked by alias); 7 Sep 2017 11:36: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 10623 invoked by uid 48); 7 Sep 2017 11:36:04 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81833] [7/8 Regression] PowerPC: VSX: Miscompiles ffmpeg's scalarproduct_int16_vsx at -O1
Date: Thu, 07 Sep 2017 11: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.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81833-4-lBMGm5icrP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81833-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81833-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00547.txt.bz2
Content-length: 436

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So fixed on the trunk so far?  Any plans for 7.x backport?
>From gcc-bugs-return-574519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:44:53 2017
Return-Path: <gcc-bugs-return-574519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25181 invoked by alias); 7 Sep 2017 11:44:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25133 invoked by uid 48); 7 Sep 2017 11:44:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81979] [8 Regression] Assembler messages: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section}
Date: Thu, 07 Sep 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: target
X-Bugzilla-Version: 8.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81979-4-is22bldq8a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81979-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81979-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00548.txt.bz2
Content-length: 423

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

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

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-574520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:52:25 2017
Return-Path: <gcc-bugs-return-574520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34343 invoked by alias); 7 Sep 2017 11:52: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 34272 invoked by uid 48); 7 Sep 2017 11:52:18 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81979] [8 Regression] Assembler messages: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section}
Date: Thu, 07 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: assemble-failure
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81979-4-FyzS5OOSwB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81979-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81979-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00549.txt.bz2
Content-length: 530

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

Arseny Solokha <asolokha at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrewjenner at gcc dot gnu.org,
                   |                            |charlet at gcc dot gnu.org

--- Comment #6 from Arseny Solokha <asolokha at gmx dot com> ---
Should I file a new PR asking to port the fix to powerpcspe, then?
>From gcc-bugs-return-574521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:53:58 2017
Return-Path: <gcc-bugs-return-574521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35679 invoked by alias); 7 Sep 2017 11:53: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 35556 invoked by uid 48); 7 Sep 2017 11:53:51 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80846] auto-vectorized AVX2 horizontal sum should narrow to 128b right away, to be more efficient for Ryzen and Intel
Date: Thu, 07 Sep 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: target
X-Bugzilla-Version: 8.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-80846-4-IkOab5OFih@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80846-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80846-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00550.txt.bz2
Content-length: 757

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

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #11)
> that's not using the unpacking strategy (sum adjacent elements) but still the
> vector shift approach (add upper/lower halves).  That's sth that can be
> changed independently.
> 
> Waiting for final vec_extract/init2 optab settling.

That should be settled now.

BTW, for reductions in PR80324 I've added for avx512fintrin.h __MM512_REDUCE_OP
which for reductions from 512-bit vectors uses smaller and smaller vectors,
perhaps that is something we should use for the reductions emitted by the
vectorizer too (perhaps through a target hook that would emit gimple for the
reduction)?
>From gcc-bugs-return-574522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 11:55:26 2017
Return-Path: <gcc-bugs-return-574522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37427 invoked by alias); 7 Sep 2017 11:55: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 37234 invoked by uid 48); 7 Sep 2017 11:55:19 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81979] [8 Regression] Assembler messages: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section}
Date: Thu, 07 Sep 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: target
X-Bugzilla-Version: 8.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81979-4-yANmQmne3I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81979-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81979-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00551.txt.bz2
Content-length: 234

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yes.  While powerpc{,64}* is primary target and regressions there are relevant
for releases, powerpcspe* is not.
>From gcc-bugs-return-574523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 12:23:46 2017
Return-Path: <gcc-bugs-return-574523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48153 invoked by alias); 7 Sep 2017 12:23: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 48066 invoked by uid 48); 7 Sep 2017 12:23:38 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81970] carchive gotools tests fail
Date: Thu, 07 Sep 2017 12: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-81970-4-IpUr9UTssq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81970-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81970-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00552.txt.bz2
Content-length: 551

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

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

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed by [1].

[1] https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01747.html
>From gcc-bugs-return-574524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 12:27:14 2017
Return-Path: <gcc-bugs-return-574524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57233 invoked by alias); 7 Sep 2017 12: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 57017 invoked by uid 48); 7 Sep 2017 12:27:05 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81698] expand_case uses wrong edge as default edge
Date: Thu, 07 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: 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-81698-4-ktXdwAQMsQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81698-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81698-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00553.txt.bz2
Content-length: 423

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

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

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-574525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 12:33:31 2017
Return-Path: <gcc-bugs-return-574525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14312 invoked by alias); 7 Sep 2017 12: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 10249 invoked by uid 48); 7 Sep 2017 12:33:22 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82131] New: FAIL: TestCgoCallbackGC in gotools testsuite; segfaults in morestack.S:529
Date: Thu, 07 Sep 2017 12:33: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00554.txt.bz2
Content-length: 5995

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

            Bug ID: 82131
           Summary: FAIL: TestCgoCallbackGC in gotools testsuite;
                    segfaults in morestack.S:529
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: ubizjak at gmail dot com
                CC: cmang at google dot com
  Target Milestone: ---

The testcase fails on x86_64-linux-gnu split-stack target.

Running the testcase manually under the debugger:

$gdb --args ./testprogcgo CgoCallbackGC

(gdb) r
Starting program:
/home/uros/git/gcc/libgo/go/runtime/testdata/testprogcgo/testprogcgo
CgoCallbackGC
warning: no loadable sections found in added symbol-file system-supplied DSO at
0x2aaaaaaab000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x2aaaad51d940 (LWP 1741)]
[New Thread 0x2aaaaf5c6940 (LWP 1742)]
[New Thread 0x2aaaaf9da940 (LWP 1744)]
[New Thread 0x2aaaaf7d0940 (LWP 1743)]
[New Thread 0x2aaac9a6b940 (LWP 1745)]
[New Thread 0x2aaac9c75940 (LWP 1746)]
...
[New Thread 0x2aab347a9940 (LWP 1944)]
[New Thread 0x2aab34c8b940 (LWP 1945)]
[New Thread 0x2aab34e97940 (LWP 1946)]
[New Thread 0x2aab354a6940 (LWP 1947)]
[New Thread 0x2aab356b0940 (LWP 1948)]
[New Thread 0x2aab37906940 (LWP 1949)]
[Thread 0x2aab0050e940 (LWP 1849) exited]
[Thread 0x2aaae5289940 (LWP 1784) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2aab01168940 (LWP 1851)]
__morestack () at ../../../git/gcc/libgcc/config/i386/morestack.S:529
529             call    __morestack_unblock_signals

(gdb) bt
#0  __morestack () at ../../../git/gcc/libgcc/config/i386/morestack.S:529
#1  0x00002aaaaba3e73e in dwarf_lookup_pc (state=state@entry=0x2aaaad91f000,
ddata=ddata@entry=0x2aaaaf12fd10, pc=<optimized out>, 
    pc@entry=46912512497780, callback=callback@entry=0x2aaaab4e1aa0 <callback>,
error_callback=error_callback@entry=0x2aaaab4e1d20 <error_callback>, 
    data=data@entry=0x2aab42847740, found=<optimized out>) at
../../../git/gcc/libbacktrace/dwarf.c:2836
#2  0x00002aaaaba3fbbf in dwarf_fileline (state=0x2aaaad91f000,
pc=46912512497780, callback=0x2aaaab4e1aa0 <callback>, 
    error_callback=0x2aaaab4e1d20 <error_callback>, data=0x2aab42847740) at
../../../git/gcc/libbacktrace/dwarf.c:2896
#3  0x00002aaaaba40cc6 in unwind (context=<optimized out>,
vdata=0x2aab42847700) at ../../../git/gcc/libbacktrace/backtrace.c:91
#4  0x00002aaaac495499 in _Unwind_Backtrace (trace=trace@entry=0x2aaaaba40c40
<unwind>, trace_argument=trace_argument@entry=0x2aab42847700)
    at ../../../git/gcc/libgcc/unwind.inc:295
#5  0x00002aaaaba40d39 in backtrace_full (state=0x2aaaad91f000,
skip=skip@entry=0, callback=callback@entry=0x2aaaab4e1aa0 <callback>, 
    error_callback=error_callback@entry=0x2aaaab4e1d20 <error_callback>,
data=data@entry=0x2aab42847740)
    at ../../../git/gcc/libbacktrace/backtrace.c:127
#6  0x00002aaaab4e1dd5 in runtime_callers (skip=skip@entry=4, locbuf=<optimized
out>, m=<optimized out>, keep_thunks=keep_thunks@entry=false)
    at ../../../git/gcc/libgo/runtime/go-callers.c:184
#7  0x00002aaaab940071 in runtime.callers (skip=skip@entry=4, locbuf=...) at
../../../git/gcc/libgo/go/runtime/traceback_gccgo.go:63
#8  0x00002aaaab96e4c4 in runtime.mProf_Malloc (size=16, p=<optimized out>) at
../../../git/gcc/libgo/go/runtime/mprof.go:245
#9  runtime.profilealloc (mp=0xc4203fc000, size=16, x=<optimized out>) at
../../../git/gcc/libgo/go/runtime/malloc.go:873
#10 runtime.mallocgc (size=<optimized out>, typ=<optimized out>,
needzero=<optimized out>) at ../../../git/gcc/libgo/go/runtime/malloc.go:795
#11 0x00002aaaaba49875 in __morestack () at
../../../git/gcc/libgcc/config/i386/morestack.S:544
#12 0x00002aaaab97014f in runtime.newobject (typ=<optimized out>) at
../../../git/gcc/libgo/go/runtime/malloc.go:850
#13 0x0000000000406fb6 in main.grow1 (x=0xc42010a8a0, sum=0xc4202e0ce8) at
/home/uros/git/gcc/libgo/go/runtime/testdata/testprogcgo/callback.go:66
#14 0x0000000000406fe1 in main.grow1 (x=0xc42010a8a0, sum=0xc4202e0ce0) at
/home/uros/git/gcc/libgo/go/runtime/testdata/testprogcgo/callback.go:67
#15 0x0000000000406fe1 in main.grow1 (x=0xc42010a8a0, sum=0xc4202e0cd8) at
/home/uros/git/gcc/libgo/go/runtime/testdata/testprogcgo/callback.go:67
...
#63 0x0000000000406fe1 in main.grow1 (x=0xc42010a8a0, sum=0xc4202e0b58) at
/home/uros/git/gcc/libgo/go/runtime/testdata/testprogcgo/callback.go:67
#64 0x0000000000406fe1 in main.grow1 (x=0xc42010a8a0, sum=0xc4202e0b50) at
/home/uros/git/gcc/libgo/go/runtime/testdata/testprogcgo/callback.go:67
#65 0x00002aaaaba3ca20 in ?? () at ../../../git/gcc/libbacktrace/dwarf.c:925
from /home/uros/local/lib64/libgo.so.11
#66 0x00002aab42846000 in ?? ()

(gdb) disass
   ...
   0x00002aaaaba4982c <+42>:    callq  0x2aaaaba48890 <__generic_morestack>
   0x00002aaaaba49831 <+47>:    mov    -0x8(%rbp),%r10
   0x00002aaaaba49835 <+51>:    mov    %rax,%rsp
   0x00002aaaaba49838 <+54>:    sub    %r10,%rax
   0x00002aaaaba4983b <+57>:    add    $0x600,%rax
   0x00002aaaaba49841 <+63>:    mov    %rax,%fs:0x70
=> 0x00002aaaaba4984a <+72>:    callq  0x2aaaaba48ea0
<__morestack_unblock_signals>
   0x00002aaaaba4984f <+77>:    mov    -0x18(%rbp),%rdi
   0x00002aaaaba49853 <+81>:    mov    -0x20(%rbp),%rsi
   ...

(gdb) list
524     #else
525     #define X86_64_SAVE_NEW_STACK_BOUNDARY(reg)     movl   
%e##reg,%fs:0x40
526     #endif
527             X86_64_SAVE_NEW_STACK_BOUNDARY (ax)
528
529             call    __morestack_unblock_signals
530
531             movq    -24(%rbp),%rdi          # Restore registers.
532             movq    -32(%rbp),%rsi
533             movq    -40(%rbp),%rdx
>From gcc-bugs-return-574526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 12:36:17 2017
Return-Path: <gcc-bugs-return-574526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36067 invoked by alias); 7 Sep 2017 12:36:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28361 invoked by uid 48); 7 Sep 2017 12:36:04 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82131] FAIL: TestCgoCallbackGC in gotools testsuite; segfaults in morestack.S:529
Date: Thu, 07 Sep 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: go
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail 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: cf_gcctarget version
Message-ID: <bug-82131-4-yeTYhTvx2c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00555.txt.bz2
Content-length: 672

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-linux-gnu,
                   |                            |powerpc64le-unknown-linux-g
                   |                            |nu
            Version|unknown                     |8.0

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Also seen on powerpc64le-unknown-linux-gnu [1].

[1] https://gcc.gnu.org/ml/gcc-testresults/2017-09/msg00524.html
>From gcc-bugs-return-574527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 12:50:48 2017
Return-Path: <gcc-bugs-return-574527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127105 invoked by alias); 7 Sep 2017 12:50:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126516 invoked by uid 48); 7 Sep 2017 12:50:40 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/82124] FAIL: libgomp.c++/pr69393.C (test for excess errors)
Date: Thu, 07 Sep 2017 12:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-82124-4-aIwIbxr75Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82124-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82124-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00556.txt.bz2
Content-length: 430

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

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> I think this is a dup, the testcase uses -flto.
> 
> *** This bug has been marked as a duplicate of bug 82005 ***

Oh OK, I'm guessing a lot of the other new FAILs are probably also duplicates
then, so I won't open new bugs for all of them after all then.
>From gcc-bugs-return-574528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 12:51:42 2017
Return-Path: <gcc-bugs-return-574528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129424 invoked by alias); 7 Sep 2017 12:51: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 129299 invoked by uid 48); 7 Sep 2017 12:51:34 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81833] [7/8 Regression] PowerPC: VSX: Miscompiles ffmpeg's scalarproduct_int16_vsx at -O1
Date: Thu, 07 Sep 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: 7.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81833-4-NrKKrooGBR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81833-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81833-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00557.txt.bz2
Content-length: 228

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

--- Comment #5 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Yes, I have backports prepared for 5, 6, and 7.  Waiting a short time before
applying those.

Thanks!
Bill
>From gcc-bugs-return-574529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 13:13:17 2017
Return-Path: <gcc-bugs-return-574529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126853 invoked by alias); 7 Sep 2017 13:13: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 120988 invoked by uid 48); 7 Sep 2017 13:13:09 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82132] New: FAIL: gcc.dg/vect/vect-tail-nomask-1.c (test for excess errors) due to missing posix_memalign
Date: Thu, 07 Sep 2017 13:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-82132-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00558.txt.bz2
Content-length: 1364

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

            Bug ID: 82132
           Summary: FAIL: gcc.dg/vect/vect-tail-nomask-1.c (test for
                    excess errors) due to missing posix_memalign
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egallager at gcc dot gnu.org
                CC: hjl at gcc dot gnu.org
  Target Milestone: ---
              Host: i386-apple-darwin9.8.0
            Target: i386-apple-darwin9.8.0
             Build: i386-apple-darwin9.8.0

gcc.dg/vect/vect-tail-nomask-1.c FAILs with:

FAIL: gcc.dg/vect/vect-tail-nomask-1.c (test for excess errors)
Excess errors:
Undefined symbols:
  "_posix_memalign", referenced from:
      _run_test in ccH1tfXl.o
      _run_test in ccH1tfXl.o
      _run_test in ccH1tfXl.o
      _posix_memalign$non_lazy_ptr in ccH1tfXl.o
ld: symbol(s) not found

WARNING: gcc.dg/vect/vect-tail-nomask-1.c compilation failed to produce
executable

This is because the posix_memalign function hadn't been added yet in Darwin 9.
Instead of looking for an external posix_memalign, the testcase should use
__builtin_posix_memalign. Related to the lack of documentation for the builtin
noted in bug 65244 comment 9.
>From gcc-bugs-return-574530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 13:15:25 2017
Return-Path: <gcc-bugs-return-574530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3533 invoked by alias); 7 Sep 2017 13:15: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 3231 invoked by uid 48); 7 Sep 2017 13:14:54 -0000
From: "nickpapior at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82133] New: unroll-loops too aggressive
Date: Thu, 07 Sep 2017 13: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nickpapior 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-82133-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00559.txt.bz2
Content-length: 2890

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

            Bug ID: 82133
           Summary: unroll-loops too aggressive
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nickpapior at gmail dot com
  Target Milestone: ---

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/generic/gcc/7.2.0/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix /opt/generic/gcc/7.2.0
--with-gmp=/opt/generic/gcc/7.2.0 --with-mpfr=/opt/generic/gcc/7.2.0
--with-mpc=/opt/generic/gcc/7.2.0 --with-isl=/opt/generic/gcc/7.2.0
--enable-lto --enable-threads --with-quad --with-multilib-list=m64
--enable-languages=c,c++,fortran,objc,obj-c++,go
Thread model: posix
gcc version 7.2.0 (GCC) 

The following bug has been confirmed by other parts and runned using these
variants:

 - SuSE tumbleweed with system GCC 7.1.1, Atom core
 - Debian stretch with custom 7.1.0 and 7.2.0 builds (according to flags
above), Haswell core
 - Another distribution (see martin-frbg user in below link).

As several 7.X versions are found; assigned 7.0.


When using unroll-loops to compile OpenBLAS (0.2.20 and developer) it produces
seg-faults when running the tests.
It happens at these minimum compilation options:

  -O1 -funroll-loops -fipa-ra

As long as -funroll-loops isn't in the compilation flags everything works as
expected (even for much higher optimization levels: -O3
-fexpensive-optimizations -ftree-vectorize -fprefetch-loop-arrays
-march=native)

It only happens with compilation with optimization, so a backtrace is unusable
(I am not experienced enough to run gdb efficiently).

An invalid memory reference is triggered:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.


I have filed a bug-report with OpenBLAS too and they indicate that it is
because GCC unrolls a loop one to many times.
For the discussion see here: https://github.com/xianyi/OpenBLAS/issues/1292


The bug can be reproduced by using this small script (in the OpenBLAS
directory):
###
#!/bin/bash

function run_all {
    echo "CFLAGS = $CFLAGS"
    echo "FCFLAGS = $FCFLAGS"
    make clean > /dev/null
    make COMMON_OPT="$CFLAGS" FCOMMON_OPT="$FCFLAGS" BINARY=64 SANITY_CHECK=1
MAX_STACK_ALLOC=2048 NUM_THREADS=48 USE_THREAD=0 libs netlib shared 2>
${1}_compilation.out > ${1}_compilation.out
    make COMMON_OPT="$CFLAGS" FCOMMON_OPT="$FCFLAGS" BINARY=64 SANITY_CHECK=1
MAX_STACK_ALLOC=2048 NUM_THREADS=48 USE_THREAD=0 tests 2> $1.out > $1.out
}
which gcc
sleep 1

unset FCFLAGS
unset CFLAGS
export CFLAGS="-O1 -funroll-loops -fipa-ra"
export FCFLAGS="$CFLAGS"
run_all minimum
###
>From gcc-bugs-return-574531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 13:20:41 2017
Return-Path: <gcc-bugs-return-574531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14844 invoked by alias); 7 Sep 2017 13: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 14750 invoked by uid 48); 7 Sep 2017 13:20:32 -0000
From: "zackw at panix dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82134] New: warn_unused_result triggers on empty structs even when they are used
Date: Thu, 07 Sep 2017 13: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zackw at panix 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-82134-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00560.txt.bz2
Content-length: 1854

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

            Bug ID: 82134
           Summary: warn_unused_result triggers on empty structs even when
                    they are used
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zackw at panix dot com
  Target Milestone: ---

If a function that returns an empty struct is tagged with attribute
warn_unused_result, any call will trigger the warning, even if the return value
is (nominally) used.  For instance

struct Empty {};

extern void use_empty(struct Empty);

__attribute__((warn_unused_result))
extern struct Empty make_empty(void);

void should_warn(void)
{
    make_empty();
}

void shouldnt_warn_1(void)
{
    use_empty(make_empty());
}

void shouldnt_warn_2(void)
{
    struct Empty e = make_empty();
    use_empty(e);
}

-->

test.c: In function ‘should_warn’:
test.c:10:5: warning: ignoring return value of ‘make_empty’, declared with
attribute warn_unused_result [-Wunused-result]
     make_empty();
     ^~~~~~~~~~~~
test.c: In function ‘shouldnt_warn_1’:
test.c:15:5: warning: ignoring return value of ‘make_empty’, declared with
attribute warn_unused_result [-Wunused-result]
     use_empty(make_empty());
     ^~~~~~~~~~~~~~~~~~~~~~~
test.c: In function ‘shouldnt_warn_2’:
test.c:20:22: warning: ignoring return value of ‘make_empty’, declared with
attribute warn_unused_result [-Wunused-result]
     struct Empty e = make_empty();
                      ^~~~~~~~~~~~

with both GCC 6 and GCC 7.

(From here:
https://stackoverflow.com/questions/46096628/gcc-empty-structs-and-wunused-result)
>From gcc-bugs-return-574532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 14:21:22 2017
Return-Path: <gcc-bugs-return-574532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92272 invoked by alias); 7 Sep 2017 14:21: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 92166 invoked by uid 48); 7 Sep 2017 14:21:13 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Thu, 07 Sep 2017 14:21: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon 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-82120-4-0CdkC4eU9m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00561.txt.bz2
Content-length: 486

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

--- Comment #7 from Christophe Lyon <clyon at gcc dot gnu.org> ---
I think it returns 0 in the testcase (optimizing for speed).

I've noticed that arm_cortex_a5_branch_cost() has the same implementation as
arm_cortex_m7_branch_cost(), but according to Thomas, the behaviour is
different, since he sees the test pass for m7.

Is it possible to write a dynamic gcc query rather than hardcode cpu names in
logical_op_short_circuit ?
>From gcc-bugs-return-574533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 14:25:44 2017
Return-Path: <gcc-bugs-return-574533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5912 invoked by alias); 7 Sep 2017 14:25: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 1464 invoked by uid 48); 7 Sep 2017 14:25:35 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Thu, 07 Sep 2017 14:25: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.2.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-82120-4-Z6sdLThanh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00562.txt.bz2
Content-length: 719

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Christophe Lyon from comment #7)
> I think it returns 0 in the testcase (optimizing for speed).
> 
> I've noticed that arm_cortex_a5_branch_cost() has the same implementation as
> arm_cortex_m7_branch_cost(), but according to Thomas, the behaviour is
> different, since he sees the test pass for m7.
> 
> Is it possible to write a dynamic gcc query rather than hardcode cpu names
> in logical_op_short_circuit ?

As:
...
         || [istarget visium-*-*]
         || [check_effective_target_arm_cortex_m] } {
shows, you can do there anything you want. Ideally it should be cached.
>From gcc-bugs-return-574534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 14:39:09 2017
Return-Path: <gcc-bugs-return-574534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110540 invoked by alias); 7 Sep 2017 14:39: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 94203 invoked by uid 55); 7 Sep 2017 14:39:00 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80846] auto-vectorized AVX2 horizontal sum should narrow to 128b right away, to be more efficient for Ryzen and Intel
Date: Thu, 07 Sep 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: target
X-Bugzilla-Version: 8.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-80846-4-IANCWn1ang@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80846-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80846-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00563.txt.bz2
Content-length: 1283

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

--- Comment #15 from rguenther at suse dot de <rguenther at suse dot de> ---
On September 7, 2017 1:53:47 PM GMT+02:00, "jakub at gcc dot gnu.org"
<gcc-bugzilla@gcc.gnu.org> wrote:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80846
>
>--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
>(In reply to Richard Biener from comment #11)
>> that's not using the unpacking strategy (sum adjacent elements) but
>still the
>> vector shift approach (add upper/lower halves).  That's sth that can
>be
>> changed independently.
>> 
>> Waiting for final vec_extract/init2 optab settling.
>
>That should be settled now.
>
>BTW, for reductions in PR80324 I've added for avx512fintrin.h
>__MM512_REDUCE_OP
>which for reductions from 512-bit vectors uses smaller and smaller
>vectors,
>perhaps that is something we should use for the reductions emitted by
>the
>vectorizer too (perhaps through a target hook that would emit gimple
>for the
>reduction)?

Yeah, I have a patch that does this. The question is how to query the target if
the vector sizes share the same register set. Like we wouldn't want to go to
mmx register size.

Doing this would also allow to execute the adds for 512 to 128 bit reduction in
parallel.
>From gcc-bugs-return-574535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 14:40:06 2017
Return-Path: <gcc-bugs-return-574535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16300 invoked by alias); 7 Sep 2017 14:40: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 15264 invoked by uid 48); 7 Sep 2017 14:39:56 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Thu, 07 Sep 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: testsuite
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon 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-82120-4-5kWVrXyDw9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00564.txt.bz2
Content-length: 643

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

--- Comment #9 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Sure, I'm just reluctant to add yet another
check_effective_target_arm_cortex_a5 function in the already extremely long
list of arm-dedicated queries.

Maybe I can play with arm's -mprint-tune-info, which dumps tuning parameters in
the .s file:
for cortex-m7:
                @logical_op_non_short_circuit:  [1,1]
for cortex-a9:
                @logical_op_non_short_circuit:  [1,1]
for cortex-a5:
                @logical_op_non_short_circuit:  [0,0]

and use that to write a check_effective_target_arm_short_circuit ?
>From gcc-bugs-return-574536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 14:44:11 2017
Return-Path: <gcc-bugs-return-574536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27767 invoked by alias); 7 Sep 2017 14:44: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 27608 invoked by uid 48); 7 Sep 2017 14:44:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Thu, 07 Sep 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: testsuite
X-Bugzilla-Version: 7.2.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-82120-4-pg1PMd5mLQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00565.txt.bz2
Content-length: 315

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The best would be to add -mbranch-cost= support like many other targets have,
and have an effective target with the list of targets that do support it,
adjust all such testcases to use that.
>From gcc-bugs-return-574537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 14:58:13 2017
Return-Path: <gcc-bugs-return-574537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99094 invoked by alias); 7 Sep 2017 14:58: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 95902 invoked by uid 48); 7 Sep 2017 14:58:04 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/82107] [5/6/7/8 Regression] O2 optimisation on amd64 leads to error
Date: Thu, 07 Sep 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: ipa
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82107-4-xAJjNha2kz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82107-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00566.txt.bz2
Content-length: 1507

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Huh, very nice example I must admit.

Following bad happens:

In FooImpl.cpp content of real_payload is inlined to payload function. Then ICF
does merge operation:

FooImpl::real_payload (struct FooImpl * const this, struct wstring & result1,
struct wstring & result2)
{
  <bb 2> [100.00%] [count: INV]:
  FooBase<FooImpl>::payload (this_2(D), result1_3(D), result2_4(D)); [tail
call]
  return;
}

On the other hand in main.cpp a tail call is generated from original source
code:

FooBase<FooImpl>::payload (struct FooBase * const this, struct wstring &
result1, struct wstring & result2)
{
  <bb 2> [100.00%] [count: INV]:
  FooImpl::real_payload (this_2(D), result1_3(D), result2_4(D)); [tail call]
  return;
}

And as both are COMDATs wrong combination of function is selected and one can
see the infinite loop:

0x400b80
<_ZN7FooImpl12real_payloadERNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEES6_>
  jmpq   0x400a30
<_ZN7FooBaseI7FooImplE7payloadERNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEES8_>
0x400a30
<_ZN7FooBaseI7FooImplE7payloadERNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEES8_>
jmpq   0x400b80
<_ZN7FooImpl12real_payloadERNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEES6_>_> 

Well, we would need to somehow preserve the original order, probably based on
inlining decisions that were done.
Let me discuss that with Honza.
>From gcc-bugs-return-574538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:06:30 2017
Return-Path: <gcc-bugs-return-574538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112339 invoked by alias); 7 Sep 2017 15: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 112259 invoked by uid 48); 7 Sep 2017 15:06:22 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82134] warn_unused_result triggers on empty structs even when they are used
Date: Thu, 07 Sep 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: 7.2.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-82134-4-34Qjj3ftLi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82134-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82134-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00567.txt.bz2
Content-length: 2506

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

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> ---
I fail to see the usefulness of warn_unused_result attribute on functions that
return such types, what kind of problem is calling those without assigning that
to a var?  There are no data copied...
>From implementation POV, the problem is that the empty structure copies are
discarded during gimplification (in different spots, for C++ they are discarded
through cp-gimplify.c (cp_gimplify_expr) doing:
        else if (simple_empty_class_p (TREE_TYPE (op0), op1))
          {
            /* Remove any copies of empty classes.  Also drop volatile
               variables on the RHS to avoid infinite recursion from
               gimplify_expr trying to load the value.  */
            if (TREE_SIDE_EFFECTS (op1))
              {
                if (TREE_THIS_VOLATILE (op1)
                    && (REFERENCE_CLASS_P (op1) || DECL_P (op1)))
                  op1 = build_fold_addr_expr (op1);

                gimplify_and_add (op1, pre_p);
              }
            gimplify_expr (&TREE_OPERAND (*expr_p, 0), pre_p, post_p,
                           is_gimple_lvalue, fb_lvalue);
            *expr_p = TREE_OPERAND (*expr_p, 0);
          }
while for C, it is done through gimplify.c (gimplify_modify_expr) doing:
  /* For zero sized types only gimplify the left hand side and right hand
     side as statements and throw away the assignment.  Do this after
     gimplify_modify_expr_rhs so we handle TARGET_EXPRs of addressable
     types properly.  */
  if (zero_sized_type (TREE_TYPE (*from_p)) && !want_value)
    {
      gimplify_stmt (from_p, pre_p);
      gimplify_stmt (to_p, pre_p);
      *expr_p = NULL_TREE;
      return GS_ALL_DONE;
    }

and after that there is no way to differentiate if the call had a lhs or not.

Perhaps we could add a langhook and for zero_sized_type or if the langhook is
true (would use simple_empty_class_p for C++, otherwise false) just ignore the
warn_unused_result attribute or something similar; that would mean we wouldn't
warn in should_warn at least for C though (for C++ we would, because we turn it
into a TARGET_EXPR and warn as we voidify the call).
>From gcc-bugs-return-574539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:26:10 2017
Return-Path: <gcc-bugs-return-574539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25519 invoked by alias); 7 Sep 2017 15: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 11457 invoked by uid 48); 7 Sep 2017 15:26:02 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70029] [8 Regression] ICE with C++11 and -flto
Date: Thu, 07 Sep 2017 15: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: 6.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code, lto
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70029-4-wNUZBnDUZd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00568.txt.bz2
Content-length: 761

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

--- Comment #14 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #13)
> I believe r241831 fixed the actual problem that verify_type was catching. 
> This still fails because free_lang_data_in_type clears TYPE_LANG_FLAG_4 on
> 't' but not 'ct'.

No, that's not it.

The issue is still that build_ref_qualified_type creates a variant, and
build_type_attribute_qual_variant doesn't know how to recreate that, so it
returns a type that is its own main variant.  We'll run into the same issue
with exception specifications.  So it seems we need a langhook somewhere in
BTAQV or build_distinct_type_copy, to reproduce the language qualifiers and
variant relationship.
>From gcc-bugs-return-574540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:34:09 2017
Return-Path: <gcc-bugs-return-574540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117667 invoked by alias); 7 Sep 2017 15:34:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 116924 invoked by uid 55); 7 Sep 2017 15:34:01 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82127] [8 regression] gnat.dg/specs/constructor.ads FAILs
Date: Thu, 07 Sep 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: ada
X-Bugzilla-Version: 8.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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82127-4-e6D42OeHER@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00569.txt.bz2
Content-length: 502

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

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Thu Sep  7 15:33:29 2017
New Revision: 251846

URL: https://gcc.gnu.org/viewcvs?rev=251846&root=gcc&view=rev
Log:
        PR ada/82127
        * gcc-interface/decl.c (copy_and_substitute_in_layout): Put the fields
        in order of increasing position in more cases.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/gcc-interface/decl.c
>From gcc-bugs-return-574542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:35:41 2017
Return-Path: <gcc-bugs-return-574542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2868 invoked by alias); 7 Sep 2017 15: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 2474 invoked by uid 48); 7 Sep 2017 15:35:31 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82127] [8 regression] gnat.dg/specs/constructor.ads FAILs
Date: Thu, 07 Sep 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: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82127-4-gXky09DH9W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82127-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00571.txt.bz2
Content-length: 428

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

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

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

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
>From gcc-bugs-return-574541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:35:02 2017
Return-Path: <gcc-bugs-return-574541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 484 invoked by alias); 7 Sep 2017 15:35: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 364 invoked by uid 48); 7 Sep 2017 15:34:55 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80846] auto-vectorized AVX2 horizontal sum should narrow to 128b right away, to be more efficient for Ryzen and Intel
Date: Thu, 07 Sep 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: target
X-Bugzilla-Version: 8.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-80846-4-7oSwa4msEC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80846-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80846-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00570.txt.bz2
Content-length: 801

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

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #15)
> Yeah, I have a patch that does this. The question is how to query the target
> if the vector sizes share the same register set. Like we wouldn't want to go
> to mmx register size.
> 
> Doing this would also allow to execute the adds for 512 to 128 bit reduction
> in parallel.

I wonder if we just shouldn't have a target hook that does all that (emits the
best reduction sequence given original vector mode and operation), which could
return NULL/false or something to be expanded by the generic code.  The
middle-end doesn't have information about costs of the various permutations,
preferences of vector types etc.
>From gcc-bugs-return-574543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:37:20 2017
Return-Path: <gcc-bugs-return-574543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76699 invoked by alias); 7 Sep 2017 15:37: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 76648 invoked by uid 48); 7 Sep 2017 15:37:12 -0000
From: "smark at datto dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/70548] gdb pretty printers hang and spin cpu in gdb session.
Date: Thu, 07 Sep 2017 15:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: smark at datto 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-70548-4-ZD4S5vbMMH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70548-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70548-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00572.txt.bz2
Content-length: 807

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

--- Comment #2 from stu mark <smark at datto dot com> ---
this finally got so annoying I did something about it.

This is not the correct fix, but it seems to keep gdb from hanging and as all I
really want to do in life is debug my program, I don't care if it's not
perfect, I just care that I can continue to debug.

in varobj.c

line 778 or so  (this is gdb 7.12.1 I'm playing with here)

  /* We ask for one extra child, so that MI can report whether there
     are more children.  */
  for (; to < 0 || i < to + 1; ++i)
    { 
      if ( i > 100 ) // stu fix for hanging when to = -1
        break;
      varobj_item *item;

"to" is -1 and that makes this loop spin forever

so I added the stop at 100 figuring 100 whatevers is enough for me.
>From gcc-bugs-return-574544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:43:27 2017
Return-Path: <gcc-bugs-return-574544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7416 invoked by alias); 7 Sep 2017 15: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 7367 invoked by uid 48); 7 Sep 2017 15:43:20 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82083] sanitizer detects signed integer overflow in tree-data-ref.c with -O3
Date: Thu, 07 Sep 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: middle-end
X-Bugzilla-Version: 8.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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-82083-4-NmM7naQPm6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82083-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82083-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00573.txt.bz2
Content-length: 429

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

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

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Good, then let's leave it..
>From gcc-bugs-return-574545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:45:39 2017
Return-Path: <gcc-bugs-return-574545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116474 invoked by alias); 7 Sep 2017 15:45: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 106262 invoked by uid 48); 7 Sep 2017 15:45:31 -0000
From: "zackw at panix dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82134] warn_unused_result triggers on empty structs even when they are used
Date: Thu, 07 Sep 2017 15:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zackw at panix 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-82134-4-wUHZD0qbnu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82134-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82134-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00574.txt.bz2
Content-length: 668

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

--- Comment #2 from Zack Weinberg <zackw at panix dot com> ---
The claim in the Stack Overflow post was that this was useful in a scenario
involving machine-generated code that couldn't return void for some external
reason, but they didn't go into any kind of detail.

It has always been my opinion that warnings in general should be made
optimization-independent, including early dead code optimizations like this,
with _possible_ carefully-defined-and-documented exceptions for `if (0) { /*
don't warn about stuff in here */ }` and similar.  But I realize that's a long
way from where GCC is or has ever been.
>From gcc-bugs-return-574546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:46:01 2017
Return-Path: <gcc-bugs-return-574546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124101 invoked by alias); 7 Sep 2017 15: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 124017 invoked by uid 48); 7 Sep 2017 15:45:54 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/70548] gdb pretty printers hang and spin cpu in gdb session.
Date: Thu, 07 Sep 2017 15:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
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-70548-4-zuVSksDMsZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70548-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70548-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00575.txt.bz2
Content-length: 610

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-09-07
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
We can't try to fix the  pretty printers without knowing which printer is being
used, and on what code.

See https://gcc.gnu.org/bugs/
>From gcc-bugs-return-574547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:50:29 2017
Return-Path: <gcc-bugs-return-574547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30257 invoked by alias); 7 Sep 2017 15: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 30153 invoked by uid 48); 7 Sep 2017 15:50:20 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug boehm-gc/64042] FAIL: boehm-gc.c/gctest.c -O2 execution test
Date: Thu, 07 Sep 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: boehm-gc
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64042-4-Fn3yowr5RP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64042-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64042-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00576.txt.bz2
Content-length: 829

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

--- Comment #16 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #13)
> (In reply to Eric Gallager from comment #12)
> > (In reply to Tom de Vries from comment #11)
> > > Reported upstream here:
> > > https://lists.opendylan.org/pipermail/bdwgc/2015-January/006071.html
> > 
> > This link doesn't work for me; is there a better upstream bug link URL?
> 
> The archive seems to be down, and also gmane doesn't seem to work. I'll post
> the thread here.

OK, since there's no working link to an upstream bug report, I can't close this
as MOVED... gcc trunk no longer carries its own copy of the boehm-gc sources,
but since this bug is for the 5 branch, I'll wait until that branch is closed
to close this bug as WONTFIX.
>From gcc-bugs-return-574548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:52:06 2017
Return-Path: <gcc-bugs-return-574548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33595 invoked by alias); 7 Sep 2017 15: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 33430 invoked by uid 48); 7 Sep 2017 15:51:57 -0000
From: "smark at datto dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/70548] gdb pretty printers hang and spin cpu in gdb session.
Date: Thu, 07 Sep 2017 15:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: smark at datto dot com
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70548-4-oU9Ppr36UB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70548-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70548-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00577.txt.bz2
Content-length: 526

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

--- Comment #4 from stu mark <smark at datto dot com> ---
I left that more for Henrique Andrade.

If there's a problem with the pretty printer, and a lousy hack like this can
keep gdb from hanging, to me, it's worth it.


I don't know which pretty printer was having the problem, and it happens
randomly in various bits of code, and not consistently, so I can't really tell
which printer is hanging. If you have suggestions on how to figure that out,
I'll give it a go.
>From gcc-bugs-return-574549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:52:08 2017
Return-Path: <gcc-bugs-return-574549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33852 invoked by alias); 7 Sep 2017 15: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 33461 invoked by uid 48); 7 Sep 2017 15:51:58 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug boehm-gc/57761] USE_PROC_FOR_LIBRARIES does not work correctly
Date: Thu, 07 Sep 2017 15:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: boehm-gc
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-57761-4-zEDIP6Y1id@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57761-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57761-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00578.txt.bz2
Content-length: 516

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
gcc no longer carries its own copy of the boehm-gc sources; please send your
patch to the upstream boehm-gc project instead.
>From gcc-bugs-return-574550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:53:32 2017
Return-Path: <gcc-bugs-return-574550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35885 invoked by alias); 7 Sep 2017 15:53: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 35766 invoked by uid 48); 7 Sep 2017 15:53:24 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82134] warn_unused_result triggers on empty structs even when they are used
Date: Thu, 07 Sep 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: c
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82134-4-syvm0qnt3e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82134-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82134-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00579.txt.bz2
Content-length: 577

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

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> ---
The problem with `if (0) { /* don't warn about stuff in here */ }` is that you
can jump into that block from elsewhere:

if (0)
  {
L:
    // ...
  }

so it's not as easy as it might seem.
>From gcc-bugs-return-574551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:53:49 2017
Return-Path: <gcc-bugs-return-574551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37767 invoked by alias); 7 Sep 2017 15:53:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 36818 invoked by uid 55); 7 Sep 2017 15:53:41 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/80897] [8 regression] gnat bootstrap broken on SPARC64/Linux
Date: Thu, 07 Sep 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: bootstrap
X-Bugzilla-Version: 8.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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80897-4-MtLFEhH4Ei@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00580.txt.bz2
Content-length: 642

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

--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Thu Sep  7 15:53:09 2017
New Revision: 251847

URL: https://gcc.gnu.org/viewcvs?rev=251847&root=gcc&view=rev
Log:
        PR target/80897
        * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Deal with too
        large offsets.

Added:
    trunk/gcc/testsuite/gnat.dg/opt67.adb
    trunk/gcc/testsuite/gnat.dg/opt67_pkg.adb
    trunk/gcc/testsuite/gnat.dg/opt67_pkg.ads
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sparc/sparc.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 15:54:59 2017
Return-Path: <gcc-bugs-return-574552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39531 invoked by alias); 7 Sep 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 39480 invoked by uid 48); 7 Sep 2017 15:54:51 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/80897] [8 regression] gnat bootstrap broken on SPARC64/Linux
Date: Thu, 07 Sep 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-80897-4-JH88u8Fti6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00581.txt.bz2
Content-length: 512

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Thanks for reporting the problem.
>From gcc-bugs-return-574553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 16:09:37 2017
Return-Path: <gcc-bugs-return-574553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127956 invoked by alias); 7 Sep 2017 16:09: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 127897 invoked by uid 48); 7 Sep 2017 16:09:28 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug objc++/57607] g++ cannot distinguish obj-c message call from c++11 lambda
Date: Thu, 07 Sep 2017 16:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: objc++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-57607-4-JKnQvPZpUw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57607-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57607-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00582.txt.bz2
Content-length: 3566

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

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

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #4)
> The testcase breaks again with gcc8 though, this time causing an ICE:
> 
> $ /usr/local/bin/g++ -std=c++11 -framework CoreFoundation -lobjc test57607.mm
> In file included from /usr/local/include/c++/8.0.0/bits/ios_base.h:46:0,
>                  from /usr/local/include/c++/8.0.0/ios:42,
>                  from /usr/local/include/c++/8.0.0/ostream:38,
>                  from /usr/local/include/c++/8.0.0/iostream:39,
>                  from test57607.mm:2:
> /usr/local/include/c++/8.0.0/system_error:191:23: internal compiler error:
> Segmentation fault
>      explicit operator bool() const noexcept
>                        ^~~~
> libbacktrace could not find executable to open
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <https://gcc.gnu.org/bugs/> for instructions.
> 
> 
> Attaching gdb gives the following backtrace:
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x3a138e4c
> 0x0010d744 in make_conv_op_name ()
> (gdb) bt
> #0  0x0010d744 in make_conv_op_name ()
> #1  0x00169ac7 in cp_parser_unqualified_id ()
> #2  0x00169e49 in cp_parser_id_expression ()
> #3  0x00169fb3 in cp_parser_parse_and_diagnose_invalid_type_name ()
> #4  0x0015e084 in cp_parser_member_declaration ()
> #5  0x0015ea24 in cp_parser_type_specifier ()
> #6  0x0016f480 in cp_parser_decl_specifier_seq ()
> #7  0x00174ab5 in cp_parser_simple_declaration ()
> #8  0x00175bdf in cp_parser_block_declaration ()
> #9  0x0017addc in cp_parser_declaration ()
> #10 0x0017b21e in cp_parser_declaration_seq_opt ()
> #11 0x0017b965 in cp_parser_namespace_definition ()
> #12 0x0017aeb9 in cp_parser_declaration ()
> #13 0x0017b21e in cp_parser_declaration_seq_opt ()
> #14 0x0017b576 in c_parse_file ()
> #15 0x00280a78 in c_common_parse_file ()
> #16 0x00bee0e5 in compile_file ()
> #17 0x01b02420 in toplev::main ()
> #18 0x01b03a34 in main ()
> 
> I'll have to rebuild my gcc with debug info to get a better backtrace. It
> might be an entirely different issue that's just triggered by the same
> testcase, though, so I'm leaving this bug as UNCONFIRMED for now.

This ICE seems to have disappeared on me; file compiles successfully for me
now, but the resulting executable crashes when run:

$ /usr/local/bin/g++ -std=gnu++11 -framework CoreFoundation -lobjc -g -Wall
-Wextra -pedantic -o 57607.exe test57607.mm
$ ./57607.exe && echo $?
Hello world!
Bus error
$

gdb shows the error comes from objc_msgSend:

.+.... done
Hello world!

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x940e968c in objc_msgSend ()
(gdb) bt
#0  0x940e968c in objc_msgSend ()
#1  0x00001e81 in main () at test57607.mm:10
#2  0x00001dde in start ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y

objc_msgSend comes from the system libobjc, so this is an issue with Apple's
system libraries for my (outdated) OS version, not gcc. So since this is no
longer gcc's issue and the original ICE is fixed, I can close this as FIXED.
>From gcc-bugs-return-574554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 16:13:49 2017
Return-Path: <gcc-bugs-return-574554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11688 invoked by alias); 7 Sep 2017 16: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 11247 invoked by uid 48); 7 Sep 2017 16:13:40 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/59447] --with-dwarf2 is not propagated correctly, will always create dwarf4 by default
Date: Thu, 07 Sep 2017 16:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-59447-4-OkPJ8VR5l1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59447-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59447-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00583.txt.bz2
Content-length: 922

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to joseph@codesourcery.com from comment #1)
> This is a documentation bug - the installation manual should make clear 
> that "DWARF 2" in the description of this option means DWARF 2 or later, 
> as appropriate for the target, as opposed to (for example) STABS.

Confirmed, the documentation for --with-dwarf2 is still just:

--with-dwarf2

    Specify that the compiler should use DWARF 2 debugging information as the
default.
>From gcc-bugs-return-574555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 16:23:20 2017
Return-Path: <gcc-bugs-return-574555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54716 invoked by alias); 7 Sep 2017 16:23: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 54525 invoked by uid 48); 7 Sep 2017 16:23:07 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug objc++/61759] [ICE] [objc] reaching gcc_unreachable in objc_eh_runtime_type at objc/objc-next-runtime-abi-01.c
Date: Thu, 07 Sep 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: objc++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on cf_gcchost everconfirmed cf_known_to_fail cf_gccbuild
Message-ID: <bug-61759-4-SZgWXktep1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61759-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61759-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00584.txt.bz2
Content-length: 9821

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|powerpc-unknown-darwin      |*-*-darwin
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-07
               Host|powerpc-unknown-darwin      |*-*-darwin
     Ever confirmed|0                           |1
      Known to fail|                            |8.0
              Build|powerpc-unknown-darwin      |*-*-darwin

--- Comment #8 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #7)
> (In reply to Douglas Mencken from comment #6)
> > Looks like I found the root of the issue ~
> > GCC ICEs when it meets C++ exception handling (try+catch)
> > 
> > $ cat main.mm
> > #include <Foundation/Foundation.h>
> > #include <iostream>
> > 
> > int main (void)
> > {
> > 	try {
> > 		throw 0;
> > 	} catch (int & e) {
> > 		std::cout << "caught" << std::endl;
> > 	}
> > 
> > 	NSString *name = @"GNUstep !";
> > 	NSAutoreleasePool *pool;
> > 	pool = [NSAutoreleasePool new];
> > 	[pool drain];
> > }
> > 
> > $ g++ main.mm -o test.out -framework Foundation -lobjc
> > main.mm: In function 'int main()':
> > main.mm:4:5: internal compiler error: in objc_eh_runtime_type, at
> > objc/objc-next-runtime-abi-01.c:2804
> >  int main (void)
> >      ^
> > libbacktrace could not find executable to open
> > Please submit a full bug report,
> 
> This is similar to bug 35756 but since you have a different testcase I'll
> leave this open as a separate bug. Anyways, I think I have bad headers on my
> system, because my compiler chokes in that part:
> 
> $ /usr/local/bin/g++ 61759_main.mm -o test.out -framework Foundation -lobjc
> In file included from
> /System/Library/Frameworks/Security.framework/Headers/Security.h:57:0,
>                  from
> /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.
> framework/Headers/LSSharedFileList.h:32,
>                  from
> /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.
> framework/Headers/LaunchServices.h:37,
>                  from
> /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:41,
>                  from
> /System/Library/Frameworks/ApplicationServices.framework/Headers/
> ApplicationServices.h:20,
>                  from
> /System/Library/Frameworks/Foundation.framework/Headers/
> NSAppleEventDescriptor.h:8,
>                  from
> /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:107,
>                  from 61759_main.mm:1:
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:102:46:
> error: shift expression ‘(1853123693 << 8)’ overflows [-fpermissive]
>      kSecAuthenticationTypeNTLM             = AUTH_TYPE_FIX_ ('ntlm'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:102:46:
> error: enumerator value for ‘kSecAuthenticationTypeNTLM’ is not an integer
> constant
>      kSecAuthenticationTypeNTLM             = AUTH_TYPE_FIX_ ('ntlm'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:103:46:
> error: shift expression ‘(1836281441 << 8)’ overflows [-fpermissive]
>      kSecAuthenticationTypeMSN              = AUTH_TYPE_FIX_ ('msna'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:103:46:
> error: enumerator value for ‘kSecAuthenticationTypeMSN’ is not an integer
> constant
>      kSecAuthenticationTypeMSN              = AUTH_TYPE_FIX_ ('msna'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:104:46:
> error: shift expression ‘(1685086561 << 8)’ overflows [-fpermissive]
>      kSecAuthenticationTypeDPA              = AUTH_TYPE_FIX_ ('dpaa'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:104:46:
> error: enumerator value for ‘kSecAuthenticationTypeDPA’ is not an integer
> constant
>      kSecAuthenticationTypeDPA              = AUTH_TYPE_FIX_ ('dpaa'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:105:46:
> error: shift expression ‘(1919967585 << 8)’ overflows [-fpermissive]
>      kSecAuthenticationTypeRPA              = AUTH_TYPE_FIX_ ('rpaa'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:105:46:
> error: enumerator value for ‘kSecAuthenticationTypeRPA’ is not an integer
> constant
>      kSecAuthenticationTypeRPA              = AUTH_TYPE_FIX_ ('rpaa'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:106:46:
> error: shift expression ‘(1752462448 << 8)’ overflows [-fpermissive]
>      kSecAuthenticationTypeHTTPBasic        = AUTH_TYPE_FIX_ ('http'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:106:46:
> error: enumerator value for ‘kSecAuthenticationTypeHTTPBasic’ is not an
> integer constant
>      kSecAuthenticationTypeHTTPBasic        = AUTH_TYPE_FIX_ ('http'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:107:46:
> error: shift expression ‘(1752462436 << 8)’ overflows [-fpermissive]
>      kSecAuthenticationTypeHTTPDigest       = AUTH_TYPE_FIX_ ('httd'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:107:46:
> error: enumerator value for ‘kSecAuthenticationTypeHTTPDigest’ is not an
> integer constant
>      kSecAuthenticationTypeHTTPDigest       = AUTH_TYPE_FIX_ ('httd'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:108:46:
> error: shift expression ‘(1718579821 << 8)’ overflows [-fpermissive]
>      kSecAuthenticationTypeHTMLForm         = AUTH_TYPE_FIX_ ('form'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:108:46:
> error: enumerator value for ‘kSecAuthenticationTypeHTMLForm’ is not an
> integer constant
>      kSecAuthenticationTypeHTMLForm         = AUTH_TYPE_FIX_ ('form'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:109:46:
> error: shift expression ‘(1684434036 << 8)’ overflows [-fpermissive]
>      kSecAuthenticationTypeDefault          = AUTH_TYPE_FIX_ ('dflt'),
>                                               ^
> /System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:109:46:
> error: enumerator value for ‘kSecAuthenticationTypeDefault’ is not an
> integer constant
>      kSecAuthenticationTypeDefault          = AUTH_TYPE_FIX_ ('dflt'),
>                                               ^
> In file included from /usr/local/include/c++/8.0.0/bits/ios_base.h:46:0,
>                  from /usr/local/include/c++/8.0.0/ios:42,
>                  from /usr/local/include/c++/8.0.0/ostream:38,
>                  from /usr/local/include/c++/8.0.0/iostream:39,
>                  from 61759_main.mm:2:
> /usr/local/include/c++/8.0.0/system_error:191:23: internal compiler error:
> Bus error
>      explicit operator bool() const noexcept
>                        ^~~~
> libbacktrace could not find executable to open
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <https://gcc.gnu.org/bugs/> for instructions.
> 
> And my ICE looks similar to the one I get in bug 57607 which also includes
> the c++ <iostream> header...

This error has now disappeared for me, so I can now confirm that I'm getting
the same ICE that you originally reported:

$ /usr/local/bin/g++ 61759_main.mm -fpermissive -o 61759.exe -framework
Foundation -lobjc
during GIMPLE pass: eh
61759_main.mm: In function ‘int main()’:
61759_main.mm:4:5: internal compiler error: in objc_eh_runtime_type, at
objc/objc-next-runtime-abi-01.c:2793
 int main (void)
     ^~~~
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
$

Running in gdb gives this backtrace:

Breakpoint 1, 0x00e60154 in internal_error ()
(gdb) bt
#0  0x00e60154 in internal_error ()
#1  0x014954c5 in fancy_abort ()
#2  0x0118edd7 in objc_eh_runtime_type ()
#3  0x0076e69e in add_type_for_runtime ()
#4  0x0076e715 in gen_eh_region_catch ()
#5  0x00ba90de in lower_eh_constructs_1 ()
#6  0x00baa7fb in (anonymous namespace)::pass_lower_eh::execute ()
#7  0x00a5b2e0 in execute_one_pass ()
#8  0x00a5bba0 in execute_pass_list_1 ()
#9  0x00a5bbee in execute_pass_list ()
#10 0x0067ecb9 in cgraph_node::analyze ()
#11 0x006819ef in analyze_functions ()
#12 0x006829d2 in symbol_table::finalize_compilation_unit ()
#13 0x00b4638b in compile_file ()
#14 0x01af141b in toplev::main ()
#15 0x01af2a24 in main ()
(gdb)

I'd need to rebuild gcc with debug info to get a better backtrace.
>From gcc-bugs-return-574556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 17:11:21 2017
Return-Path: <gcc-bugs-return-574556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105942 invoked by alias); 7 Sep 2017 17:11: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 105909 invoked by uid 48); 7 Sep 2017 17:11:12 -0000
From: "d25fe0be at outlook dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82087] HEAD fails to bootstrap on x86_64-apple-darwin16.7.0
Date: Thu, 07 Sep 2017 17:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: d25fe0be at outlook dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82087-4-Et34Phexnt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82087-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82087-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00585.txt.bz2
Content-length: 464

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

d25fe0be@ <d25fe0be at outlook dot com> changed:

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

--- Comment #3 from d25fe0be@ <d25fe0be at outlook dot com> ---
Seems to have been fixed. (Before or at r251800.)
>From gcc-bugs-return-574557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 17:27:01 2017
Return-Path: <gcc-bugs-return-574557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67598 invoked by alias); 7 Sep 2017 17:27: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 52897 invoked by uid 48); 7 Sep 2017 17:26:53 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80925] [8 Regression] vect peeling failures
Date: Thu, 07 Sep 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: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80925-4-6lsYK9rxUW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80925-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80925-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00586.txt.bz2
Content-length: 1076

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

--- Comment #22 from Steve Ellcey <sje at gcc dot gnu.org> ---
(In reply to Christophe Lyon from comment #21)

> I think this change caused regressions on armeb-none-linux-gnueabihf
> --with-cpu=cortex-a9 --with-fpu=neon-fp16 (works OK
> --with-fpu=vfpv3-d16-fp16)

Ranier Orth reported a failure on SPARC64 as well, here was my reply
to him.  I don't know if your problem is the same without seeing the
specific failure.

--

Looking at the checks at the end, I also see that SPARC does include
the 'Alignment' message and Aarch64 does not and that is handled by a
conditional check.

I think the fix is to check for 'vectorized 4 loops' when we support
unaligned vector instructions (vect_hw_misalign is true) and check for
'vectorized 3 loops' otherwise.  Does that sound reasonable to you?

I think the reason this worked before is that that loop got vectorized
due to being peeled and my change turned off the peeling and thus it
could not be vectorized on machines that do not support unaligned
vectorization.
>From gcc-bugs-return-574558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 18:40:29 2017
Return-Path: <gcc-bugs-return-574558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83977 invoked by alias); 7 Sep 2017 18:40: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 83884 invoked by uid 48); 7 Sep 2017 18:40:21 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81800] [8 regression] on aarch64 ilp32 lrint should not be inlined as two instructions
Date: Thu, 07 Sep 2017 18:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle 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-81800-4-uKo0lS2yeH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00587.txt.bz2
Content-length: 313

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

--- Comment #3 from Qing Zhao <qing.zhao at oracle dot com> ---
I can repeat this with the latest upstream gcc on aarch64 machine.

the inlining happens when -fno-math-errno is specified. 
and it should be only inlined when -fno-trapping-math is specified.
>From gcc-bugs-return-574559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 18:54:38 2017
Return-Path: <gcc-bugs-return-574559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91679 invoked by alias); 7 Sep 2017 18:54: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 91631 invoked by uid 48); 7 Sep 2017 18:54:30 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82135] New: Missed constant propagation through possible unsigned wraparound, with std::align() variable pointer, constant everything else.
Date: Thu, 07 Sep 2017 18:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82135-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00588.txt.bz2
Content-length: 3598

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

            Bug ID: 82135
           Summary: Missed constant propagation through possible unsigned
                    wraparound, with std::align() variable pointer,
                    constant everything else.
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---

The code in this report is easiest to look at here:
https://godbolt.org/g/DffP3J, with asm output.

When g++ inlines this (copied version of std::align from include/c++/memory),
it fails to optimize to just rounding up to the next power of 2 when
align=size=64 and space=1024, but ptr is variable.

(If __ptr is also constant, it's fine.)

#include <cstdint>
#include <stddef.h>
inline void*
libalign(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept
{
  const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
  const auto __aligned = (__intptr - 1u + __align) & -__align;
//    if (__aligned < __size)   __builtin_unreachable();
  const auto __diff = __aligned - __intptr;
//    if (__diff > __size)  __builtin_unreachable();
  if ((__size + __diff) > __space)
    return (void*)123456; //nullptr;   // non-zero constant is obvious in the
asm
  else
    {
      __space -= __diff;
      return __ptr = reinterpret_cast<void*>(__aligned);
    }
}

void *libalign64(void *voidp) {
    std::size_t len = 1024;
             //if (voidp+len < voidp) __builtin_unreachable();   // doesn't
help
    voidp = 
      libalign(64, 64, voidp, len);
    return voidp;
}

g++ -O3 -std=c++14  -Wall -Wextra  (trunk 8.0.0 20170906)

        # x86-64.  Other targets do the same compare/cmov or branch
        leaq    63(%rdi), %rax
        andq    $-64, %rax
        movq    %rax, %rdx
        subq    %rdi, %rdx
        addq    $65, %rdx
        cmpq    $1025, %rdx
        movl    $123456, %edx
        cmovnb  %rdx, %rax
        ret


libalign64 gives exactly the same result as just rounding up to the next power
of 2 (including wrapping around to zero with addresses very close to the top). 
But gcc doesn't spot this, I think getting confused about what can happen with
unsigned wraparound.

char *roundup2(char *p) {
    auto t = (uintptr_t)p;
    t = (t+63) & -64;
    return (char*)t;
}

        leaq    63(%rdi), %rax
        andq    $-64, %rax
        ret

For easy testing, I made wrappers that call with a constant pointer, so I can
test that it really does wrap around at exactly the same place as roundup2(). 
(It does: libalign64(-64) = -64, libalign64(-64) = 0.)  So it can safely be
compiled to 2 instructions on targets where unsigned integer wraparound works
normally, without all that adding constants and comparing against constants.

static char* const test_constant = (char*)-63ULL;

char *test_roundup2() {
    return roundup2(test_constant);
}
void *test_libalign() {
    return libalign64(test_constant);
}


Uncommenting this line I added:
   if (__diff > __size)  __builtin_unreachable();

lets it compile to just two instructions, but that condition isn't really
always true.  __diff will be huge when __aligned wraps around.

clang, icc, and msvc also fail to make this optimization.  IDK if it's
particularly useful in real life for anything other than abusing std::align as
a simple round-up function.
>From gcc-bugs-return-574560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:12:23 2017
Return-Path: <gcc-bugs-return-574560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48828 invoked by alias); 7 Sep 2017 20:12: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 44175 invoked by uid 48); 7 Sep 2017 20:12:14 -0000
From: "nickpapior at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82133] unroll-loops too aggressive
Date: Thu, 07 Sep 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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nickpapior 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: cf_known_to_work
Message-ID: <bug-82133-4-7t1aR9CbPK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82133-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82133-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00589.txt.bz2
Content-length: 455

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

Nick <nickpapior at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |6.3.0

--- Comment #1 from Nick <nickpapior at gmail dot com> ---
I completely forgot to say that there were no problems using GCC-6.3.0 compiler
on the Debian stretch box.
>From gcc-bugs-return-574561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:19:24 2017
Return-Path: <gcc-bugs-return-574561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19294 invoked by alias); 7 Sep 2017 20: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 15239 invoked by uid 55); 7 Sep 2017 20:19:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/45784] gcc OpenMP - error: invalid controlling predicate
Date: Thu, 07 Sep 2017 20: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.5.1
X-Bugzilla-Keywords: openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-45784-4-VOqcDVyo9Q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00590.txt.bz2
Content-length: 957

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  7 20:18:45 2017
New Revision: 251848

URL: https://gcc.gnu.org/viewcvs?rev=251848&root=gcc&view=rev
Log:
        Backported from mainline
        2017-07-27  Jakub Jelinek  <jakub@redhat.com>

        PR c/45784
        * c-omp.c (c_finish_omp_for): If the condition is wrapped in
        rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
        new COMPOUND_EXPRs around the rhs of the comparison.

        * testsuite/libgomp.c/pr45784.c: New test.
        * testsuite/libgomp.c++/pr45784.C: New test.

Added:
    branches/gcc-7-branch/libgomp/testsuite/libgomp.c++/pr45784.C
    branches/gcc-7-branch/libgomp/testsuite/libgomp.c/pr45784.c
Modified:
    branches/gcc-7-branch/gcc/c-family/ChangeLog
    branches/gcc-7-branch/gcc/c-family/c-omp.c
    branches/gcc-7-branch/libgomp/ChangeLog
>From gcc-bugs-return-574562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:20:30 2017
Return-Path: <gcc-bugs-return-574562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112818 invoked by alias); 7 Sep 2017 20:20: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 102671 invoked by uid 55); 7 Sep 2017 20:20:23 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81052] ICE in verify_dominators, at dominance.c:1184
Date: Thu, 07 Sep 2017 20:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-invalid-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: 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-81052-4-4keiDRFONX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81052-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81052-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00591.txt.bz2
Content-length: 789

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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  7 20:19:47 2017
New Revision: 251849

URL: https://gcc.gnu.org/viewcvs?rev=251849&root=gcc&view=rev
Log:
        Backported from mainline
        2017-08-03  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/81052
        * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
        (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.

        * c-c++-common/pr81052.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/c-c++-common/pr81052.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/omp-low.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:21:24 2017
Return-Path: <gcc-bugs-return-574563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42835 invoked by alias); 7 Sep 2017 20:21: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 38067 invoked by uid 55); 7 Sep 2017 20:21:15 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/81650] gcc -m32 mishandles -Walloc-size-larger-than’23372036854775807
Date: Thu, 07 Sep 2017 20:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: 7.1.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-81650-4-aMseWCAItz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81650-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81650-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00592.txt.bz2
Content-length: 837

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  7 20:20:43 2017
New Revision: 251850

URL: https://gcc.gnu.org/viewcvs?rev=251850&root=gcc&view=rev
Log:
        Backported from mainline
        2017-08-03  Jakub Jelinek  <jakub@redhat.com>

        PR driver/81650
        * calls.c (alloc_max_size): Use HOST_WIDE_INT_UC (10??)
        instead of 10??LU, perform unit multiplication in wide_int,
        don't change alloc_object_size_limit if the limit is larger
        than SSIZE_MAX.

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

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr81650.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/calls.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:23:54 2017
Return-Path: <gcc-bugs-return-574564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34484 invoked by alias); 7 Sep 2017 20:23:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30137 invoked by uid 55); 7 Sep 2017 20:23:46 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81621] ICE in delete_insn, at cfgrtl.c:167 with s390x cross compiler
Date: Thu, 07 Sep 2017 20: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: 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81621-4-7V1a8QqZpz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81621-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81621-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00593.txt.bz2
Content-length: 742

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  7 20:23:14 2017
New Revision: 251851

URL: https://gcc.gnu.org/viewcvs?rev=251851&root=gcc&view=rev
Log:
        Backported from mainline
        2017-08-03  Jakub Jelinek  <jakub@redhat.com>

        PR target/81621
        * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
        after setting changeable df flags.

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

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr81621.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/bb-reorder.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:27:14 2017
Return-Path: <gcc-bugs-return-574565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109570 invoked by alias); 7 Sep 2017 20: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 107252 invoked by uid 55); 7 Sep 2017 20:27:06 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81687] Compiler drops label in OpenMP region
Date: Thu, 07 Sep 2017 20: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.1.0
X-Bugzilla-Keywords: accepts-invalid, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81687-4-UjL2ljU5Ox@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81687-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81687-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00594.txt.bz2
Content-length: 1170

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  7 20:26:34 2017
New Revision: 251853

URL: https://gcc.gnu.org/viewcvs?rev=251853&root=gcc&view=rev
Log:
2017-09-07  Jakub Jelinek  <jakub@redhat.com>

        Backported from mainline
        2017-08-09  Jakub Jelinek  <jakub@redhat.com>

        PR c/81687
        * omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
        LABEL_DECLs.
        * tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
        or DECL_NONLOCAL labels.
        (move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
        or DECL_NONLOCAL labels here.

        * testsuite/libgomp.c/pr81687-1.c: New test.
        * testsuite/libgomp.c/pr81687-2.c: New test.

Added:
    branches/gcc-7-branch/libgomp/testsuite/libgomp.c/pr81687-1.c
    branches/gcc-7-branch/libgomp/testsuite/libgomp.c/pr81687-2.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/omp-low.c
    branches/gcc-7-branch/gcc/tree-cfg.c
    branches/gcc-7-branch/libgomp/ChangeLog
>From gcc-bugs-return-574566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:29:44 2017
Return-Path: <gcc-bugs-return-574566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117659 invoked by alias); 7 Sep 2017 20:29: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 113357 invoked by uid 55); 7 Sep 2017 20:29:37 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/81923] [ASAN] gcc emites wrong odr asan instrumentation for glibc
Date: Thu, 07 Sep 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: sanitizer
X-Bugzilla-Version: 8.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-81923-4-QyI8goeI6q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81923-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81923-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00595.txt.bz2
Content-length: 754

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  7 20:29:04 2017
New Revision: 251854

URL: https://gcc.gnu.org/viewcvs?rev=251854&root=gcc&view=rev
Log:
        Backported from mainline
        2017-09-01  Jakub Jelinek  <jakub@redhat.com>

        PR sanitizer/81923
        * asan.c (create_odr_indicator): Strip name encoding from assembler
        name before appending it after __odr_asan_.

        * gcc.dg/asan/pr81923.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/asan/pr81923.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/asan.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:31:40 2017
Return-Path: <gcc-bugs-return-574567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94928 invoked by alias); 7 Sep 2017 20:31: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 90324 invoked by uid 48); 7 Sep 2017 20:31:32 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82135] Missed constant propagation through possible unsigned wraparound, with std::align() variable pointer, constant everything else.
Date: Thu, 07 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
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-82135-4-T4MESUrZwa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82135-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82135-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00596.txt.bz2
Content-length: 857

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

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
This PR is a bit messy, please minimize your examples...
Looking at the dse2 dump (before reassoc messes things up):

  __intptr_2 = (const long unsigned int) voidp_9(D);
  _3 = __intptr_2 + 63;
  __aligned_4 = _3 & 18446744073709551552;
  __diff_5 = __aligned_4 - __intptr_2;
  _6 = __diff_5 + 64;
  if (_6 > 1024)

IIUC, essentially, you would like gcc to realize that __diff_5 is in [0,63], so
the condition is always false.

If aligned was not reused, we could simplify ((x+63)&-64)-x to 63&-x, but we
don't want to do it in general. Maybe we could add a very special case in VRP
(or CCP for nonzero bits)...
(we could also add if(__diff>__align)__builtin__unreachable() in <memory> but
that's getting really specific)
>From gcc-bugs-return-574568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:40:47 2017
Return-Path: <gcc-bugs-return-574568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107139 invoked by alias); 7 Sep 2017 20:40: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 102575 invoked by uid 55); 7 Sep 2017 20:40:38 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81768] [8 Regression] error: control flow in the middle of basic block
Date: Thu, 07 Sep 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: middle-end
X-Bugzilla-Version: 8.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81768-4-8FvMsbyUS0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00597.txt.bz2
Content-length: 777

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  7 20:40:06 2017
New Revision: 251856

URL: https://gcc.gnu.org/viewcvs?rev=251856&root=gcc&view=rev
Log:
        Backported from mainline
        2017-09-05  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/81768
        * omp-expand.c (expand_omp_simd): Force second operands of COND_EXPR
        into gimple val before gimplification fo the COND_EXPR.

        * gcc.dg/gomp/pr81768-1.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/gomp/pr81768-1.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/omp-expand.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 20:42:20 2017
Return-Path: <gcc-bugs-return-574569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57523 invoked by alias); 7 Sep 2017 20:42: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 27123 invoked by uid 55); 7 Sep 2017 20:42:13 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81768] [8 Regression] error: control flow in the middle of basic block
Date: Thu, 07 Sep 2017 20: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: 8.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81768-4-Z5CirxA5o3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00598.txt.bz2
Content-length: 749

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  7 20:41:42 2017
New Revision: 251857

URL: https://gcc.gnu.org/viewcvs?rev=251857&root=gcc&view=rev
Log:
        Backported from mainline
        2017-09-05  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/81768
        * omp-low.c (lower_omp_for): Recompute tree invariant if
        gimple_omp_for_initial/final is ADDR_EXPR.

        * gcc.dg/gomp/pr81768-2.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/gomp/pr81768-2.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/omp-low.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 22:28:47 2017
Return-Path: <gcc-bugs-return-574570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44982 invoked by alias); 7 Sep 2017 22: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 42118 invoked by uid 48); 7 Sep 2017 22:28:38 -0000
From: "daniel.black at au dot ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81318] [8 regression] ICE in to_reg_br_prob_base, at profile-count.h:189
Date: Thu, 07 Sep 2017 22: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.black at au dot ibm.com
X-Bugzilla-Status: REOPENED
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:
Message-ID: <bug-81318-4-N9T9zqClzu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81318-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81318-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00599.txt.bz2
Content-length: 316

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

--- Comment #27 from Daniel Black <daniel.black at au dot ibm.com> ---
reduced test case, quite similar however just to be sure:

int a, b;
__attribute__((__cold__)) fn1();
__attribute__((always_inline)) fn2() { fn1(); }
fn3() {
  fn2();
  if (b)
    a = 0;
}
>From gcc-bugs-return-574571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 07 23:27:30 2017
Return-Path: <gcc-bugs-return-574571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93469 invoked by alias); 7 Sep 2017 23:27: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 89105 invoked by uid 48); 7 Sep 2017 23:27:21 -0000
From: "jupitercuso4 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82067] G++ has an internal compiler error in possible_polymorphic_call_targets, at ipa-devirt.c:1557
Date: Thu, 07 Sep 2017 23: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: 4.9.4
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jupitercuso4 at gmail dot com
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82067-4-MUNuk7wSxs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82067-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82067-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00600.txt.bz2
Content-length: 3375

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

--- Comment #7 from jupitercuso4 at gmail dot com ---
$ g++ -std=c++11 -O3 --verbose test.i
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/project/usr-tensilica-RHEL5/stools-8.0-2017-06-05/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-4.9.4/configure --with-checking=release
--build=x86_64-pc-linux-gnu --prefix=/usr/xtensa/stools-8.0-2017-06-05
LD_OPTIONS=-R/usr/xtensa/stools-8.0-2017-06-05/lib
--with-gmp=/usr/xtensa/stools-8.0-2017-06-05
--with-mpfr=/usr/xtensa/stools-8.0-2017-06-05 --enable-languages=c,c++
--disable-libgcj
Thread model: posix
gcc version 4.9.4 (GCC)
COLLECT_GCC_OPTIONS='-std=c++11' '-O3' '-v' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'

/project/usr-tensilica-RHEL5/stools-8.0-2017-06-05/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4/cc1plus
-fpreprocessed test.i -quiet -dumpbase test.i -mtune=generic -march=x86-64
-auxbase test -O3 -std=c++11 -version -o /tmp/cc6LMkmh.s
GNU C++ (GCC) version 4.9.4 (x86_64-pc-linux-gnu)
        compiled by GNU C version 4.9.4, GMP version 6.1.2, MPFR version 3.1.5,
MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.9.4 (x86_64-pc-linux-gnu)
        compiled by GNU C version 4.9.4, GMP version 6.1.2, MPFR version 3.1.5,
MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: e4a50cb5767031363285860fcbf01e45
test.cpp: In constructor
'xtsc_component::xtsc_queue_pin::xtsc_queue_pin(sc_core::sc_module_name, const
xtsc_component::xtsc_queue_pin_parms&)':
test.cpp:32:1: internal compiler error: in possible_polymorphic_call_targets,
at ipa-devirt.c:1557
 xtsc_component::xtsc_queue_pin::xtsc_queue_pin(sc_module_name module_name,
const xtsc_queue_pin_parms& queue_parms) :
 ^
0x6828cb possible_polymorphic_call_targets(tree_node*, long,
ipa_polymorphic_call_context, bool*, void**, int*)
        ../../gcc-4.9.4/gcc/ipa-devirt.c:1557
0x665cea possible_polymorphic_call_targets(tree_node*, bool*, void**)
        ../../gcc-4.9.4/gcc/ipa-utils.h:142
0xc87198 gimple_fold_call
        ../../gcc-4.9.4/gcc/gimple-fold.c:1127
0xc87198 fold_stmt_1
        ../../gcc-4.9.4/gcc/gimple-fold.c:1302
0xd909b8 fold_marked_statements
        ../../gcc-4.9.4/gcc/tree-inline.c:4549
0xd8c2e0 optimize_inline_calls(tree_node*)
        ../../gcc-4.9.4/gcc/tree-inline.c:4630
0xf48b89 inline_transform(cgraph_node*)
        ../../gcc-4.9.4/gcc/ipa-inline-transform.c:457
0xd1b58a execute_one_ipa_transform_pass
        ../../gcc-4.9.4/gcc/passes.c:2066
0xd1b58a execute_all_ipa_transforms()
        ../../gcc-4.9.4/gcc/passes.c:2107
0xbd8abd expand_function
        ../../gcc-4.9.4/gcc/cgraphunit.c:1775
0xf99653 expand_all_functions
        ../../gcc-4.9.4/gcc/cgraphunit.c:1916
0xf99653 compile()
        ../../gcc-4.9.4/gcc/cgraphunit.c:2260
0xf98f17 finalize_compilation_unit()
        ../../gcc-4.9.4/gcc/cgraphunit.c:2337
0xb149dd cp_write_global_declarations()
        ../../gcc-4.9.4/gcc/cp/decl2.c:4647
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-574572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 00:48:06 2017
Return-Path: <gcc-bugs-return-574572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11264 invoked by alias); 8 Sep 2017 00:48: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 10992 invoked by uid 48); 8 Sep 2017 00:47:56 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80568] x86 -mavx256-split-unaligned-load (and store) is affecting AVX2 code, but probably shouldn't be.
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
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-80568-4-WLHYDkvCGr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80568-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80568-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00601.txt.bz2
Content-length: 638

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

Peter Cordes <peter at cordes dot ca> changed:

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

--- Comment #3 from Peter Cordes <peter at cordes dot ca> ---
Bug 78762 is asking for the same thing: disable at least load-splitting in
-mtune=generic when -mavx2 is enabled.

Or more generally, ISA-aware tune=generic.

*** This bug has been marked as a duplicate of bug 78762 ***
>From gcc-bugs-return-574573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 00:48:17 2017
Return-Path: <gcc-bugs-return-574573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11301 invoked by alias); 8 Sep 2017 00:48: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 11019 invoked by uid 48); 8 Sep 2017 00:47:57 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/78762] Regression: Splitting unaligned AVX loads also when AVX2 is enabled
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-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-78762-4-yR6c4qWF5B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78762-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78762-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00602.txt.bz2
Content-length: 432

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

Peter Cordes <peter at cordes dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter at cordes dot ca

--- Comment #16 from Peter Cordes <peter at cordes dot ca> ---
*** Bug 80568 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-574574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 01:30:33 2017
Return-Path: <gcc-bugs-return-574574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96952 invoked by alias); 8 Sep 2017 01:30:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 95529 invoked by uid 48); 8 Sep 2017 01:30:00 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82136] New: x86: -mavx256-split-unaligned-load should try to fold other shuffles into the load/vinsertf128
Date: Fri, 08 Sep 2017 01: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: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82136-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00603.txt.bz2
Content-length: 2993

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

            Bug ID: 82136
           Summary: x86: -mavx256-split-unaligned-load should try to fold
                    other shuffles into the load/vinsertf128
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---
            Target: x86_64-*-*, i?86-*-*

static const int aligned = 0;

void pairs_double(double blocks[]) {
    if(aligned) blocks = __builtin_assume_aligned(blocks, 64);
    for (int i = 0 ; i<10240 ; i+=2) {
        double x = blocks[i];
        double y = blocks[i+1];
        blocks[i] = x*y;
        blocks[i+1] = x+y;
    }
}

i.e. load a pair of 64-bit elements and replace them with 2 different
combinations of the pair.

https://godbolt.org/g/Y9eJF3  (also includes a uint64_t version that shuffles
similarly with AVX2).  See
https://stackoverflow.com/questions/46038401/unpack-m128i-m256i-to-m64-mmx-sse2-avx2
for the original integer question.


GCC autovectorizes this poorly with AVX, and *very* poorly in the unaligned
case with split loads/stores.  It's doing two movupd/vinsertf128 pairs to
emulate a ymm load, and then shuffling with vinsertf128 / vperm2f128.  Using
split loads from non-contiguous addresses would definitely allow dropping at
least one shuffle.

with gcc 8.0.0 20170907  -xc -std=gnu11 -O3 -Wall -march=sandybridge

pairs_double:
        leaq    81920(%rdi), %rax
.L2:
        vmovupd (%rdi), %xmm1
        vinsertf128     $0x1, 16(%rdi), %ymm1, %ymm1
        addq    $64, %rdi
        vmovupd -32(%rdi), %xmm2
        vinsertf128     $0x1, -16(%rdi), %ymm2, %ymm2
        vinsertf128     $1, %xmm2, %ymm1, %ymm0
        vperm2f128      $49, %ymm2, %ymm1, %ymm1
        vunpcklpd       %ymm1, %ymm0, %ymm2
        vunpckhpd       %ymm1, %ymm0, %ymm0
        vmulpd  %ymm2, %ymm0, %ymm1
        vaddpd  %ymm2, %ymm0, %ymm0
        vinsertf128     $1, %xmm1, %ymm1, %ymm2
        vperm2f128      $49, %ymm1, %ymm1, %ymm1
        vinsertf128     $1, %xmm0, %ymm0, %ymm3
        vperm2f128      $49, %ymm0, %ymm0, %ymm0
        vshufpd $12, %ymm3, %ymm2, %ymm2
        vshufpd $12, %ymm0, %ymm1, %ymm0
        vmovups %xmm2, -64(%rdi)
        vextractf128    $0x1, %ymm2, -48(%rdi)
        vextractf128    $0x1, %ymm0, -16(%rdi)
        vmovups %xmm0, -32(%rdi)
        cmpq    %rdi, %rax
        jne     .L2
        vzeroupper
        ret


This is obviously pretty horrible, with far too much shuffling just to set up
for a mul and add.  Things are not bad with -mprefer-avx128 and aligned
pointers (4x vunpckl/h per 2 vectors), which should be good on Ryzen or
SnB-family, but maybe not faster than scalar on Haswell with limited shuffle
throughput.  (Same for the uint64_t version of the same thing.)
>From gcc-bugs-return-574575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 02:07:14 2017
Return-Path: <gcc-bugs-return-574575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90471 invoked by alias); 8 Sep 2017 02:07:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 63511 invoked by uid 48); 8 Sep 2017 02:07:06 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82137] New: auto-vectorizing shuffles way to much to avoid duplicate work
Date: Fri, 08 Sep 2017 02:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82137-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00604.txt.bz2
Content-length: 5168

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

            Bug ID: 82137
           Summary: auto-vectorizing shuffles way to much to avoid
                    duplicate work
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---

(same code as bug 82136, but with aligned pointers, and discussing the overall
vectorization strategy)

static const int aligned = 1;

void pairs_double(double blocks[]) {
    if(aligned) blocks = __builtin_assume_aligned(blocks, 64);
    for (int i = 0 ; i<10240 ; i+=2) {
        double x = blocks[i];
        double y = blocks[i+1];
        blocks[i] = x*y;
        blocks[i+1] = x+y;
    }
}

https://godbolt.org/g/pTY5iU has this + a uint64_t version (with ^ and &)

i.e. load a pair of 64-bit elements and replace them with 2 different
combinations of the pair.  See
https://stackoverflow.com/questions/46038401/unpack-m128i-m256i-to-m64-mmx-sse2-avx2.

gcc auto-vectorizes this *way* too much shuffling when AVX / AVX2 are
available, same for the integer version.  It's especially bad with AVX1 only,
but even AVX2 is a mess and will totally bottleneck on shuffle throughput on
Intel and AMD CPUs (Ryzen has good shuffle throughput, but lane-crossing
shuffles are much more expensive than in-lane).

gcc 8.0.8 -O3 -march=haswell

pairs_double:
        leaq    81920(%rdi), %rax
.L2:
        vmovapd (%rdi), %ymm1
        vmovapd 32(%rdi), %ymm0
        addq    $64, %rdi
        vunpcklpd       %ymm0, %ymm1, %ymm2
        vunpckhpd       %ymm0, %ymm1, %ymm0
        vpermpd $216, %ymm2, %ymm2
        vpermpd $216, %ymm0, %ymm0
        vmulpd  %ymm2, %ymm0, %ymm1
        vaddpd  %ymm2, %ymm0, %ymm0
        vpermpd $68, %ymm0, %ymm3
        vpermpd $238, %ymm0, %ymm0
        vpermpd $68, %ymm1, %ymm2
        vpermpd $238, %ymm1, %ymm1
        vshufpd $12, %ymm3, %ymm2, %ymm2
        vshufpd $12, %ymm0, %ymm1, %ymm0
        vmovapd %ymm2, -64(%rdi)
        vmovapd %ymm0, -32(%rdi)
        cmpq    %rdi, %rax
        jne     .L2
        vzeroupper
        ret

I haven't worked through the constants to see how its shuffling, but the same
function with uint64_t (and operators ^ &) uses 4 shuffles per 2 vectors after
the actual work:

        # vpand / vpxor in ymm0 / ymm1
        vpunpcklqdq     %ymm0, %ymm1, %ymm2
        vpunpckhqdq     %ymm0, %ymm1, %ymm0
        vperm2i128      $32, %ymm0, %ymm2, %ymm1
        vperm2i128      $49, %ymm0, %ymm2, %ymm0
        vmovdqa %ymm1, -64(%rdi)
        vmovdqa %ymm0, -32(%rdi)

It uses equivalent shuffles to prepare for vpand/vpxor, so vunpckl/hpd + 2x
vperm2f128 should do the same shuffle.  Using split stores would help a lot on
Intel and AMD: 2x vmovdqa xmm, then 2x vextractf128 xmm.  SnB/HSW/SKL
vextractf128 to memory is 2 fused-domain uops (Agner Fog's table) but there's
no ALU uop.  It's just a non-micro-fused store.  Since gcc's code horribly
bottlenecks on shuffles, split stores would be a win here.

It's a huge win on Ryzen, where vperm2f128 is 8 uops with 3c throughput. 
(-march=ryzen enables -mprefer-avx128, but -march=haswell running on Ryzen is
probably a relevant use-case.  When all else is equal for Intel, do something
that doesn't suck on Ryzen.)

----

However, a different strategy entirely is *MUCH* better for most CPUs, and as a
bonus it only needs AVX1 and no lane-crossing shuffles:

Do far less shuffling in exchange for doing more mul/add (or whatever), by
allowing duplicates.  Doing the same operation twice is allowed, even when it
can raise FP exceptions (in C and C++).

    b0     b1       |    b2       b3       # load 256b
    b1     b0       |    b3       b2       # vshufpd or vpermilpd for in-lane
swap

    b0*b1  b1*b0    |    b2*b3    b3*b2    # vmulpd
    b0+b1  b1+b0    |    b2+b3    b3+b2    # vaddpd

    b0*b1  b0+b1    |    b2*b3    b2+b3    # vblendpd
                                           # store 256b

Per two 128b pairs, that's 1 load, 1 shuffle, 2x FP math, 1 immediate-blend, 1
store.  No lane-crossing shuffles is a huge plus for Ryzen (vperm2f128 is very
slow).

That's 6 fused-domain uops on Intel, and should easily run at 1 iter per 1.5
cycles (+ loop overhead), without bottlenecking on any ports.  The bottleneck
is the front-end, so unrolling helps.

That's 0.75c per 128b pair.  (Slower on SnB/IvB, bottlenecking on load/store
throughput.)

Immediate-blend can run on any port on HSW+, or p0/p5 on SnB (and good
throughput on BD/Ryzen) so it's much more throughput-friendly than using
vunpcklpd to mix the mul and add result vectors.  If the operation hadn't been
commutative (e.g. sub instead of add), you might have to use vpunpck.

This same strategy is also optimal for integer booleans with AVX2.  (Or
possibly even with AVX1, but using VXORPS / VANDPS will bottleneck on port5 on
SnB-Broadwell, since it wasn't until Skylake that FP booleans run on p015).
>From gcc-bugs-return-574576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 02:08:17 2017
Return-Path: <gcc-bugs-return-574576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40894 invoked by alias); 8 Sep 2017 02: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 36123 invoked by uid 48); 8 Sep 2017 02:08:08 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82136] x86: -mavx256-split-unaligned-load should try to fold other shuffles into the load/vinsertf128
Date: Fri, 08 Sep 2017 02:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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-82136-4-Rgsf1XrJ43@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82136-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82136-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00605.txt.bz2
Content-length: 409

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

--- Comment #1 from Peter Cordes <peter at cordes dot ca> ---
Whoops, the compiler-explorer link had aligned=1.  This one produces the asm I
showed in the original report: https://godbolt.org/g/WsZ5S9

See bug 82137 for a much more efficient vectorization strategy gcc should use
instead, with just in-lane shuffle + blend and some duplicated work.
>From gcc-bugs-return-574578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 02:50:53 2017
Return-Path: <gcc-bugs-return-574578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124138 invoked by alias); 8 Sep 2017 02:50: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 124072 invoked by uid 48); 8 Sep 2017 02:50:45 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82138] [8 Regression] Assembler messages: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section}
Date: Fri, 08 Sep 2017 02:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: assemble-failure
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-82138-4-2jYwY4GI2X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82138-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82138-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00607.txt.bz2
Content-length: 157

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

--- Comment #1 from Arseny Solokha <asolokha at gmx dot com> ---
This was fixed in r251843 for rs6000.
>From gcc-bugs-return-574577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 02:50:29 2017
Return-Path: <gcc-bugs-return-574577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123332 invoked by alias); 8 Sep 2017 02: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 123261 invoked by uid 48); 8 Sep 2017 02:50:21 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82138] New: [8 Regression] Assembler messages: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section}
Date: Fri, 08 Sep 2017 02:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: assemble-failure
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget
Message-ID: <bug-82138-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00606.txt.bz2
Content-length: 1407

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

            Bug ID: 82138
           Summary: [8 Regression] Assembler messages: Error: can't
                    resolve `.got2' {.got2 section} - `.LCF0'
                    {.text.unlikely section}
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: assemble-failure
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
                CC: andrewjenner at gcc dot gnu.org, charlet at gcc dot gnu.org,
                    unassigned at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpcspe-*-linux-gnu*

+++ This bug was initially created as a clone of Bug #81979 +++

gas 2.28.1 rejects the code generated by gcc-8.0.0-alpha20170820 snapshot
(r251211) w/ -fPIC -O2 -freorder-blocks-and-partition for the following
snippet:

int du;

void
xf (int ee)
{
  int cq;

  while (cq < 1)
    {
      int ox;

      for (ox = 0; ox < 4; ++ox)
        cq /= (ee != 0) ? 2 : ee;
    }

  du = 1;
  for (;;)
    {
    }
}

% powerpc-e500v2-linux-gnuspe-gcc-8.0.0-alpha20170820 -fPIC -O2
-freorder-blocks-and-partition -c v8qdkqlm.c
/tmp/cchaREkd.s: Assembler messages:
/tmp/cchaREkd.s:15: Error: can't resolve `.got2' {.got2 section} - `.LCF0'
{.text.unlikely section}
>From gcc-bugs-return-574579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 05:48:05 2017
Return-Path: <gcc-bugs-return-574579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58692 invoked by alias); 8 Sep 2017 05:48: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 57606 invoked by uid 48); 8 Sep 2017 05:47:54 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82139] New: unnecessary movapd with _mm_castsi128_pd to use BLENDPD on __m128i results
Date: Fri, 08 Sep 2017 05:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82139-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00608.txt.bz2
Content-length: 2739

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

            Bug ID: 82139
           Summary: unnecessary movapd with _mm_castsi128_pd to use
                    BLENDPD on __m128i results
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---
            Target: x86_64-*-*, i?86-*-*

#include <immintrin.h>
#include <stdint.h>
// stripped down from a real function that did something more useful
void foo(uint64_t blocks[]) {
    for (int i = 0 ; i<10240 ; i+=2) {
        __m128i v = _mm_loadu_si128((__m128i*)&blocks[i]);
        __m128i t1 = _mm_add_epi32(v, _mm_set1_epi32(1));
        __m128i t2 = _mm_add_epi32(v, _mm_set1_epi32(-1));
        __m128d blend = _mm_blend_pd(_mm_castsi128_pd(t1),
                             _mm_castsi128_pd(t2), 2);
          // is this even aliasing-safe?  Could cast back to __m128i
        _mm_storeu_pd((double*)(__m128d*)&blocks[i], blend);
    }
}

https://godbolt.org/g/im1kcc for source and gcc-trunk asm output (and the
slightly larger version of this function that I simplified).

blendpd/blendps have better throughput than pblendw on Intel CPUs, so I played
with that in this function I was looking at.

gcc4.8 and later waste a MOVAPD for no reason instead of clobbering one of the
PADDD results with the blend.  (The larger version of this function,
pairs_u64_sse2 in the godbolt link, avoids the extra MOVAPD with gcc4.9.4 and
earlier, but not in foo().  So maybe it's just by chance, or maybe 4.8 changed
something.  Anyway, still present in 7.2 and 8.0-trunk, and with -O2 or -O3

(GCC-Explorer-Build) 8.0.0 20170907 -xc -std=gnu99 -O3 -Wall -msse4 -mno-avx

foo:
        pcmpeqd %xmm2, %xmm2
        leaq    81920(%rdi), %rax
        movdqa  .LC0(%rip), %xmm3
.L6:
        movdqa  %xmm3, %xmm1
        addq    $16, %rdi
        movdqu  -16(%rdi), %xmm0
        paddd   %xmm0, %xmm1
        movapd  %xmm1, %xmm4
        paddd   %xmm2, %xmm0
        blendpd $2, %xmm0, %xmm4
        movups  %xmm4, -16(%rdi)
        cmpq    %rdi, %rax
        jne     .L6
        rep ret

Notice that BLENDPD's operands aren't the two output registers from the PADDD
instructions.  Different versions/options (like -mtune=skylake) put the extra
MOVAPD between the PADDD instructions, or right before BLENDPD, so don't let it
fool you. :P

With the function even simpler (like only one _mm_add_epi32), blending between
the original load result and the add result didn't appear to have an extra
MOVAPD
>From gcc-bugs-return-574580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 06:00:49 2017
Return-Path: <gcc-bugs-return-574580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36777 invoked by alias); 8 Sep 2017 06: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 36699 invoked by uid 48); 8 Sep 2017 06:00:39 -0000
From: "rocky.wu at emc dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82140] New: "internal compiler error: Illegal instruction" on function exp
Date: Fri, 08 Sep 2017 06:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.8.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rocky.wu at emc 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-82140-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00609.txt.bz2
Content-length: 3300

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

            Bug ID: 82140
           Summary: "internal compiler error: Illegal instruction" on
                    function exp
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rocky.wu at emc dot com
  Target Milestone: ---

$ cat b.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>

int main()
{
  double a=4 * exp(-0.5);
  printf("a=%f\n",a);
  exit(0);
}

$  /auto/home/lsbuild/desktop-573285/usr/bin/gcc -Wall -Wextra
-fno-strict-aliasing -fwrapv b.c -o a.out -lm
b.c: In function ‘main’:
b.c:7:3: internal compiler error: Illegal instruction
   double a=4 * exp(-0.5);
   ^
0x7d5d0f crash_signal
        ../../gcc-4.8.3-20140911/gcc/toplev.c:335
0x2b6b80b0163f ???
       
/rpmbuild/BUILD/glibc-2.17-c758a686/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
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.
The bug is not reproducible, so it is likely a hardware or OS problem.


$ /auto/home/lsbuild/desktop-573285/usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/auto/home/lsbuild/desktop-573285/usr/bin/gcc
COLLECT_LTO_WRAPPER=/auto/toolset_nfs/toolchain/desktop-573285/usr/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.3/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.8.3-20140911/configure
--prefix=/auto/home/lsbuild/desktop-573285/usr
--libdir=/auto/home/lsbuild/desktop-573285/usr/lib64
--libexecdir=/auto/home/lsbuild/desktop-573285/usr/libexec
--with-build-time-tools=/auto/home/lsbuild/desktop-573285/usr/bin
--with-as=/auto/home/lsbuild/desktop-573285/usr/bin/as
--with-ld=/auto/home/lsbuild/desktop-573285/usr/bin/ld
--with-libelf-include=/auto/home/lsbuild/desktop-573285/usr/include
--with-libelf-lib=/auto/home/lsbuild/desktop-573285/usr/lib64
--with-native-system-header-dir=/auto/home/lsbuild/desktop-573285/usr/include
--enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-c99
--enable-long-long --enable-clocale=gnu --enable-languages=c,c++
--enable-multilib --disable-libgcj --disable-libquadmath
--disable-libunwind-exceptions --with-system-zlib
--with-gmp-lib=/auto/home/lsbuild/desktop-573285/usr/lib64
--with-gmp-include=/auto/home/lsbuild/desktop-573285/usr/include
--with-mpfr-lib=/auto/home/lsbuild/desktop-573285/usr/lib64
--with-mpfr-include=/auto/home/lsbuild/desktop-573285/usr/include
--with-mpc-lib=/auto/home/lsbuild/desktop-573285/usr/lib64
--with-mpc-include=/auto/home/lsbuild/desktop-573285/usr/include
Thread model: posix
gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC)




seems only exp function cause this problem, the gcc behavior is normal if no
exp() called.

$ cat c.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>

int main()
{
  double a=4 * sqrt(2.0);
  printf("a=%f\n",a);
  exit(0);
}
$  /auto/home/lsbuild/desktop-573285/usr/bin/gcc -Wall -Wextra
-fno-strict-aliasing -fwrapv c.c -o a.out -lm
$ ./a.out
a=5.656854
>From gcc-bugs-return-574581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 06:07:33 2017
Return-Path: <gcc-bugs-return-574581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65074 invoked by alias); 8 Sep 2017 06:07: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 64980 invoked by uid 48); 8 Sep 2017 06:07:25 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82140] "internal compiler error: Illegal instruction" on function exp
Date: Fri, 08 Sep 2017 06: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: 4.8.3
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-82140-4-KaeQRHoUpX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82140-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82140-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00610.txt.bz2
Content-length: 648

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

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

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is GMP crashing.  Maybe you misconfigure GMP.  GMP configures usually for
the processor you are on when you configure/compile it.  So if you move that
installation to another (older) machine, you get crashes like this.
>From gcc-bugs-return-574582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 06:52:38 2017
Return-Path: <gcc-bugs-return-574582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80853 invoked by alias); 8 Sep 2017 06:52:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80774 invoked by uid 48); 8 Sep 2017 06:52:29 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] New: [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Fri, 08 Sep 2017 06:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00611.txt.bz2
Content-length: 1113

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

            Bug ID: 82141
           Summary: [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE :
                    rtsfind.adb:851 on darwin
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: ebotcazou at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-apple-darwin16
            Target: x86_64-apple-darwin16
             Build: x86_64-apple-darwin16

Bootstrap fails on darwin at r251817 (251529 is OK):

/opt/gcc/build_w/./gcc/xgcc -B/opt/gcc/build_w/./gcc/
-B/opt/gcc/gcc8w/x86_64-apple-darwin16.7.0/bin/
-B/opt/gcc/gcc8w/x86_64-apple-darwin16.7.0/lib/ -isystem
/opt/gcc/gcc8w/x86_64-apple-darwin16.7.0/include -isystem
/opt/gcc/gcc8w/x86_64-apple-darwin16.7.0/sys-include    -c -g -O2  -fno-common 
-W -Wall -gnatpg -nostdinc   g-exptty.adb -o g-exptty.o

raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851
>From gcc-bugs-return-574583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 07:20:32 2017
Return-Path: <gcc-bugs-return-574583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109803 invoked by alias); 8 Sep 2017 07:20:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 96608 invoked by uid 48); 8 Sep 2017 07:20:23 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82142] New: struct zeroing should use wide stores instead of avoiding overwriting padding
Date: Fri, 08 Sep 2017 07:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82142-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00612.txt.bz2
Content-length: 4877

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

            Bug ID: 82142
           Summary: struct zeroing should use wide stores instead of
                    avoiding overwriting padding
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---

(not sure if tree-optimization is the right "component", please check.)

Zeroing a struct (by assignment from an all-zero struct) is inefficient for
structs too small to inline rep stos or memset, if they have padding.  Store
coalescing happens (yay, huge improvement over gcc6!), but only if it won't
write any padding.  I assume assignment from non-zero struct constants is like
this, too.

Note also that gcc zeros two registers for two 16-bit stores, instead of
reusing a zeroed reg.

Also note that Haswell doesn't have LCP stalls for a `mov` with 16-bit
immediate, only for ALU, so there's no need to avoid it.  But if you *are*
going to zero a register, you should use it as the source for all the integer
mov instructions to save code-size.  (And avoid filling up space in the uop
cache with immediates).  Sandybridge-family no longer has register-read-port
stalls (P6 / Core2 / Nehalem), and even there a recently-written register is
fine for several cycles.

https://godbolt.org/g/AT7yfs

typedef struct {
    int a,b,c;
    char j,k, k1;
        // 1B of padding
    int l,m,n[8];
    char c1,c2;
        // 2B of padding
}foo;
int sf = sizeof(foo);

sf:
        .long   60   # bytes long

void assignzero(foo *p) {
    foo tmp = {};
    *p = tmp;
}

(GCC-Explorer-Build) 8.0.0 20170907  -xc -std=c11 -O3 -march=haswell


assignzero:
        pushq   %rbp
        xorl    %eax, %eax            # zero a reg to avoid mov $imm16, (mem)
        vpxor   %xmm0, %xmm0, %xmm0
        xorl    %edx, %edx            # and another one, instead of reusing
eax??
        movq    $0, (%rdi)
        movl    $0, 8(%rdi)
        movq    %rsp, %rbp      # make a stack frame because of the ymm?  At
least it doesn't do something with %r10 like gcc7.2
        movw    %ax, 12(%rdi)
        movb    $0, 14(%rdi)
                           # avoiding a store to 1B of padding
        vmovdqu %ymm0, 16(%rdi)       # bunch of int members
        movq    $0, 48(%rdi)
        movw    %dx, 56(%rdi)
        vzeroupper
        popq    %rbp
        ret

So 1B of padding cost us 4 narrow stores instead of one 16B store at the front
of the struct.  This also uses AVX for a single 256b store; very likely not
worth it.


// what we would like to see, more or less
void charzero(char *p) {
    __builtin_memset(p, 0, sizeof(foo));
}
charzero:
        vpxor   %xmm0, %xmm0, %xmm0
        movq    $0, 48(%rdi)
        vmovups %xmm0, (%rdi)
        vmovups %xmm0, 16(%rdi)
        vmovups %xmm0, 32(%rdi)
        movl    $0, 56(%rdi)
        ret

This chooses not to use 256b AVX, so no vzeroupper, and no slow-mode while
warming up the upper-half of execution units / data bus. (Agner's description
sounds like it applies to stores:
http://agner.org/optimize/blog/read.php?i=415).  Also no triggering a lower
turbo threshold.  All of this is probably good for a tiny function.

We could save some code-size by replacing the integer mov $0 stores with vmovq
%xmm0, 48(%rdi).  That's probably not good for Bulldozer-family (shared vector
unit between two integer cores), so maybe only enable that with a -march=znver1
or sandybridge-family CPU.  (xor-zeroing takes zero cycles on Intel SnB-family,
so xmm0 is ready as a source for the store in the same cycle that vpxor issues.
 I guess it's possible that an integer store can execute 1 cycle sooner than an
AVX 8-byte store, so if there weren't already any stores waiting to execute,
and store-port throughput was about to become a bottleneck in later code, it
makes sense.  Maybe only do it for the last store, using a 4-byte vmovd %xmm0,
56(%rdi))

Or better (on Haswell and especially Skylake): use overlapping vector stores
like clang has been doing since 3.7, and like glibc memcpy does for small
copies:

   # clang (trunk) -O3 -march=haswell
assignzero:                             # same code for clang's memset
        vxorps  %xmm0, %xmm0, %xmm0
        vmovups %ymm0, 28(%rdi)         # last 32 bytes
        vmovups %ymm0, (%rdi)           # first 32 bytes, overlapping by 4
        vzeroupper
        retq

Having to use vzeroupper here is questionable.

4 xmm stores (with the last one overlapping) might be a better choice here, but
I haven't tried to measure the effect of scattered uses of AVX.  When tuning
for Sandybridge, clang only uses 128b stores here.
>From gcc-bugs-return-574584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 07:50:42 2017
Return-Path: <gcc-bugs-return-574584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34789 invoked by alias); 8 Sep 2017 07:50:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34748 invoked by uid 48); 8 Sep 2017 07:50:33 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82135] Missed constant propagation through possible unsigned wraparound, with std::align() variable pointer, constant everything else.
Date: Fri, 08 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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-82135-4-FUGfrpyJJn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82135-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82135-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00613.txt.bz2
Content-length: 1234

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

--- Comment #2 from Peter Cordes <peter at cordes dot ca> ---
(In reply to Marc Glisse from comment #1)
> This PR is a bit messy, please minimize your examples...

Sorry, looking at it again later I could have done better.  I thought it was
somewhat relevant that this was from gcc's own header and had (weird) use-cases
that didn't optimize well, otherwise I prob. would have reduced it more in the
first place.

> IIUC, essentially, you would like gcc to realize that __diff_5 is in [0,63],
> so the condition is always false.

Yes, exactly.

> (we could also add if(__diff>__align)__builtin__unreachable() in <memory> but that's getting really specific)

 I was too sleepy to figure out that was the real always-true condition to look
for.  Hence my other random __builtin__unreachable() attempts. :P

IDK how much use std::align gets, and if so whether it's common to use it in
cases where many of the inputs are constants after inlining.  It might be
interesting to look at how it optimizes with fewer of the inputs constant (like
maybe just align, or align and space).  If that __builtin__unreachable() helps
in any other cases, it might be worth considering.
>From gcc-bugs-return-574585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 08:16:42 2017
Return-Path: <gcc-bugs-return-574585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75156 invoked by alias); 8 Sep 2017 08:16: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 68454 invoked by uid 48); 8 Sep 2017 08:16:16 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82143] New: add a -fdefault-real-16 flag
Date: Fri, 08 Sep 2017 08:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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: ---
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-82143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00614.txt.bz2
Content-length: 734

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

            Bug ID: 82143
           Summary: add a -fdefault-real-16 flag
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janus at gcc dot gnu.org
  Target Milestone: ---

gfortran currently knows the options -fdefault-real-8 and -fdefault-double-8.

It would be useful to add an -fdefault-real-16 (corresponding to ifort's
-real-size 128) and maybe also -fdefault-double-16.

For completeness, also -fdefault-real-4 might be worth adding (which would
correspond to the current default behavior).
>From gcc-bugs-return-574586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 08:29:20 2017
Return-Path: <gcc-bugs-return-574586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7730 invoked by alias); 8 Sep 2017 08: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 1052 invoked by uid 48); 8 Sep 2017 08:29:07 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82144] New: ice in add_dwarf_attr with alignas
Date: Fri, 08 Sep 2017 08: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82144-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00615.txt.bz2
Content-length: 1700

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

            Bug ID: 82144
           Summary: ice in add_dwarf_attr with alignas
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

From the C++ testsuite, source code file ./g++.dg/cpp0x/alignas7.C
won't compile when -g is used.

$ ~/gcc/results/bin/gcc -g ./g++.dg/cpp0x/alignas7.C
./g++.dg/cpp0x/alignas7.C: In instantiation of ‘struct A<8, char>’:
./g++.dg/cpp0x/alignas7.C:13:1:   required from here
./g++.dg/cpp0x/alignas7.C:7:24: internal compiler error: in add_dwarf_attr, at
dwarf2out.c:4132
   enum alignas (N) E : T;
                        ^
0xa1ff0e add_dwarf_attr
        ../../trunk/gcc/dwarf2out.c:4132
0xa1ff88 add_AT_unsigned
        ../../trunk/gcc/dwarf2out.c:4215
0xa1ff88 add_alignment_attribute
        ../../trunk/gcc/dwarf2out.c:20197
0xa571b7 gen_enumeration_type_die
        ../../trunk/gcc/dwarf2out.c:21261
$ ~/gcc/results/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/home/dcb/gcc/results/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb/gcc/results.251861/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure --prefix=/home/dcb/gcc/results.251861
--disable-bootstrap --disable-multilib --disable-werror
--enable-checking=df,extra,fold,rtl,yes --enable-languages=c,c++,fortran
Thread model: posix
gcc version 8.0.0 20170908 (experimental) (GCC) 

The bug seems to occur between revisions 251689 and 251751
>From gcc-bugs-return-574588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 08:36:56 2017
Return-Path: <gcc-bugs-return-574588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53729 invoked by alias); 8 Sep 2017 08:36:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40985 invoked by uid 48); 8 Sep 2017 08:36:47 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Fri, 08 Sep 2017 08: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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-82141-4-wsye9hgD70@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00617.txt.bz2
Content-length: 537

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

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

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

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
We're waiting for Simon's patch at this point.

*** This bug has been marked as a duplicate of bug 80556 ***
>From gcc-bugs-return-574587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 08:36:55 2017
Return-Path: <gcc-bugs-return-574587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53545 invoked by alias); 8 Sep 2017 08:36: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 41673 invoked by uid 48); 8 Sep 2017 08:36:48 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80556] [8 Regression] bootstrap failure for Ada compiler
Date: Fri, 08 Sep 2017 08:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: ebotcazou 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80556-4-zFKcUr8N60@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80556-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80556-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00616.txt.bz2
Content-length: 186

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

--- Comment #45 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
*** Bug 82141 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-574589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 08:52:25 2017
Return-Path: <gcc-bugs-return-574589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4043 invoked by alias); 8 Sep 2017 08:52: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 123222 invoked by uid 48); 8 Sep 2017 08:52:18 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82145] New: [8 regression] i386/pr38988.c, i386/pr46254.c, i386/pr55154.c, i386/pr81766.c fails
Date: Fri, 08 Sep 2017 08:52: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00618.txt.bz2
Content-length: 1087

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

            Bug ID: 82145
           Summary: [8 regression] i386/pr38988.c, i386/pr46254.c,
                    i386/pr55154.c, i386/pr81766.c fails
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey.y.guskov at intel dot com
  Target Milestone: ---

Since r251606, these three tests began failing in GCC make check, coupled with
the new test added in the very patch:

FAIL: gcc.target/i386/pr38988.c (internal compiler error)
FAIL: gcc.target/i386/pr38988.c (test for excess errors)
FAIL: gcc.target/i386/pr46254.c (internal compiler error)
FAIL: gcc.target/i386/pr46254.c (test for excess errors)
FAIL: gcc.target/i386/pr55154.c (internal compiler error)
FAIL: gcc.target/i386/pr55154.c (test for excess errors)

FAIL: gcc.target/i386/pr81766.c (internal compiler error) <-- new test
FAIL: gcc.target/i386/pr81766.c (test for excess errors)
>From gcc-bugs-return-574590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 08:57:50 2017
Return-Path: <gcc-bugs-return-574590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89884 invoked by alias); 8 Sep 2017 08:57:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86370 invoked by uid 48); 8 Sep 2017 08:57:41 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82145] [8 regression] i386/pr38988.c, i386/pr46254.c, i386/pr55154.c, i386/pr81766.c fails
Date: Fri, 08 Sep 2017 08:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82145-4-RajlM4CYvm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00619.txt.bz2
Content-length: 377

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

--- Comment #1 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
Option set:
-with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-shared
--enable-host-shared --enable-clocale=gnu --enable-cloog-backend=isl
--enable-languages=c,c++,fortran,jit,lto --with-arch=haswell --with-cpu=haswell
>From gcc-bugs-return-574591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 09:11:18 2017
Return-Path: <gcc-bugs-return-574591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64067 invoked by alias); 8 Sep 2017 09:11: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 57789 invoked by uid 48); 8 Sep 2017 09:11:10 -0000
From: "maasoftware at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82146] New: if (&pdo) is always true error
Date: Fri, 08 Sep 2017 09: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: maasoftware at yandex dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00620.txt.bz2
Content-length: 993

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

            Bug ID: 82146
           Summary: if (&pdo) is always true error
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: maasoftware at yandex dot ru
  Target Milestone: ---

//
// Linux Debian 9 Stretch x64 g++ 6.3.0
// -O2 or -O3 optimization option
// g++ -c -pipe -W -O3 -I. -I.. -I/usr/local/include -o file.o file.cpp
//
int CMyClass::MyFunc(_qword FileNum, CMaaString &Path, CMaaXmlDocument &doc)
{
    ....
    if (CMaaFile::IsAFile(FileName))
    {
        if   (&Path)
        {
            Path = FileName; // GPFault when Path is passed as *(CMaaString
*)NULL
        }
        doc = _doc;
        return true;
    }
    ....
}

int CMyClass::MyFunc2()
{
    ...
    return MyFunc(Num, *(CMaaString *)NULL, doc); // produces GPF
    ...
}
>From gcc-bugs-return-574592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 09:13:51 2017
Return-Path: <gcc-bugs-return-574592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56935 invoked by alias); 8 Sep 2017 09:13: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 50654 invoked by uid 48); 8 Sep 2017 09:13:43 -0000
From: "maasoftware at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82146] if (&pdo) is always true error
Date: Fri, 08 Sep 2017 09:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maasoftware at yandex dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82146-4-Jb9dnPxJgA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00621.txt.bz2
Content-length: 193

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

--- Comment #1 from MaaSoftware <maasoftware at yandex dot ru> ---
it is a sample, 
int CMyClass::MyFunc
can be as
bool CMyClass::MyFunc
>From gcc-bugs-return-574593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 09:14:23 2017
Return-Path: <gcc-bugs-return-574593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102595 invoked by alias); 8 Sep 2017 09: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 90824 invoked by uid 48); 8 Sep 2017 09:14:15 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Fri, 08 Sep 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82141-4-3Mr5nqIRLb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00622.txt.bz2
Content-length: 658

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> We're waiting for Simon's patch at this point.

For how long?

> *** This bug has been marked as a duplicate of bug 80556 ***

I doubt it since I am using

../work/configure --prefix=/opt/gcc/gcc8w
--enable-languages=c,c++,fortran,objc,obj-c++,ada,lto --with-gmp=/opt/mp-new
--with-system-zlib --with-isl=/opt/mp-new --enable-lto --enable-plugin
--with-arch=corei7 --with-cpu=corei7 --with-stage1-ldflags=-static-libstdc++
--with-boot-ldflags=-static-libstdc++

which is supposed to be a work around pr80556.
>From gcc-bugs-return-574594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 09:35:31 2017
Return-Path: <gcc-bugs-return-574594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107449 invoked by alias); 8 Sep 2017 09:35: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 95226 invoked by uid 48); 8 Sep 2017 09:35:23 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82143] add a -fdefault-real-16 flag
Date: Fri, 08 Sep 2017 09: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82143-4-vMhbKAzYg8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00623.txt.bz2
Content-length: 779

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-09-08
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
My experience with real-16 is that it is very very slow, as in barely usable.
In top of that the -fdefault-* has been the subject of lot of discussions and
should not be used in "production" codes. Thus I am against this addition.

Note that -fdefault-real-8 implies -fdefault-double-16.
>From gcc-bugs-return-574595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 09:39:19 2017
Return-Path: <gcc-bugs-return-574595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42417 invoked by alias); 8 Sep 2017 09:39: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 39588 invoked by uid 55); 8 Sep 2017 09:39:10 -0000
From: "charlet at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/80888] Wide_Text_IO defaults to bracket encoding even if -gnatW8 specified
Date: Fri, 08 Sep 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: ada
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: charlet at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80888-4-j4cHnnbJoj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80888-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80888-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00624.txt.bz2
Content-length: 591

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

--- Comment #3 from Arnaud Charlet <charlet at gcc dot gnu.org> ---
Author: charlet
Date: Fri Sep  8 09:38:38 2017
New Revision: 251874

URL: https://gcc.gnu.org/viewcvs?rev=251874&root=gcc&view=rev
Log:
2017-09-08  Bob Duff  <duff@adacore.com>

PR ada/80888
        * a-textio.adb, a-witeio.adb, a-ztexio.adb (Set_WCEM): Use
        Default_WCEM by default (i.e. if the encoding is not specified
        by the Form string).


Modified:
    trunk/gcc/ada/a-textio.adb
    trunk/gcc/ada/a-witeio.adb
    trunk/gcc/ada/a-ztexio.adb
>From gcc-bugs-return-574596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 09:39:55 2017
Return-Path: <gcc-bugs-return-574596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73368 invoked by alias); 8 Sep 2017 09:39: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 62041 invoked by uid 48); 8 Sep 2017 09:39:46 -0000
From: "charlet at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/80888] Wide_Text_IO defaults to bracket encoding even if -gnatW8 specified
Date: Fri, 08 Sep 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: ada
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: charlet at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution target_milestone
Message-ID: <bug-80888-4-jkyFrDCUp9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80888-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80888-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00625.txt.bz2
Content-length: 567

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

Arnaud Charlet <charlet at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |charlet at gcc dot gnu.org
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #4 from Arnaud Charlet <charlet at gcc dot gnu.org> ---
Should be fixed
>From gcc-bugs-return-574597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 09:56:33 2017
Return-Path: <gcc-bugs-return-574597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34827 invoked by alias); 8 Sep 2017 09:56: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 23640 invoked by uid 48); 8 Sep 2017 09:56:24 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82146] if (&pdo) is always true error
Date: Fri, 08 Sep 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: c++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse 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-82146-4-xhnHf2XARL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00626.txt.bz2
Content-length: 492

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

Marc Glisse <glisse at gcc dot gnu.org> changed:

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

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
Null references are illegal, use pointers if you want to use null pointers.
>From gcc-bugs-return-574598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 10:07:32 2017
Return-Path: <gcc-bugs-return-574598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46226 invoked by alias); 8 Sep 2017 10:07: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 41704 invoked by uid 48); 8 Sep 2017 10:07:23 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82145] [8 regression] i386/pr38988.c, i386/pr46254.c, i386/pr55154.c, i386/pr81766.c fails
Date: Fri, 08 Sep 2017 10:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82145-4-Oizp3qJgsC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00627.txt.bz2
Content-length: 1496

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-08
                 CC|                            |jakub at redhat dot com
     Ever confirmed|0                           |1

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Confirmed, fails also with vanilla mainline using:

-O2 -fpic -mcmodel=large -march=haswell

$ ~/gcc-build/gcc/cc1 -O2 -fpic -mcmodel=large -march=haswell -quiet pr38988.c 
during RTL pass: postreload
pr38988.c: In function ‘__do_global_dtors_aux’:
pr38988.c:24:1: internal compiler error: in cselib_hash_rtx, at cselib.c:1277
 }
 ^
0x998ef0 cselib_hash_rtx
        ../../git/gcc/gcc/cselib.c:1277
0x995433 cselib_lookup_1
        ../../git/gcc/gcc/cselib.c:2068
0x995433 cselib_lookup(rtx_def*, machine_mode, int, machine_mode)
        ../../git/gcc/gcc/cselib.c:2117
0xc4c3c5 reload_cse_simplify_operands
        ../../git/gcc/gcc/postreload.c:471
0xc4cdad reload_cse_simplify
        ../../git/gcc/gcc/postreload.c:179
0xc4cdad reload_cse_regs_1
        ../../git/gcc/gcc/postreload.c:218
0xc4e80b reload_cse_regs
        ../../git/gcc/gcc/postreload.c:64
0xc4e80b execute
        ../../git/gcc/gcc/postreload.c:2346
>From gcc-bugs-return-574599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 10:10:00 2017
Return-Path: <gcc-bugs-return-574599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37127 invoked by alias); 8 Sep 2017 10:10: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 32381 invoked by uid 48); 8 Sep 2017 10:09:51 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82145] [8 regression] i386/pr38988.c, i386/pr46254.c, i386/pr55154.c, i386/pr81766.c fails
Date: Fri, 08 Sep 2017 10: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: 8.0
X-Bugzilla-Keywords:
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-82145-4-FlQshn2qoI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00628.txt.bz2
Content-length: 1075

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
#2  0x0000000000998ef1 in cselib_hash_rtx(rtx_def*, int, machine_mode) () at
../../git/gcc/gcc/cselib.c:1277
1277              gcc_unreachable ();
(gdb) list
1272            case 't':
1273              /* unused */
1274              break;
1275
1276            default:
1277              gcc_unreachable ();
1278            }
1279        }
1280
1281      return hash ? hash : 1 + (unsigned int) GET_CODE (x);
(gdb) f 3
#3  0x0000000000995434 in cselib_lookup_1 (memmode=E_VOIDmode, create=0,
mode=E_VOIDmode, x=0x2aaaae7bbdc0) at ../../git/gcc/gcc/cselib.c:2068
2068      hashval = cselib_hash_rtx (x, create, memmode);
(gdb) p debug_rtx (x)
(note/s 43 50 44 2 "" NOTE_INSN_DELETED_LABEL 8)
$1 = void
>From gcc-bugs-return-574600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 10:24:42 2017
Return-Path: <gcc-bugs-return-574600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98944 invoked by alias); 8 Sep 2017 10:24: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 93721 invoked by uid 48); 8 Sep 2017 10:24:33 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Fri, 08 Sep 2017 10:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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-82141-4-nki86T6h88@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00629.txt.bz2
Content-length: 833

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

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> For how long?

Only God really knows I presume...  You can try the latest iteration:
  https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00045.html

> I doubt it since I am using
> 
> ../work/configure --prefix=/opt/gcc/gcc8w
> --enable-languages=c,c++,fortran,objc,obj-c++,ada,lto --with-gmp=/opt/mp-new
> --with-system-zlib --with-isl=/opt/mp-new --enable-lto --enable-plugin
> --with-arch=corei7 --with-cpu=corei7 --with-stage1-ldflags=-static-libstdc++
> --with-boot-ldflags=-static-libstdc++
> 
> which is supposed to be a work around pr80556.

Then you should mention it in the PR, this is very confusing.  But yes, it's
the same error and the same issue, no discussion about that.
>From gcc-bugs-return-574601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 10:56:33 2017
Return-Path: <gcc-bugs-return-574601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14510 invoked by alias); 8 Sep 2017 10:56: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 3200 invoked by uid 48); 8 Sep 2017 10:56:25 -0000
From: "maasoftware at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82146] if (&pdo) is always true error
Date: Fri, 08 Sep 2017 10:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maasoftware at yandex dot ru
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-82146-4-OSeok1T0QR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00630.txt.bz2
Content-length: 594

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

--- Comment #3 from MaaSoftware <maasoftware at yandex dot ru> ---
Ok. So, it is need to review such code according new standard.
PS: g++ 4.9.2 (Debian 8 Jessie) is compilling code above right.
But it is not sufficient for 6.3.0 to write a function like
void NotWorkedBugAround(CMaaString *a, CMaaString b)
{
    if (a)
    {
        *a = b;
    }
}
and call 
    NotWorkedBugAround(&Path, FileName);
instead of
    if   (&Path)
    {
        Path = FileName;
    }
to avoid wrong NULL references handling. (Tested with -O2 and -O3).
>From gcc-bugs-return-574602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 11:04:59 2017
Return-Path: <gcc-bugs-return-574602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15938 invoked by alias); 8 Sep 2017 11:04: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 15735 invoked by uid 48); 8 Sep 2017 11:04:50 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82146] if (&pdo) is always true error
Date: Fri, 08 Sep 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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: 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-82146-4-Tgl64ohUrl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00631.txt.bz2
Content-length: 650

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This has nothing to do with a new standard, *(CMaaString *)NULL is simply
undefined behaviour, and that has alawys been true. You cannot dereference a
null pointer.

The bug is there, not inside MyFunc or inside NotWorkedAround. Stop
dereferencing null pointers.

If the code worked in the past that doesn't make it correct. It was wrong then
and it's wrong now. Because dereferencing a null pointer is undefined you
cannot expect consistent results. What happens can change depending on
optimization level or compiler version.
>From gcc-bugs-return-574603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 11:06:06 2017
Return-Path: <gcc-bugs-return-574603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37848 invoked by alias); 8 Sep 2017 11:06:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 33706 invoked by uid 48); 8 Sep 2017 11:05:59 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82143] add a -fdefault-real-16 flag
Date: Fri, 08 Sep 2017 11:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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-82143-4-WvjTbW33e9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00632.txt.bz2
Content-length: 1186

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

kargl at gcc dot gnu.org changed:

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

--- Comment #2 from kargl at gcc dot gnu.org ---
(In reply to janus from comment #0)
> gfortran currently knows the options -fdefault-real-8 and -fdefault-double-8.
> 
> It would be useful to add an -fdefault-real-16 (corresponding to ifort's
> -real-size 128) and maybe also -fdefault-double-16.
> 
> For completeness, also -fdefault-real-4 might be worth adding (which would
> correspond to the current default behavior).

Actaully, the -fdefault-real* and -fdefault-integer-* options
should be deprecated.  These options are broken by design, and
probably do not do what one wants.  Use the -freal-4-real-16
(and similar options).

% cat cat a.f90 
program foo
   real x
   x = 1. / 3.
   print *, x
end program foo
%  gfortran6 -static -o z a.f90 && ./z
  0.333333343    
% gfortran6 -static -o z -freal-4-real-16 a.f90 && ./z
  0.333333333333333333333333333333333317
>From gcc-bugs-return-574604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 11:40:46 2017
Return-Path: <gcc-bugs-return-574604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61919 invoked by alias); 8 Sep 2017 11:40: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 61878 invoked by uid 48); 8 Sep 2017 11:40:41 -0000
From: "maasoftware at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82146] if (&pdo) is always true error
Date: Fri, 08 Sep 2017 11: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.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maasoftware at yandex dot ru
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-82146-4-CTZGk57QBr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00633.txt.bz2
Content-length: 497

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

--- Comment #5 from MaaSoftware <maasoftware at yandex dot ru> ---
Ok.

I am sorry,
return MyFunc(Num, *(CMaaString *)NULL, doc); // produces GPF in calling method
not here.

I have think before what all references are object memory pointers inside
compiller, just it is more easy working with references of objects not with
pointers in most ways. And no warning generated to *(CMaaString *)NULL code.
CXXFLAGS = -pipe -W -O3 -fpermissive
>From gcc-bugs-return-574605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 12:31:17 2017
Return-Path: <gcc-bugs-return-574605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17827 invoked by alias); 8 Sep 2017 12:31: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 17783 invoked by uid 48); 8 Sep 2017 12:31:13 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82143] add a -fdefault-real-16 flag
Date: Fri, 08 Sep 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: 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-82143-4-Zn3Hvtb6gn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00634.txt.bz2
Content-length: 1492

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

--- Comment #3 from janus at gcc dot gnu.org ---
(In reply to kargl from comment #2)
> Actaully, the -fdefault-real* and -fdefault-integer-* options
> should be deprecated.  These options are broken by design,

I don't know what that means. And no one else does, because the documentation
does not say anything about it.


> and probably do not do what one wants.

That depends on what you want, I guess. What they do is documented rather
clearly, isn't it? So, people with reading abilities should be able to use them
without any surprises.


> Use the -freal-4-real-16 (and similar options).

From the documentation of those options it sounds like they only affect
variables with explicit kind declaration, but not those with implicit / default
kind.

If that is true, they are not able to fully replace the unbeloved
-fdefault-real-* options.

If it is not true, obviously the documentation needs to be improved.


> % cat cat a.f90 
> program foo
>    real x
>    x = 1. / 3.
>    print *, x
> end program foo
> %  gfortran6 -static -o z a.f90 && ./z
>   0.333333343    
> % gfortran6 -static -o z -freal-4-real-16 a.f90 && ./z
>   0.333333333333333333333333333333333317

Your test case seems to suggest that the latter of the two aforementioned
options is true. From earlier experiments I believe I remember the opposite,
though. So either the implementation has changed over time, or I'm just
misremembering ...
>From gcc-bugs-return-574606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 12:32:02 2017
Return-Path: <gcc-bugs-return-574606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18843 invoked by alias); 8 Sep 2017 12: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 18759 invoked by uid 48); 8 Sep 2017 12:31:58 -0000
From: "simon at pushface dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80556] [8 Regression] bootstrap failure for Ada compiler
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: simon at pushface dot 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80556-4-fxODOZWk0I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80556-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80556-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00635.txt.bz2
Content-length: 250

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

--- Comment #46 from simon at pushface dot org ---
I posted my darwin.h patch at
https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00045.html on 1 September -
hasn’t attracted any notice yet.
>From gcc-bugs-return-574607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 13:44:59 2017
Return-Path: <gcc-bugs-return-574607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7157 invoked by alias); 8 Sep 2017 13:44:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 121571 invoked by uid 48); 8 Sep 2017 13:44:54 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82120] FAIL: gcc.dg/tree-ssa/pr81588.c
Date: Fri, 08 Sep 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: testsuite
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon 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-82120-4-XVCfDwsIqk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82120-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00636.txt.bz2
Content-length: 454

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

--- Comment #11 from Christophe Lyon <clyon at gcc dot gnu.org> ---
I've added the -mbranch-cost=N option to the arm target, but compiling
/gcc.dg/tree-ssa/pr81588.c with 
-mcpu=cortex-a5 -mfpu=vfpv3-d16 -O2 -fdump-tree-reassoc1-details
-mbranch-cost=N -S -o pr81588.s

never produces the required trace in the dumps, whatever the value of N (0..3).

Switching to cortex-a9 always works.
>From gcc-bugs-return-574608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 14:18:43 2017
Return-Path: <gcc-bugs-return-574608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87332 invoked by alias); 8 Sep 2017 14:18: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 87277 invoked by uid 48); 8 Sep 2017 14:18:34 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82147] New: Autovectorization for extraction is slower than done manually
Date: Fri, 08 Sep 2017 14: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: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82147-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00637.txt.bz2
Content-length: 1302

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

            Bug ID: 82147
           Summary: Autovectorization for extraction is slower than done
                    manually
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64

Take:
void f(float *restrict a, float * restrict b, float * restrict c)
{
  for(int i = 0; i< 1024;i++)
    {
      a[i] = c[i*2];
      b[i] = c[i*2 + 1];
    }
}

#define vector8 __attribute__((vector_size(8)))

void f1(float *restrict a, float * restrict b, float * restrict c)
{
  for(int i = 0; i< 1024;i++)
    {
      vector8 float d = *(vector8 float *)&c[i*2];
      a[i] = d[0];
      b[i] = d[1];
    }
}
--- CUT ---
I would have expected f and f1 produce the same code but f does ld2 followed by
two quad stores while f1 does a ldr(d) and then does a str(s) and st1(s).  For
most processors, ld2/str(q)/str(q) is going to be slower than doing ldr/str/st1
as far as I can tell.

I noticed this after the last talk about the auto-vectorizing.
>From gcc-bugs-return-574609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 14:26:58 2017
Return-Path: <gcc-bugs-return-574609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101419 invoked by alias); 8 Sep 2017 14:26: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 101361 invoked by uid 48); 8 Sep 2017 14:26:52 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82147] Autovectorization for extraction is slower than done manually
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82147-4-WFZq1vgKIO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82147-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82147-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00638.txt.bz2
Content-length: 738

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It is even worse for float*4->float*2,float*2.
Take (ignore the obvious aliasing issues):
void f(float *restrict a, float * restrict b, float * restrict c, int s)
{
  for(int i = 0; i< s;i++)
    {
      a[i*2] = c[i*4];
      a[i*2+1] = c[i*4+1];
      b[i*2] = c[i*4 + 2];
      b[i*2+1] = c[i*4 + 3];
    }
}

#define vector16 __attribute__((vector_size(16)))

void f1(float *restrict a, float * restrict b, float * restrict c, int s)
{
  for(int i = 0; i< s;i++)
    {
      vector16 double d = *(vector16 double*)&c[i*2];
      *(double*)&a[i*2] = d[0];
      *(double*)&b[i*2] = d[1];
    }
}
>From gcc-bugs-return-574610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 14:33:06 2017
Return-Path: <gcc-bugs-return-574610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123360 invoked by alias); 8 Sep 2017 14:33: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 123174 invoked by uid 55); 8 Sep 2017 14:32:55 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82143] add a -fdefault-real-16 flag
Date: Fri, 08 Sep 2017 14:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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-82143-4-7aEm7Tmr0p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00639.txt.bz2
Content-length: 5003

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

--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Fri, Sep 08, 2017 at 12:31:12PM +0000, janus at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82143
> 
> --- Comment #3 from janus at gcc dot gnu.org ---
> (In reply to kargl from comment #2)
> > Actaully, the -fdefault-real* and -fdefault-integer-* options
> > should be deprecated.  These options are broken by design,
> 
> I don't know what that means. And no one else does, because
> the documentation does not say anything about it.
> 
> > and probably do not do what one wants.
> 
> That depends on what you want, I guess. What they do is documented rather
> clearly, isn't it? So, people with reading abilities should be able
> to use them without any surprises.

I wrote the code for those options.  Although it may appear to
work for a typical user, these options have some underlying 
issues.  I submitted a patch a few years ago to deprecate the
options.  That did not go over too well.

One the big hidden issues that typical users never consider is
storage association.  When -fdefault-real-8 promotes REAL to
DOUBLE PRECISION and DOUBLE PRECISION to REAL(16), there was 
an attempt to maintain storage assocation.  This as done too
naively.

> > Use the -freal-4-real-16 (and similar options).
> 
> > From the documentation of those options it sounds like they only
> > affect variables with explicit kind declaration, but not those
> > with implicit / default kind.
> 
> If that is true, they are not able to fully replace the unbeloved
> -fdefault-real-* options.
> 
> If it is not true, obviously the documentation needs to be improved.

The best way to fix the documentation is to remove the -fdefault-*
options, and then the documentation can be removed.

> > % cat cat a.f90 
> > program foo
> >    real x
> >    x = 1. / 3.
> >    print *, x
> > end program foo
> > %  gfortran6 -static -o z a.f90 && ./z
> >   0.333333343    
> > % gfortran6 -static -o z -freal-4-real-16 a.f90 && ./z
> >   0.333333333333333333333333333333333317
> 
> Your test case seems to suggest that the latter of the two aforementioned
> options is true. From earlier experiments I believe I remember the opposite,
> though. So either the implementation has changed over time, or I'm just
> misremembering ...

-freal-4-real-16 promotes everything that should have been a REAL(4)
to a REAL(16).  -fdefault-real-8 promotes some things that are REAL(4)
to REAL(8), and if available it promotes some things from REAL(8) to
REAL(16).  Here's a different program with an implicitly typed REAL(4)
variable, explicitly typed 1._4, 1._8, and implicitly typed 1.

program foo
   real x
   double precision y
   a = 1._4 / 3
   x = 1._4 / 3
   y = 1._8 / 3
   print *, a
   print *, x
   print *, y
   a = 1. / 3
   x = 1. / 3
   y = 1. / 3
   print *, a
   print *, x
   print *, y
end program foo

Let SP mean 'single precision' and DP mean 'double precision', you
then have

% gfortran6 -static -o z a.f90 && ./z
  0.333333343                             explicit SP 1. on rhs
  0.333333343                             explicit SP 1. on rhs
  0.33333333333333331                     explicit DP 1. on rhs
  0.333333343                             implicit SP 1. on rhs 
  0.333333343                             implicit SP 1. on rhs
  0.33333334326744080                     implicit SP 1. on rhs

% gfortran6 -static -o z a.f90 -fdefault-real-8 && ./z
  0.33333334326744080                     explicit SP 1. retains REAL(4) nature
  0.33333334326744080                     explicit SP 1. retains REAL(4) nature 
  0.333333333333333314829616256247390993  REAL(8) promoted to REAL(16)    
  0.33333333333333331                     implicit SP 1. becomes DP 1.
  0.33333333333333331                     implicit SP 1. becomes DP 1.
  0.333333333333333314829616256247390993  implicit SP 1. becomes DP 1.
                                          REAL(8) promoted to REAL(16)

% gfortran6 -static -o z a.f90 -freal-4-real-8 && ./z
  0.33333333333333331     Everything promoted from REAL(4) to REAL(8)
  0.33333333333333331     Ditto
  0.33333333333333331     REAL(8) is not promoted to REAL(16)    
  0.33333333333333331     Everything promoted from REAL(4) to REAL(8)
  0.33333333333333331     Everything promoted from REAL(4) to REAL(8)
  0.33333333333333331     REAL(8) is not promoted to REAL(16)

% gfortran6 -static -o z a.f90 -freal-4-real-16 && ./z
  0.333333333333333333333333333333333317     All REAL(4) promoted to REAL(16) 
  0.333333333333333333333333333333333317     Ditto
  0.33333333333333331                        REAL(8) is not changed by option
  0.333333333333333333333333333333333317     All REAL(4) promoted to REAL(16)
  0.333333333333333333333333333333333317     Ditto
  0.33333333333333331                        REAL(8) is not changed by option
>From gcc-bugs-return-574611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 14:52:59 2017
Return-Path: <gcc-bugs-return-574611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46097 invoked by alias); 8 Sep 2017 14: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 43683 invoked by uid 48); 8 Sep 2017 14:52:54 -0000
From: "matthias.hochsteger at tuwien dot ac.at" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82148] New: ICE in assign_temp, at function.c:968
Date: Fri, 08 Sep 2017 14: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthias.hochsteger at tuwien dot ac.at
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-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-82148-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00640.txt.bz2
Content-length: 4103

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

            Bug ID: 82148
           Summary: ICE in assign_temp, at function.c:968
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: matthias.hochsteger at tuwien dot ac.at
  Target Milestone: ---

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

The code below fails to compile with -std=c++17, but compiles with -std=c++14.
A work-around is to add a constructor to 'Base'.

The code (code.ii is attached):

///////////////////////////////////
#include <initializer_list>

struct Base {
    // Working with the follwing line
    // ~Base() {}
};

struct Derived : public Base
{
  Derived (std::initializer_list<int> list) { }
  ~Derived() { }
};

void foo(Base a) { }

void bar() {
    foo(Derived{0});
}
///////////////////////////////////

The compiler call:

> c++ -v -save-temps -std=c++17 -c code.cpp

Using built-in specs.
COLLECT_GCC=c++
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 --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++1z' '-c' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/cc1plus -E -quiet -v -D_GNU_SOURCE
code.cpp -mtune=generic -march=x86-64 -std=c++1z -fpch-preprocess -o code.ii
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0

/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/x86_64-pc-linux-gnu
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/backward
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++1z' '-c' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/cc1plus -fpreprocessed code.ii -quiet
-dumpbase code.cpp -mtune=generic -march=x86-64 -auxbase code -std=c++1z
-version -o code.s
GNU C++14 (GCC) version 7.2.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version
3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++14 (GCC) version 7.2.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version
3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: f3b185e2b85ecd352b4699fa98d9eb0f
code.cpp: In function ‘void bar()’:
code.cpp:17:8: internal compiler error: in assign_temp, at function.c:968
     foo(Derived{0});
     ~~~^~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.

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

Thanks,
Matthias
>From gcc-bugs-return-574612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 14:59:29 2017
Return-Path: <gcc-bugs-return-574612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41660 invoked by alias); 8 Sep 2017 14:59:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 33131 invoked by uid 48); 8 Sep 2017 14:59:24 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82146] if (&pdo) is always true error
Date: Fri, 08 Sep 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: 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: 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-82146-4-CP1zjstLos@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00641.txt.bz2
Content-length: 974

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to MaaSoftware from comment #5)
> Ok.
> 
> I am sorry,
> return MyFunc(Num, *(CMaaString *)NULL, doc); // produces GPF in calling
> method not here.

So what? Dereferencing a null pointer has undefined behaviour, so anything can
happen. It could crash immediately, or it could produce unexpected results
elsewhere in the program.

> I have think before what all references are object memory pointers inside
> compiller,

You are wrong.

> just it is more easy working with references of objects not with
> pointers in most ways.

But references can't be null, so if you need something that can be null you
must use a pointer. It's quite simple, please stop wasting our time.

> And no warning generated to *(CMaaString *)NULL code.
> CXXFLAGS = -pipe -W -O3 -fpermissive

Just because there's no warning doesn't mean the code is correct.
>From gcc-bugs-return-574614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 15:03:59 2017
Return-Path: <gcc-bugs-return-574614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3563 invoked by alias); 8 Sep 2017 15:03: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 127724 invoked by uid 48); 8 Sep 2017 15:03:52 -0000
From: "matthias.hochsteger at tuwien dot ac.at" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82148] ICE in assign_temp, at function.c:968
Date: Fri, 08 Sep 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthias.hochsteger at tuwien dot ac.at
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82148-4-QrBqyuap6j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82148-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82148-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00643.txt.bz2
Content-length: 3510

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

--- Comment #1 from Matthias Hochsteger <matthias.hochsteger at tuwien dot ac.at> ---
Same on latest trunk (git commit 520b78be6e5b448ae4341960acc5706ae561c974):

 ~/local/gcc7/bin/c++ -v -save-temps -std=c++17 -c code.cpp
Using built-in specs.
COLLECT_GCC=/home/matthias/local/gcc7/bin/c++
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/home/matthias/local/gcc7
--enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 8.0.0 20170908 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++1z' '-c' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /home/matthias/local/gcc7/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/cc1plus -E
-quiet -v -D_GNU_SOURCE code.cpp -mtune=generic -march=x86-64 -std=c++1z
-fpch-preprocess -o code.ii
ignoring nonexistent directory
"/home/matthias/local/gcc7/lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/home/matthias/local/gcc7/lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../include/c++/8.0.0

/home/matthias/local/gcc7/lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../include/c++/8.0.0/x86_64-pc-linux-gnu

/home/matthias/local/gcc7/lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../include/c++/8.0.0/backward
 /home/matthias/local/gcc7/lib/gcc/x86_64-pc-linux-gnu/8.0.0/include
 /usr/local/include
 /home/matthias/local/gcc7/include
 /home/matthias/local/gcc7/lib/gcc/x86_64-pc-linux-gnu/8.0.0/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++1z' '-c' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /home/matthias/local/gcc7/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/cc1plus
-fpreprocessed code.ii -quiet -dumpbase code.cpp -mtune=generic -march=x86-64
-auxbase code -std=c++1z -version -o code.s
GNU C++14 (GCC) version 8.0.0 20170908 (experimental) (x86_64-pc-linux-gnu)
        compiled by GNU C version 8.0.0 20170908 (experimental), GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++14 (GCC) version 8.0.0 20170908 (experimental) (x86_64-pc-linux-gnu)
        compiled by GNU C version 8.0.0 20170908 (experimental), GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 34f3776a4b4b0480fb19303c453a2e50
during RTL pass: expand
code.cpp: In function ‘void bar()’:
code.cpp:17:8: internal compiler error: in assign_temp, at function.c:970
     foo(Derived{0});
     ~~~^~~~~~~~~~~~
0x6cef41 assign_temp(tree_node*, int, int)
        ../../gcc/function.c:970
0xb80dd3 initialize_argument_information
        ../../gcc/calls.c:1830
0xb818df expand_call(tree_node*, rtx_def*, int)
        ../../gcc/calls.c:3279
0xc8ea1d expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.c:10860
0xb957e0 expand_expr
        ../../gcc/expr.h:276
0xb957e0 expand_call_stmt
        ../../gcc/cfgexpand.c:2666
0xb957e0 expand_gimple_stmt_1
        ../../gcc/cfgexpand.c:3585
0xb957e0 expand_gimple_stmt
        ../../gcc/cfgexpand.c:3751
0xb96721 expand_gimple_basic_block
        ../../gcc/cfgexpand.c:5750
0xb9b12e execute
        ../../gcc/cfgexpand.c:6357
>From gcc-bugs-return-574613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 15:03:28 2017
Return-Path: <gcc-bugs-return-574613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103259 invoked by alias); 8 Sep 2017 15:03:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 99270 invoked by uid 48); 8 Sep 2017 15:03:24 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82146] if (&pdo) is always true error
Date: Fri, 08 Sep 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: 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: 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-82146-4-iiBv5OZhkt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82146-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00642.txt.bz2
Content-length: 173

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
https://isocpp.org/wiki/faq/references#refs-not-null
>From gcc-bugs-return-574615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 16:09:30 2017
Return-Path: <gcc-bugs-return-574615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9423 invoked by alias); 8 Sep 2017 16: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 9346 invoked by uid 48); 8 Sep 2017 16:09:25 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82143] add a -fdefault-real-16 flag
Date: Fri, 08 Sep 2017 16:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: 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-82143-4-VmqV2CaAaK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00644.txt.bz2
Content-length: 699

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> -fdefault-real-8 promotes some things that are REAL(4)
> to REAL(8), and if available it promotes some things from REAL(8) to
> REAL(16).

Not exactly: -fdefault-real-8 promotes some things that are REAL to REAL(8) and 
DOUBLE PRECISION to REAL(16). Variables with a KIND (say REAL(4) or REAL(8) are 
left unchanged. This is the difference with -freal-4-real-8 which converts all
the REAL* to REAL(8). The interest of -fdefault-real-8 compared to
-freal-4-real-8
is when you use libraries expecting REAL(4) arguments (my use a long time ago
was
with etime).
>From gcc-bugs-return-574616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 16:12:31 2017
Return-Path: <gcc-bugs-return-574616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85095 invoked by alias); 8 Sep 2017 16:12:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85051 invoked by uid 48); 8 Sep 2017 16:12:26 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Fri, 08 Sep 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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 cf_reconfirmed_on resolution everconfirmed
Message-ID: <bug-82141-4-SuIgCXIsLT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00645.txt.bz2
Content-length: 798

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
   Last reconfirmed|                            |2017-09-08
         Resolution|DUPLICATE                   |---
     Ever confirmed|0                           |1

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Only God really knows I presume...  You can try the latest iteration:
>  https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00045.html

I still get the same error with the above patch. So either the patch does not
work or, as I think, it is not a duplicate.
>From gcc-bugs-return-574617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 16:28:28 2017
Return-Path: <gcc-bugs-return-574617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7324 invoked by alias); 8 Sep 2017 16:28: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 7282 invoked by uid 48); 8 Sep 2017 16:28:25 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Fri, 08 Sep 2017 16:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82141-4-GCZPVyGCEU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00646.txt.bz2
Content-length: 653

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

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

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

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> I still get the same error with the above patch. So either the patch does
> not work or, as I think, it is not a duplicate.

<sigh> Of course it's the same issue, namely a Re_Not_Available exception
thrown by Rtsfind and not properly caught during the compilation of
g-exptty.adb...
>From gcc-bugs-return-574618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 16:35:40 2017
Return-Path: <gcc-bugs-return-574618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16332 invoked by alias); 8 Sep 2017 16:35:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14617 invoked by uid 48); 8 Sep 2017 16:35:35 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82149] New: match.pd: 2919: bad if test ?
Date: Fri, 08 Sep 2017 16: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82149-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00647.txt.bz2
Content-length: 878

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

            Bug ID: 82149
           Summary: match.pd: 2919: bad if test ?
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

As a result of a build with -Wlogical-op

generic-match.c:1358:77: warning: logical ‘or’ of collectively exhaustive tests
is always true [-Wlogical-op]

Source code is

       bool exception_p
         = real_isnan (cst) && (cst->signalling
                || (cmp != EQ_EXPR || cmp != NE_EXPR));

Maybe better code

       bool exception_p
         = real_isnan (cst) && (cst->signalling
                || (cmp != EQ_EXPR && cmp != NE_EXPR));
>From gcc-bugs-return-574619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 16:42:22 2017
Return-Path: <gcc-bugs-return-574619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22661 invoked by alias); 8 Sep 2017 16:42:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22611 invoked by uid 48); 8 Sep 2017 16:42:18 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82149] match.pd: 2919: bad if test ?
Date: Fri, 08 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82149-4-Gbv4wIdxyX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82149-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82149-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00648.txt.bz2
Content-length: 630

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

David Binderman <dcb314 at hotmail dot com> changed:

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
svn blame says this:

250877    ygribov        bool exception_p
250877    ygribov          = real_isnan (cst) && (cst->signalling
250877    ygribov               || (cmp != EQ_EXPR || cmp != NE_EXPR));

Perhaps Yury can offer some advice.
>From gcc-bugs-return-574620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 17:09:53 2017
Return-Path: <gcc-bugs-return-574620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40053 invoked by alias); 8 Sep 2017 17:09: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 39988 invoked by uid 55); 8 Sep 2017 17:09:49 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81988] [7/8 regression] invalid std instruction with odd register
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 7.2.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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81988-4-C7vcXlVXYZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81988-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81988-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00649.txt.bz2
Content-length: 585

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

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Fri Sep  8 17:09:16 2017
New Revision: 251904

URL: https://gcc.gnu.org/viewcvs?rev=251904&root=gcc&view=rev
Log:
        PR target/81988
        * config/sparc/sparc.md (mulsi3): Rename into *mulsi3_sp32.
        (*mulsi3_sp64): New instruction.
        (mulsi3): New expander.

Added:
    trunk/gcc/testsuite/gcc.dg/pr81988.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sparc/sparc.md
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 17:12:52 2017
Return-Path: <gcc-bugs-return-574621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42637 invoked by alias); 8 Sep 2017 17: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 42287 invoked by uid 55); 8 Sep 2017 17:12:48 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81988] [7/8 regression] invalid std instruction with odd register
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 7.2.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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81988-4-XEoFQIUGnP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81988-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81988-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00650.txt.bz2
Content-length: 725

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

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Fri Sep  8 17:12:15 2017
New Revision: 251905

URL: https://gcc.gnu.org/viewcvs?rev=251905&root=gcc&view=rev
Log:
        PR target/81988
        * config/sparc/sparc.md (mulsi3): Rename into *mulsi3_sp32.
        (*mulsi3_sp64): New instruction.
        (mulsi3): New expander.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr81988.c
      - copied unchanged from r251904, trunk/gcc/testsuite/gcc.dg/pr81988.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/sparc/sparc.md
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 17:13:37 2017
Return-Path: <gcc-bugs-return-574622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48497 invoked by alias); 8 Sep 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 48027 invoked by uid 48); 8 Sep 2017 17:13:34 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81988] [7/8 regression] invalid std instruction with odd register
Date: Fri, 08 Sep 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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81988-4-P32DXorpmB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81988-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81988-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00651.txt.bz2
Content-length: 428

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

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

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

--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
>From gcc-bugs-return-574623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 17:14:38 2017
Return-Path: <gcc-bugs-return-574623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49850 invoked by alias); 8 Sep 2017 17: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 49828 invoked by uid 48); 8 Sep 2017 17:14:34 -0000
From: "david.welch at netronome dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82150] New: Produces a branch prefetch which causes a hang
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: david.welch at netronome 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-82150-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00652.txt.bz2
Content-length: 3532

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

            Bug ID: 82150
           Summary: Produces a branch prefetch which causes a hang
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: david.welch at netronome dot com
  Target Milestone: ---

export TARGET=arm-none-eabi

../gcc-$GCCVER/configure --target=$TARGET --prefix=$PREFIX --without-headers
--with-newlib  --with-gnu-as --with-gnu-ld --enable-languages='c'

but we first found this on a 4.8.3, dont have a reason to assume it applies to
all versions.

take something like this

unsigned int more_fun ( unsigned int );
unsigned int fun ( void )
{
    return(more_fun(0x12344700)+1);
}

arm-none-eabi-gcc -mthumb -march=armv6 -O2 -c so.c -o so.o

00000000 <fun>:
   0:   b510            push    {r4, lr}
   2:   4802            ldr     r0, [pc, #8]    ; (c <fun+0xc>)
   4:   f7ff fffe       bl      0 <more_fun>
   8:   3001            adds    r0, #1
   a:   bd10            pop     {r4, pc}
   c:   12344700        eorsne  r4, r4, #0, 14

And there is the problem.

This is not limited to thumb mode

unsigned int more_fun ( unsigned int );
unsigned int fun ( void )
{
    return(more_fun(0xe12fff10)+1);
}

00000000 <fun>:
   0:   e92d4010        push    {r4, lr}
   4:   e59f0008        ldr     r0, [pc, #8]    ; 14 <fun+0x14>
   8:   ebfffffe        bl      0 <more_fun>
   c:   e2800001        add     r0, r0, #1
  10:   e8bd8010        pop     {r4, pc}
  14:   e12fff10        bx      r0

same problem.

Found on an arm11 mpcore but assume that the older arm11s and possibly even
armv7s have this issue, will see when I get there.

The core does not see pop pc as an unconditional branch it continues to process
the instructions in the pipe while the pop is finishing, it prefetches the
address in r0 in both of the above cases, because the DATA that follows the pop
happens to resemble an instruction, specifically bx but I wonder if other
instructions are a problem as well.  The prefetch reads the fetch line at
whatever address that register that happens to be encoded.  This can cause a
read of perpherals which are clear on read, or pull a byte out of a uart, or in
our case touch an address that doesnt answer on the axi bus and hang the
processor.

Now because the armv4t didnt support mode switching with a pop using
-march=armv4t produces code that doesnt cause the processor to fail.

00000000 <fun>:
   0:   b510            push    {r4, lr}
   2:   4803            ldr     r0, [pc, #12]   ; (10 <fun+0x10>)
   4:   f7ff fffe       bl      0 <more_fun>
   8:   3001            adds    r0, #1
   a:   bc10            pop     {r4}
   c:   bc02            pop     {r1}
   e:   4708            bx      r1
  10:   12344700        eorsne  r4, r4, #0, 14

I cant possibly be the first person to see this after all of these years 
(and although I cant think off hand of another instruction set where the pc is
also treated like a GPR, there are other targets that are affected), so I am
hoping there is already a command line switch other than downgrading wholesale
to armvt.  If not can we add a command line switch to avoid this problem?  I
would think a branch to self instruction following the pop would work or like
armv4t dont pop into the pc but in arm pop to lr and then bx lr or thumb as you
do in armv4t pop to r0-r3 and bx to that.
>From gcc-bugs-return-574624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 17:24:59 2017
Return-Path: <gcc-bugs-return-574624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69402 invoked by alias); 8 Sep 2017 17:24: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 68795 invoked by uid 48); 8 Sep 2017 17:24:53 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82151] New: Autovectorization for insertion is slower than done manually
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 8.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82151-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00653.txt.bz2
Content-length: 1129

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

            Bug ID: 82151
           Summary: Autovectorization for insertion is slower than done
                    manually
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64

Take:
void f(float *restrict a, float * restrict b, float * restrict c, int s)
{
  for(int i = 0; i< s;i++)
    {
      c[i*4] = a[i*2];
      c[i*4+1] = a[i*2+1];
      c[i*4+2] = b[i*2];
      c[i*4+3] = b[i*2+1];
    }
}

--- CUT ---
This currently vectorizes using 2xld2 followed by st4.  On some (most?)
micro-arch, not vecotrizing is better or vectorizing using 64bit (2xS):
ldr d0, [a, index]
ldr d1, [b, index]
stp d0, d1, [c, index]
is better.

Or even:
ldr d0, [a, index]
ldr d1, [b, index]
ins v0.2d[1], d1
sdr q0, [c, index]
is better than using ld2/st3.

That is just do SLP vectorization and not loop aware SLP here.
>From gcc-bugs-return-574625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 17:31:10 2017
Return-Path: <gcc-bugs-return-574625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74703 invoked by alias); 8 Sep 2017 17:31: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 74668 invoked by uid 48); 8 Sep 2017 17:31:06 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82150] Produces a branch prefetch which causes a hang
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 7.2.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-82150-4-caykJLaY2K@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82150-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82150-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00654.txt.bz2
Content-length: 296

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This sounds like an errata in the core you are using.  There seems like the
best way to fix this is via an option which worksaround this errata if there is
not one already.
>From gcc-bugs-return-574626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 17:34:01 2017
Return-Path: <gcc-bugs-return-574626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80537 invoked by alias); 8 Sep 2017 17:34: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 79659 invoked by uid 55); 8 Sep 2017 17:33:55 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82143] add a -fdefault-real-16 flag
Date: Fri, 08 Sep 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: 8.0
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-82143-4-af8k77fpQ1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00655.txt.bz2
Content-length: 2091

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

--- Comment #6 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Fri, Sep 08, 2017 at 04:09:24PM +0000, dominiq at lps dot ens.fr wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82143
> 
> --- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> > -fdefault-real-8 promotes some things that are REAL(4)
> > to REAL(8), and if available it promotes some things from REAL(8) to
> > REAL(16).
> 
> Not exactly: -fdefault-real-8 promotes some things that are REAL
> to REAL(8) and DOUBLE PRECISION to REAL(16). Variables with a
> KIND (say REAL(4) or REAL(8) are left unchanged.

Which is what I said as in "some things" are promoted.  REAL and
REAL(4) are the exact same type unless one use a broken-by-design
compiler option that maps REAL to DOUBLE PRECISION while leaving REAL(4)
unchanged or one has a myoptic view of Fortran's type system.

> This is the difference with -freal-4-real-8 which converts all
> the REAL* to REAL(8). The interest of -fdefault-real-8 compared to
> -freal-4-real-8 is when you use libraries expecting REAL(4)
> arguments (my use a long time ago was with etime).

This, in fact, is a great example of why -fdefault-real-8 should
never be used.  The proper method of porting a code/library is to
inspect and write the necessary intrinsic procedures.  For this
case, etime is a (nonstandard) specific intrinsic subprogram for
REAL and by extension REAL(4) (unless one uses a broken-by-design
option that maps REAL to DOUBLE PRECISION while leaving REAL(4)
unchanged) and dtime is for DOUBLE PRECISION.  etime is not a generic
subprogram.  Blindly using -fdefault-real-8 and expecting things
to just work is a sure fire way of shooting oneself in the foot.

One also needs to keep in mind that (old crusty) codes/libraries can
contain code that intermixes REAL, REAL*4, and REAL(4).  These
types of libraries sometimes/typically use COMMON and EQUIVALENCE.
-fdefault-real-8 may not (or more likely does not) preserve storage
associate while -freal-4-real-8 does.
>From gcc-bugs-return-574628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 17:44:30 2017
Return-Path: <gcc-bugs-return-574628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100550 invoked by alias); 8 Sep 2017 17:44: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 100498 invoked by uid 48); 8 Sep 2017 17:44:25 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53215] Warn if orphaned memory is created by ignoring return value of new
Date: Fri, 08 Sep 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: unknown
X-Bugzilla-Keywords: diagnostic
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-53215-4-BHp8402ql9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53215-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53215-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00657.txt.bz2
Content-length: 202

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Is it worth warning? Is this something that people get wrong often? I doubt it.
>From gcc-bugs-return-574627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 17:44:07 2017
Return-Path: <gcc-bugs-return-574627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99732 invoked by alias); 8 Sep 2017 17: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 99711 invoked by uid 48); 8 Sep 2017 17:44:02 -0000
From: "david.welch at netronome dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82150] Produces a branch prefetch which causes a hang
Date: Fri, 08 Sep 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: target
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: david.welch at netronome 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-82150-4-ciA5o2nsBY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82150-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82150-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00656.txt.bz2
Content-length: 489

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

--- Comment #2 from david.welch at netronome dot com ---
ARM does not have an errata on this for this core from what I was given.  Dont
know why they would, at best it would fall into the "unpredictable results"
category.  Errata or not was hoping there could be an option if not one
already.  the armv4t one is an option but affects more than just this one thing
I would assume but dont know gcc internals, so to big of a hammer.
>From gcc-bugs-return-574629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 18:08:15 2017
Return-Path: <gcc-bugs-return-574629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24680 invoked by alias); 8 Sep 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 24638 invoked by uid 48); 8 Sep 2017 18:08:10 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81852] Feature request: __cpp_threadsafe_static_init
Date: Fri, 08 Sep 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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
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 assigned_to
Message-ID: <bug-81852-4-FUdQEcfyeR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00658.txt.bz2
Content-length: 378

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
>From gcc-bugs-return-574630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 18:15:50 2017
Return-Path: <gcc-bugs-return-574630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82414 invoked by alias); 8 Sep 2017 18:15:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82330 invoked by uid 48); 8 Sep 2017 18:15:44 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/68860] [6/7/8 regression] FAIL: gcc.dg/guality/pr36728-1.c   -flto -O3 -g  line 16/7 arg1 == 1
Date: Fri, 08 Sep 2017 18:15: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.0
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje 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: cc
Message-ID: <bug-68860-4-tcztHuLgHA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68860-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68860-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00659.txt.bz2
Content-length: 705

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

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

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

--- Comment #19 from Steve Ellcey <sje at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #18)
> Deferring till we have early LTO debug info in.

Is early LTO debug info in now?  The comments in ChangeLog make me think
it is.  I looked at the gcc6-pr68860-lto.patch file but it does not apply
to the ToT sources.  I still see most of the guality tests failing with -flto
on aarch64.
>From gcc-bugs-return-574631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 20:06:21 2017
Return-Path: <gcc-bugs-return-574631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42744 invoked by alias); 8 Sep 2017 20:06: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 42666 invoked by uid 48); 8 Sep 2017 20:06:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81852] Feature request: __cpp_threadsafe_static_init
Date: Fri, 08 Sep 2017 20:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: enhancement
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: keywords
Message-ID: <bug-81852-4-8Axk5UArg0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00660.txt.bz2
Content-length: 417

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

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

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00507.html
>From gcc-bugs-return-574632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 20:16:35 2017
Return-Path: <gcc-bugs-return-574632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63305 invoked by alias); 8 Sep 2017 20: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 63248 invoked by uid 48); 8 Sep 2017 20:16:32 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81800] [8 regression] on aarch64 ilp32 lrint should not be inlined as two instructions
Date: Fri, 08 Sep 2017 20:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-81800-4-4ZgOVKNO4t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00661.txt.bz2
Content-length: 292

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-574634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 20:48:51 2017
Return-Path: <gcc-bugs-return-574634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91288 invoked by alias); 8 Sep 2017 20: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 89599 invoked by uid 48); 8 Sep 2017 20:48:47 -0000
From: "arjan at linux dot intel.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82153] New: missed optimization: double rounding
Date: Fri, 08 Sep 2017 20:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arjan at linux dot intel.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-82153-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00663.txt.bz2
Content-length: 932

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

            Bug ID: 82153
           Summary: missed optimization: double rounding
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arjan at linux dot intel.com
  Target Milestone: ---

#include <math.h>

int roundme(double A)
{
        return floor(A * 4.3);
}

leads to

0000000000000000 <roundme>:
   0:   f2 0f 59 05 00 00 00    mulsd  0x0(%rip),%xmm0        # 8 <roundme+0x8>
   7:   00
   8:   66 0f 3a 0b c0 09       roundsd $0x9,%xmm0,%xmm0
   e:   f2 0f 2c c0             cvttsd2si %xmm0,%eax
  12:   c3                      retq

both roundsd $0x9 and cvttsd2si truncate (floor) their argument, so gcc is
doing redundant work here; roundsd is +/- 8 cycles which is not cheap.
>From gcc-bugs-return-574633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 20:48:46 2017
Return-Path: <gcc-bugs-return-574633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88720 invoked by alias); 8 Sep 2017 20:48:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 79207 invoked by uid 48); 8 Sep 2017 20:48:40 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/82144] [8 Regression] ICE in add_dwarf_attr with alignas
Date: Fri, 08 Sep 2017 20:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.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 component short_desc everconfirmed
Message-ID: <bug-82144-4-gGyoLAdbPm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82144-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82144-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00662.txt.bz2
Content-length: 932

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-08
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
          Component|c++                         |debug
            Summary|ice in add_dwarf_attr with  |[8 Regression] ICE in
                   |alignas                     |add_dwarf_attr with alignas
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r251448.
>From gcc-bugs-return-574635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 21:09:44 2017
Return-Path: <gcc-bugs-return-574635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115207 invoked by alias); 8 Sep 2017 21:09: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 114794 invoked by uid 48); 8 Sep 2017 21:09:39 -0000
From: "mateuszb at poczta dot onet.pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82154] New: ICE in fold_binary_loc, at fold-const.c:9088 in 32-bit mingw32
Date: Fri, 08 Sep 2017 21:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mateuszb at poczta dot onet.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
Message-ID: <bug-82154-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00664.txt.bz2
Content-length: 3431

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

            Bug ID: 82154
           Summary: ICE in fold_binary_loc, at fold-const.c:9088 in 32-bit
                    mingw32
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mateuszb at poczta dot onet.pl
  Target Milestone: ---

When I compile 32-bit cross compiler GCC 8.0 [r251909] in 64-bit Ubuntu 16.04
for mingw32 there is an error (64-bit GCC 8.0 works OK, problem only with
32-bit):

libtool: compile:  /home/ma/m/build/bc_gcc/./gcc/xgcc -shared-libgcc
-B/home/ma/m/build/bc_gcc/./gcc -nostdinc++
-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src
-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src/.libs
-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/libsupc++/.libs
-L/home/ma/m/cross/i686-w64-mingw32/lib -L/home/ma/m/cross/mingw/lib -isystem
/home/ma/m/cross/i686-w64-mingw32/include -isystem
/home/ma/m/cross/mingw/include -B/home/ma/m/cross/i686-w64-mingw32/bin/
-B/home/ma/m/cross/i686-w64-mingw32/lib/ -isystem
/home/ma/m/cross/i686-w64-mingw32/include -isystem
/home/ma/m/cross/i686-w64-mingw32/sys-include
-I/home/ma/m/source/gcc-8/libstdc++-v3/../libgcc
-I/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/i686-w64-mingw32
-I/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include
-I/home/ma/m/source/gcc-8/libstdc++-v3/libsupc++ -std=gnu++98
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=bitmap_allocator.lo -g -O2 -c
/home/ma/m/source/gcc-8/libstdc++-v3/src/c++98/bitmap_allocator.cc -o
bitmap_allocator.o
during RTL pass: expand
In file included from
/home/ma/m/source/gcc-8/libstdc++-v3/src/c++98/bitmap_allocator.cc:25:0:
/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/ext/bitmap_allocator.h:
In member function 'void
__gnu_cxx::bitmap_allocator<_Tp>::_M_deallocate_single_object(__gnu_cxx::bitmap_allocator<_Tp>::pointer)
[with _Tp = char]':
/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/ext/bitmap_allocator.h:996:7:
internal compiler error: in fold_binary_loc, at fold-const.c:9088
       }
       ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Makefile:565: recipe for target 'bitmap_allocator.lo' failed
make[5]: *** [bitmap_allocator.lo] Error 1
make[5]: Leaving directory
'/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src/c++98'
Makefile:641: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
'/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src'
Makefile:510: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
'/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3'
Makefile:417: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory
'/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3'
Makefile:10894: recipe for target 'all-target-libstdc++-v3' failed
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory '/home/ma/m/build/bc_gcc'
Makefile:903: recipe for target 'all' failed
make: *** [all] Error 2
>From gcc-bugs-return-574637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 21:10:17 2017
Return-Path: <gcc-bugs-return-574637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116304 invoked by alias); 8 Sep 2017 21:10: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 116209 invoked by uid 48); 8 Sep 2017 21:10:14 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/64139] [4.9/5 Regression] ice in possible_polymorphic_call_targets, at ipa-devirt.c:2410
Date: Fri, 08 Sep 2017 21:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-64139-4-9CatsBpQ5m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64139-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64139-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00666.txt.bz2
Content-length: 457

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jupitercuso4 at gmail dot com

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 82067 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-574636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 21:10:17 2017
Return-Path: <gcc-bugs-return-574636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116295 invoked by alias); 8 Sep 2017 21:10: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 116193 invoked by uid 48); 8 Sep 2017 21:10:13 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82067] G++ has an internal compiler error in possible_polymorphic_call_targets, at ipa-devirt.c:1557
Date: Fri, 08 Sep 2017 21:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.4
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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-82067-4-Evcrmgm7mP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82067-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82067-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00665.txt.bz2
Content-length: 538

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

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

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

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Thanks, it's a duplicate, resolved in GCC 5+.

*** This bug has been marked as a duplicate of bug 64139 ***
>From gcc-bugs-return-574638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 21:51:50 2017
Return-Path: <gcc-bugs-return-574638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8455 invoked by alias); 8 Sep 2017 21:51: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 3583 invoked by uid 48); 8 Sep 2017 21:51:45 -0000
From: "slyfox at inbox dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/82155] New: gcc-8 ICE in dwarf2out_abstract_function, at dwarf2out.c:21655
Date: Fri, 08 Sep 2017 21:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: slyfox at inbox dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82155-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00667.txt.bz2
Content-length: 1533

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

            Bug ID: 82155
           Summary: gcc-8 ICE in dwarf2out_abstract_function, at
                    dwarf2out.c:21655
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at inbox dot ru
  Target Milestone: ---

The crash is extracted from ceph-10.2.9.
[1] is the minimal reproducer (a bit big as I did not clean it after
'creduce'):

Crashes on both gcc-7.2.0 anf gcc-master (x86_64-pc-linux-gnu)

$ LANG=C g++ -O2 -g -c -o ECBackend.o ECBackend.ii
    ECBackend.ii: In member function 'virtual void m::m()::n::k(int)':
    ECBackend.ii:23:12: internal compiler error: in force_type_die, at
dwarf2out.c:25099
           void k(int) {}
                ^
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <https://bugs.gentoo.org/> for instructions.

// [1] : reproducer

template <typename a> struct b { a c; };
template <typename d> struct e { d *operator->(); };
template <typename d> class h {
public:
  typedef e<d> ag;
};
class i {
protected:
  i(int);
};
class j {
  virtual void k(int) = 0;

public:
  int f;
  void l() { k(f); }
};
struct m : i {
  int cn;
  m() : i(cn) {
    struct n : j {
      n() {}
      void k(int) {}
    };
  }
};
struct o {
  o() {
    for (h<b<b<j *>>>::ag g;;)
      g->c.c->l();
  }
};
void fn1() { o(); }
>From gcc-bugs-return-574639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 21:54:35 2017
Return-Path: <gcc-bugs-return-574639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43455 invoked by alias); 8 Sep 2017 21:54: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 38027 invoked by uid 48); 8 Sep 2017 21:54:31 -0000
From: "slyfox at inbox dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/82155] gcc-8 ICE in dwarf2out_abstract_function, at dwarf2out.c:21655
Date: Fri, 08 Sep 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: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: slyfox at inbox dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82155-4-eQoxOtAc3V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82155-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82155-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00668.txt.bz2
Content-length: 275

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

--- Comment #1 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Created attachment 42143
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42143&action=edit
ECBackend.ii

Attaching original reproducer as well.
>From gcc-bugs-return-574640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 21:57:29 2017
Return-Path: <gcc-bugs-return-574640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63537 invoked by alias); 8 Sep 2017 21:57:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61355 invoked by uid 48); 8 Sep 2017 21:57:25 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80556] [8 Regression] bootstrap failure for Ada compiler
Date: Fri, 08 Sep 2017 21:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: dominiq at lps dot ens.fr
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80556-4-WKbj0qfliw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80556-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80556-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00669.txt.bz2
Content-length: 465

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

--- Comment #47 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
This PR is "fixed" by applying the patch at
  https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00045.html
on top of revision r251529. However it does not fix pr82141.

> I posted my darwin.h patch at
> https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00045.html
> on 1 September - hasn’t attracted any notice yet.

May be PING for it.
>From gcc-bugs-return-574641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 22:01:23 2017
Return-Path: <gcc-bugs-return-574641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18639 invoked by alias); 8 Sep 2017 22:01:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12193 invoked by uid 48); 8 Sep 2017 22:01:18 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Fri, 08 Sep 2017 22:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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:
Message-ID: <bug-82141-4-kWsj02cDGk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00670.txt.bz2
Content-length: 506

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

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> <sigh> Of course it's the same issue, namely a Re_Not_Available exception
> thrown by Rtsfind and not properly caught during the compilation of
> g-exptty.adb...

The exception handling on darwin is indeed the same as in linux, but does it
mean that all its mishandling leads to duplicate?

IMO if a PR is fixed by a patch, but a related one is not, they cannot be
duplicates.
>From gcc-bugs-return-574642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 22:24:41 2017
Return-Path: <gcc-bugs-return-574642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22145 invoked by alias); 8 Sep 2017 22:24:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16466 invoked by uid 55); 8 Sep 2017 22:24:37 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82153] missed optimization: double rounding
Date: Fri, 08 Sep 2017 22:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery 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-82153-4-LpomnLCC3X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82153-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82153-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00671.txt.bz2
Content-length: 712

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

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
floor rounds towards -inf.  Conversion to int rounds towards 0.  That is, 
it wouldn't be valid to omit the roundsd because results would be 
different for integer arguments.  That said, if you replace floor by 
trunc, the optimization should be valid (given the default 
-ffp-int-builtin-inexact, anyway, or -fno-trapping-math; as I understand 
it, cvttsd2si raises "inexact" for noninteger arguments, whereas with 
-fno-fp-int-builtin-inexact, trunc isn't allowed to and neither is a 
conversion of an integer floating-point value to an integer type).
>From gcc-bugs-return-574643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 22:33:42 2017
Return-Path: <gcc-bugs-return-574643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128107 invoked by alias); 8 Sep 2017 22:33: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 122621 invoked by uid 48); 8 Sep 2017 22:33:37 -0000
From: "arjan at linux dot intel.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82153] missed optimization: double rounding
Date: Fri, 08 Sep 2017 22: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arjan at linux dot intel.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-82153-4-L2GiUifGpw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82153-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82153-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00672.txt.bz2
Content-length: 607

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

--- Comment #2 from Arjan van de Ven <arjan at linux dot intel.com> ---
When a conversion is inexact, a truncated result is returned. If a converted
result is larger than the maximum signed doubleword integer, the floating-point
invalid exception is raised, and if this exception is masked, the indefinite
integer value (80000000H) is returned.

no exception on truncation...

   8:   66 0f 3a 0b c0 0b       roundsd $0xb,%xmm0,%xmm0
   e:   f2 0f 2c c0             cvttsd2si %xmm0,%eax

is what is generated for tunc() (same code otherwise as above)
>From gcc-bugs-return-574644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 22:39:54 2017
Return-Path: <gcc-bugs-return-574644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58102 invoked by alias); 8 Sep 2017 22:39: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 52523 invoked by uid 55); 8 Sep 2017 22:39:50 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70029] [8 Regression] ICE with C++11 and -flto
Date: Fri, 08 Sep 2017 22: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.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code, lto
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70029-4-5GKalsiVC1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00673.txt.bz2
Content-length: 1151

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

--- Comment #15 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Sep  8 22:39:17 2017
New Revision: 251911

URL: https://gcc.gnu.org/viewcvs?rev=251911&root=gcc&view=rev
Log:
        PR c++/70029 - ICE with ref-qualifier and -flto
gcc/
        * langhooks.h (struct lang_hooks_for_types): Add
        copy_lang_qualifiers.
        * attribs.c (build_type_attribute_qual_variant): Use it.
        * langhooks-def.h (LANG_HOOKS_COPY_LANG_QUALIFIERS): Default to
        NULL.
        (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
        * tree.c (verify_type): Re-enable TYPE_CANONICAL main variant check.
gcc/cp/
        * tree.c (cxx_copy_lang_qualifiers): New.
        * cp-tree.h: Declare it.
        * cp-objcp-common.h: Define LANG_HOOKS_COPY_LANG_QUALIFIERS.

Added:
    trunk/gcc/testsuite/g++.dg/lto/pr70029_0.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/attribs.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-objcp-common.h
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/tree.c
    trunk/gcc/langhooks-def.h
    trunk/gcc/langhooks.h
    trunk/gcc/tree.c
>From gcc-bugs-return-574645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 23:08:18 2017
Return-Path: <gcc-bugs-return-574645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17651 invoked by alias); 8 Sep 2017 23: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 11583 invoked by uid 55); 8 Sep 2017 23:08:13 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82153] missed optimization: double rounding
Date: Fri, 08 Sep 2017 23: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery 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-82153-4-PVTdh2WMwS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82153-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82153-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00674.txt.bz2
Content-length: 1276

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

--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Fri, 8 Sep 2017, arjan at linux dot intel.com wrote:

> When a conversion is inexact, a truncated result is returned. If a converted
> result is larger than the maximum signed doubleword integer, the floating-point
> invalid exception is raised, and if this exception is masked, the indefinite
> integer value (80000000H) is returned.

What manual is that from?

I'm looking at the "Intel® 64 and IA-32 Architectures Software Developer’s 
Manual Combined Volumes: 1, 2A, 2B, 2C, 2D, 3A, 3B, 3C, 3D and 4" (Order 
Number: 325462-063US, July 2017).  Which clearly has problems here because 
it has the "When a conversion is inexact, the value returned is rounded 
according to the rounding control bits in the MXCSR register." text for 
CVTTSD2SI (page 848 of the PDF) despite the description as "Convert with 
Truncation Scalar Double-Precision Floating-Point Value to Signed 
Integer".  But under "SIMD Floating-Point Exceptions" it lists "Invalid, 
Precision".  And in my experiment, CVTTSD2SI does indeed generate 
"inexact" for a conversion from non-integer floating point to integer.
>From gcc-bugs-return-574646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 23:28:06 2017
Return-Path: <gcc-bugs-return-574646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45744 invoked by alias); 8 Sep 2017 23:28: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 43991 invoked by uid 48); 8 Sep 2017 23:28:01 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Fri, 08 Sep 2017 23:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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:
Message-ID: <bug-82141-4-sA6KpV97kl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00675.txt.bz2
Content-length: 212

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

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
r251754 is also OK. Most of the changes between r251754 and r251817 come from
Ada.
>From gcc-bugs-return-574647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 08 23:42:52 2017
Return-Path: <gcc-bugs-return-574647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90985 invoked by alias); 8 Sep 2017 23:42: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 85252 invoked by uid 48); 8 Sep 2017 23:42:48 -0000
From: "ldionne.2 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82156] New: [7/8 regression] Atomic is_lock_free is not true for 16 byte type
Date: Fri, 08 Sep 2017 23:42: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ldionne.2 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-82156-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00676.txt.bz2
Content-length: 1352

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

            Bug ID: 82156
           Summary: [7/8 regression] Atomic is_lock_free is not true for
                    16 byte type
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ldionne.2 at gmail dot com
  Target Milestone: ---

The following code prints true on GCC 4.x, 5.x and 6.x, but not on GCC 7.x and
trunk:

    #include <atomic>
    #include <iostream>
    #include <type_traits>


    using T = std::aligned_storage_t<16>; // just a 16 bytes type
    std::atomic<T> atomic;

    int main() {
      std::cout << std::boolalpha << atomic.is_lock_free() << std::endl;
      std::cout << std::boolalpha << std::atomic<T>::is_always_lock_free <<
std::endl;
    }

I'd like to know whether this is a regression, or me misunderstanding the
meaning of `is_lock_free()`.

Live examples:
GCC 4.9 (true): https://wandbox.org/permlink/gg0HoiAofJXXxHzh
GCC 5 (true):   https://wandbox.org/permlink/vofEUemsQSpIROOR
GCC 6 (true):   https://wandbox.org/permlink/jH8spWex3KDKVT0a
GCC 7 (false):  https://wandbox.org/permlink/M1SG1B6StNtBjlxH
GCC 8 (false):  https://wandbox.org/permlink/4vmBcSph2Pvy4tye

Thanks!
>From gcc-bugs-return-574648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 01:28:50 2017
Return-Path: <gcc-bugs-return-574648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20928 invoked by alias); 9 Sep 2017 01:28: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 20895 invoked by uid 48); 9 Sep 2017 01:28:46 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/67458] x86: atomic store with memory_order_release doesn't order other stores
Date: Sat, 09 Sep 2017 01:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
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-67458-4-4w50mb1gQp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67458-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00677.txt.bz2
Content-length: 1340

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

--- Comment #5 from Peter Cordes <peter at cordes dot ca> ---
> optabs: ensure atomic_load/stores have compiler barriers

Thanks for taking a look at this report.  But I think it's not necessary to
have a full 2-way barrier.  If there's a lighter-weight way to get the
behaviour we want, that would be better.

(In reply to Peter Cordes from comment #0)
> void set(void) {
>   b = 2;
>   a.store(1, memory_order_release);
>   b = 3;
> }

Looking at this again with a couple years more understanding of atomics,
probably gcc could optimize to 

  b = 3;
  a.store();

because a release-store is only a *1-way barrier*.  (Unlike
atomic_signal_fence() or atomic_thread_fence(). 
http://preshing.com/20131125/acquire-and-release-fences-dont-work-the-way-youd-expect/).


I think even the original behaviour (a.store(); b=3;)  might actually have been
technically legal C++11, because you couldn't observe the reordering without
invoking UB.

A thread that does an a.load(mo_acquire) will still cause C++11 UB if it reads
b, because b isn't atomic but there's a data race because it was written after
the release operation that we synchronize-with.

Thus, no other thread is allowed to look at  b  any time after this thread ran
set(), until another synchronizes-with.
>From gcc-bugs-return-574649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 01:37:16 2017
Return-Path: <gcc-bugs-return-574649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75169 invoked by alias); 9 Sep 2017 01:37: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 68740 invoked by uid 48); 9 Sep 2017 01:37:12 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82157] New: ICE on valid code at -O2 and -O3: cannot update SSA form
Date: Sat, 09 Sep 2017 01:37: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:
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-82157-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00678.txt.bz2
Content-length: 2252

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

            Bug ID: 82157
           Summary: ICE on valid code at -O2 and -O3: cannot update SSA
                    form
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170908 (experimental) [trunk revision 251906] (GCC)
$
$ gcctk -Os small.c; ./a.out
$ gcc-7.2.0 -O2 small.c; ./a.out
$
$ gcctk -O2 small.c
small.c: In function ‘ac’:
small.c:20:6: error: statement uses released SSA name:
 void ac ()
      ^~
# .MEM_25 = VDEF <.MEM_16>
j = 0;
The use of .MEM_16 should have been replaced
during GIMPLE pass: pre
small.c:20:6: internal compiler error: cannot update SSA form
0xd084e6 update_ssa(unsigned int)
        ../../gcc-source-trunk/gcc/tree-into-ssa.c:3301
0xe31579 execute
        ../../gcc-source-trunk/gcc/tree-ssa-pre.c:5108
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.
$


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


int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y,
z;

int aa ()
{ 
  w = f < 0 || e >> f;
  while (z)
    h = i && (r && p) | ((l = p) == c % d);
  k = v + 1 < a;
  t = -(j < 1) * q;
  return u;
}

int ab ()
{ 
  for (j = 0; 1; j = 5)
    if (!s)
      return d;
}

void ac ()
{ 
  char ad = aa ();
  ab ();
  if (x)
    { 
      for (m = 0; m < 3; m = a)
        { 
          y = a && b;
          if (g)
            break;
        }
      n = j;
    }
  o = j & ad;
}

int main ()
{ 
  ac ();
  return 0;
}
>From gcc-bugs-return-574650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 03:25:27 2017
Return-Path: <gcc-bugs-return-574650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28285 invoked by alias); 9 Sep 2017 03: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 28174 invoked by uid 48); 9 Sep 2017 03:25:11 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/71660] [5/6/7/8 regression] alignment of std::atomic<8 byte primitive type> (long long, double) is wrong on x86
Date: Sat, 09 Sep 2017 03: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.1.1
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
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-71660-4-4Jhwkv40RA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00679.txt.bz2
Content-length: 2152

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

--- Comment #13 from Peter Cordes <peter at cordes dot ca> ---
(In reply to Thiago Macieira from comment #12)
> Another problem is that we've now had a couple of years with this issue, so
> it's probably worse to make a change again.

A change to C++11 std::atomic?  Yeah, we definitely should not change it.  It's
using by far the most efficient solution for code that does any pure-store or
pure-load operations, and any change would break that.

It's also compatible with clang (at least as far as struct layout and how
whether or not 64-bit atomic objects are lock-free).

Also, it's interoperable with 64-bit std::atomic for shared-memory segments, if
you avoid struct layout differences for non-atomic 64-bit struct members.

If you want a struct with non-atomic members to match the layout of a struct
with atomic members, do something like

struct foo {
    char c;
    alignas(atomic<long long>) long long t;
};

And usually sort your struct members largest-first to reduce padding in the
first place.

Maybe there's some other case that makes it convenient for minimum alignment
(C11 _Alignof) atomic types to match _Alignof non-atomic types?  Note that
gcc's implementation of C++11/14 alignof doesn't match it's C11 _Alignof
behaviour.  g++ alignof gives you the "recommended" alignment, like
__alignof__, rather than the minimum where you will ever find a value of this
type.  See https://gcc.gnu.org/ml/gcc-patches/2013-12/msg00435.html and bug
52023 for the reasons behind changing C11 _Alignof but not C++14 alignof.  (On
reading the standard, I'm not sure I agree;  I think C++14 should be returning
4 for alignof(long long) with -m32 in the SysV ABI.)

IDK what Qt's assert is guarding against.  If you're specifically worried about
atomicity, checking that alignof(InStruct) == sizeof(long long) makes more
sense, because that's required on almost any architecture as a guaranteed way
to avoid cache-line splits.  (C/C++ don't have a simple way to express
"unaligned is fine except at cache line boundaries" like you get on Intel
specifically (not AMD)).
>From gcc-bugs-return-574651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 06:24:33 2017
Return-Path: <gcc-bugs-return-574651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120793 invoked by alias); 9 Sep 2017 06:24: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 120650 invoked by uid 48); 9 Sep 2017 06:24:28 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82158] New: _Noreturn functions that do return clobber caller's registers on ARM32 (but not other arches)
Date: Sat, 09 Sep 2017 06: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.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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: bug_id short_desc product version bug_file_loc bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82158-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00680.txt.bz2
Content-length: 2625

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

            Bug ID: 82158
           Summary: _Noreturn functions that do return clobber caller's
                    registers on ARM32 (but not other arches)
           Product: gcc
           Version: 7.1.0
               URL: https://godbolt.org/g/GhW4b8
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---
            Target: arm*-*-*

ARM32 clobbers a call-preserved register in a function which does actually
return.  (It was declared _Noreturn, but gcc chooses to make a function which
returns instead of crashing).

Not sure if this is a feature or bug (came up in
https://stackoverflow.com/a/45982153/224132).  Probably a bug, since saving
registers in a noreturn function is potentially useful for backtraces (and gcc
avoids tailcall with noreturn for that reason), even if exceptions are disabled
so stack-unwinding doesn't need them.  And this is only happening on ARM32, not
the others I looked at: ARM64, MIPS, MIPS64, PowerPC64, MSP430, x86 -m32, or
x86 -m64.  (But ARM's multi-operand-at-once POP is probably handled specially,
so that could explain the difference...)

Anyway, in a function declared noreturn which actually *does* return, ARM32
still does the optimization of clobbering "call-preserved" even though it also
generates code to return instead of just falling off the end of the function. 
This is C undefined behaviour so it's legal, but is this desirable?  gcc warns
about it (even without -Wall), but it's so likely to cause hard-to-debug
problems that I'd suggest erroring by default, or not doing the optimization.


// https://godbolt.org/g/GhW4b8 for gcc6.3, also tested locally with gcc7.1

void ext(void);

ATTRIBUTE
void foo(int *p, int y) {
    ext();
    *p = y;   // then use args that had to survive a call
}

On ARM32 with gcc7.1 -O3 -DATTRIBUTE=_Noreturn produces this:

7 : <source>:7:1: warning: 'noreturn' function does return

foo:
  @ Function supports interworking.
  @ Volatile: function does not return.               # This line not present
without _Noreturn
  @ args = 0, pretend = 0, frame = 0
  @ frame_needed = 0, uses_anonymous_args = 0
  push {r4, lr}
  mov r5, r1
  mov r4, r0
  bl ext
  str r5, [r4]
  pop {r4, lr}
  bx lr


With ATTRIBUTE= (empty), we get push/pop {r4, r5, r6, lr} and things are
otherwise the same.  See https://godbolt.org/g/hYnrrD for a diff.
>From gcc-bugs-return-574652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 06:27:56 2017
Return-Path: <gcc-bugs-return-574652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124871 invoked by alias); 9 Sep 2017 06:27: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 124839 invoked by uid 48); 9 Sep 2017 06:27:52 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82158] _Noreturn functions that do return clobber caller's registers on ARM32 (but not other arches)
Date: Sat, 09 Sep 2017 06: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.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes 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-82158-4-WmMCKx8BgV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82158-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82158-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00681.txt.bz2
Content-length: 220

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

--- Comment #1 from Peter Cordes <peter at cordes dot ca> ---
Related: bug 55747 describes why gcc keeps the `push {r4, lr}` in the _Noreturn
function: backtraces.
>From gcc-bugs-return-574653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 09:08:34 2017
Return-Path: <gcc-bugs-return-574653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130850 invoked by alias); 9 Sep 2017 09:08: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 130806 invoked by uid 48); 9 Sep 2017 09:08:29 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Sat, 09 Sep 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82141-4-pWRe3rHdzY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00682.txt.bz2
Content-length: 684

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

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

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

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> The exception handling on darwin is indeed the same as in linux, but does it
> mean that all its mishandling leads to duplicate?

The issue is what I described in my previous comment.  Into how many sub-issues
it must be split in order to be fully addressed is IMO rather uninteresting.
>From gcc-bugs-return-574654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 09:43:20 2017
Return-Path: <gcc-bugs-return-574654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24854 invoked by alias); 9 Sep 2017 09: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 24342 invoked by uid 55); 9 Sep 2017 09:43:15 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81926] [7 regression] go/parse.o differs between stage2 and stage3
Date: Sat, 09 Sep 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: bootstrap
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-W305IwScC1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81926-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81926-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00683.txt.bz2
Content-length: 548

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

--- Comment #31 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Sat Sep  9 09:42:39 2017
New Revision: 251922

URL: https://gcc.gnu.org/viewcvs?rev=251922&root=gcc&view=rev
Log:
        PR bootstrap/81926
        * cp-objcp-common.c (struct debug_type_hasher): New class.
        (debug_type_hash): New variable.
        (cp_get_debug_type): Associate the OFFSET_TYPEs with the types.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-objcp-common.c
>From gcc-bugs-return-574656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 09:44:33 2017
Return-Path: <gcc-bugs-return-574656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27427 invoked by alias); 9 Sep 2017 09:44: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 27376 invoked by uid 48); 9 Sep 2017 09:44:30 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81926] [7 regression] go/parse.o differs between stage2 and stage3
Date: Sat, 09 Sep 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: bootstrap
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81926-4-HZHMO6CCWo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81926-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81926-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00685.txt.bz2
Content-length: 429

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

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

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

--- Comment #33 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
>From gcc-bugs-return-574655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 09:44:15 2017
Return-Path: <gcc-bugs-return-574655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26629 invoked by alias); 9 Sep 2017 09:44: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 26563 invoked by uid 55); 9 Sep 2017 09:44:10 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81926] [7 regression] go/parse.o differs between stage2 and stage3
Date: Sat, 09 Sep 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: bootstrap
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-56kYcN974a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81926-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81926-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00684.txt.bz2
Content-length: 580

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

--- Comment #32 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Sat Sep  9 09:43:33 2017
New Revision: 251923

URL: https://gcc.gnu.org/viewcvs?rev=251923&root=gcc&view=rev
Log:
        PR bootstrap/81926
        * cp-objcp-common.c (struct debug_type_hasher): New class.
        (debug_type_hash): New variable.
        (cp_get_debug_type): Associate the OFFSET_TYPEs with the types.

Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/cp-objcp-common.c
>From gcc-bugs-return-574657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 11:05:17 2017
Return-Path: <gcc-bugs-return-574657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107892 invoked by alias); 9 Sep 2017 11: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 107842 invoked by uid 48); 9 Sep 2017 11:05:13 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82157] [8 Regression] ICE on valid code at -O2 and -O3: cannot update SSA form
Date: Sat, 09 Sep 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: tree-optimization
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-82157-4-yiVkOh7t7b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82157-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82157-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00686.txt.bz2
Content-length: 835

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-09
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|ICE on valid code at -O2    |[8 Regression] ICE on valid
                   |and -O3: cannot update SSA  |code at -O2 and -O3: cannot
                   |form                        |update SSA form
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r251798.
>From gcc-bugs-return-574658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 12:55:13 2017
Return-Path: <gcc-bugs-return-574658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115985 invoked by alias); 9 Sep 2017 12:55: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 113197 invoked by uid 48); 9 Sep 2017 12:55:08 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/45170] [F2003] allocatable character lengths
Date: Sat, 09 Sep 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: fortran
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus 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: 4.8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-45170-4-Mm1FtFPqMG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00687.txt.bz2
Content-length: 276

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0
>From gcc-bugs-return-574659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 13:20:55 2017
Return-Path: <gcc-bugs-return-574659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65043 invoked by alias); 9 Sep 2017 13:20: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 62786 invoked by uid 48); 9 Sep 2017 13:20:51 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70029] [8 Regression] ICE with C++11 and -flto
Date: Sat, 09 Sep 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: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code, lto
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-70029-4-wEVRj3Ncch@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00688.txt.bz2
Content-length: 424

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

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

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

--- Comment #16 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-574660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 13:33:33 2017
Return-Path: <gcc-bugs-return-574660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101052 invoked by alias); 9 Sep 2017 13:33: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 98991 invoked by uid 48); 9 Sep 2017 13:33:28 -0000
From: "heinzisoft at web dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82159] New: ICE: in assign_temp, at function.c:961
Date: Sat, 09 Sep 2017 13: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: heinzisoft 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
Message-ID: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00689.txt.bz2
Content-length: 1184

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

            Bug ID: 82159
           Summary: ICE: in assign_temp, at function.c:961
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: heinzisoft at web dot de
  Target Milestone: ---

Seeing the following error on GCC 6.3.0 and GCC 7.2.0, while it builds fine on
GCC 5 and on current Clang. OS is Ubuntu 17.10.

Steps to Repro:
-----------------

$ g++ test.cpp
test.cpp: In function ‘int main()’:
test.cpp:17:35: internal compiler error: in assign_temp, at function.c:961
   MyClass<0> taken = data.func<0>();
                                   ^
Please submit a full bug report,
with preprocessed source if appropriate.


Source file test.cpp:
-------------

#include <cstring>

template<size_t SIZE>
struct MyClass {
public:
  ~MyClass() {}

  template<size_t size> MyClass<size> func() {
    return MyClass<size>();
  }

  unsigned char data[SIZE];
};

int main() {
  MyClass<16> data;
  MyClass<0> taken = data.func<0>();
}
>From gcc-bugs-return-574661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 13:43:16 2017
Return-Path: <gcc-bugs-return-574661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82843 invoked by alias); 9 Sep 2017 13:43: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 80821 invoked by uid 48); 9 Sep 2017 13:43:10 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82160] New: [8 Regression] Mysterious testsuite failures
Date: Sat, 09 Sep 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82160-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00690.txt.bz2
Content-length: 1999

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

            Bug ID: 82160
           Summary: [8 Regression] Mysterious testsuite failures
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

On x86-64, bootstrap with -O3, r251917 gave

FAIL: ext/special_functions/hyperg/check_nan.cc (test for excess errors)
FAIL: ext/special_functions/hyperg/check_value.cc (test for excess errors)
FAIL: ext/stdio_sync_filebuf/char/12048-3.cc (test for excess errors)
FAIL: ext/stdio_sync_filebuf/char/12048-4.cc (test for excess errors)
FAIL: ext/stdio_sync_filebuf/char/35209.cc (test for excess errors)
FAIL: ext/stdio_sync_filebuf/wchar_t/12948-1.cc (test for excess errors)
FAIL: ext/stdio_sync_filebuf/wchar_t/12948-2.cc (test for excess errors)
FAIL: ext/stdio_sync_filebuf/wchar_t/12948-3.cc (test for excess errors)
FAIL: ext/stdio_sync_filebuf/wchar_t/12948-4.cc (test for excess errors)
FAIL: ext/stdio_sync_filebuf/wchar_t/1.cc (test for excess errors)
FAIL: ext/stdio_sync_filebuf/wchar_t/35209.cc (test for excess errors)
FAIL: ext/throw_allocator/check_allocate_max_size.cc (test for excess errors)
FAIL: ext/throw_allocator/check_deallocate_null.cc (test for excess errors)
FAIL: ext/throw_allocator/check_delete.cc (test for excess errors)
FAIL: ext/throw_allocator/check_new.cc (test for excess errors)
FAIL: ext/throw_allocator/deallocate_global.cc (test for excess errors)
FAIL: ext/throw_allocator/deallocate_local.cc (test for excess errors)
FAIL: gcc.target/i386/mpx/return-struct-6-ubv.c   -O1  (test for excess errors)
FAIL: gcc.target/i386/mpx/return-struct-6-ubv.c   -O2  (test for excess errors)
FAIL: gcc.target/i386/mpx/return-struct-6-ubv.c   -O3 -g  (test for excess
errors)

There were no compiler error messages.  GCC simply returns -1.
>From gcc-bugs-return-574662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 13:47:45 2017
Return-Path: <gcc-bugs-return-574662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80371 invoked by alias); 9 Sep 2017 13:47: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 74664 invoked by uid 48); 9 Sep 2017 13:47:41 -0000
From: "thiago at kde dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/71660] [5/6/7/8 regression] alignment of std::atomic<8 byte primitive type> (long long, double) is wrong on x86
Date: Sat, 09 Sep 2017 13: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: 6.1.1
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thiago at kde dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71660-4-QaSPh1cXP0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71660-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00691.txt.bz2
Content-length: 1311

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

--- Comment #14 from Thiago Macieira <thiago at kde dot org> ---
(In reply to Peter Cordes from comment #13)
> If you want a struct with non-atomic members to match the layout of a struct
> with atomic members, do something like
> 
> struct foo {
>     char c;
>     alignas(atomic<long long>) long long t;
> };
> 
[cut]
> IDK what Qt's assert is guarding against.  If you're specifically worried
> about atomicity, checking that alignof(InStruct) == sizeof(long long) makes
> more sense, because that's required on almost any architecture as a
> guaranteed way to avoid cache-line splits.  (C/C++ don't have a simple way
> to express "unaligned is fine except at cache line boundaries" like you get
> on Intel specifically (not AMD)).

It was trying to guard against exactly what you said above: that the alignment
of a QAtomicInteger<T> was exactly the same as the alignment of a plain T
inside a struct, so one could replace a previous plain member with an atomic
and keep binary compatibility. 

But it's clear now that atomic types may need extra alignment than the plain
types. In hindsight, the check is unnecessary and should be removed; people
should not expect to replace T with std::atomic<T> or QAtomicInteger<T> and
keep ABI.
>From gcc-bugs-return-574663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 13:57:13 2017
Return-Path: <gcc-bugs-return-574663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80984 invoked by alias); 9 Sep 2017 13:57: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 78883 invoked by uid 48); 9 Sep 2017 13:57:09 -0000
From: "heinzisoft at web dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82159] ICE: in assign_temp, at function.c:961
Date: Sat, 09 Sep 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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: heinzisoft 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:
Message-ID: <bug-82159-4-qwgu7Egetg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00692.txt.bz2
Content-length: 145

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

--- Comment #1 from heinzisoft at web dot de ---
Correction: OS is Ubuntu 17.04, not 17.10
>From gcc-bugs-return-574664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 14:33:02 2017
Return-Path: <gcc-bugs-return-574664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41710 invoked by alias); 9 Sep 2017 14:33: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 34725 invoked by uid 55); 9 Sep 2017 14:32:57 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81852] Feature request: __cpp_threadsafe_static_init
Date: Sat, 09 Sep 2017 14:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: enhancement
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-81852-4-Tpf0QKtm4o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00693.txt.bz2
Content-length: 1103

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Sep  9 14:32:25 2017
New Revision: 251939

URL: https://gcc.gnu.org/viewcvs?rev=251939&root=gcc&view=rev
Log:
PR c++/81852 define feature-test macro for -fthreadsafe-statics

gcc/c-family:

        PR c++/81852
        * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.

gcc/testsuite:

        PR c++/81852
        * g++.dg/cpp1y/feat-cxx11.C: Check __cpp_threadsafe_static_init.
        * g++.dg/cpp1y/feat-cxx14.C: Likewise.
        * g++.dg/cpp1y/feat-cxx98.C: Likewise.
        * g++.dg/cpp1y/feat-neg.C: Likewise.
        * g++.dg/cpp1z/feat-cxx1z.C: Likewise.

Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-cppbuiltin.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
    trunk/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
    trunk/gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C
    trunk/gcc/testsuite/g++.dg/cpp1y/feat-neg.C
    trunk/gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
>From gcc-bugs-return-574665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 14:48:35 2017
Return-Path: <gcc-bugs-return-574665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111416 invoked by alias); 9 Sep 2017 14:48: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 108730 invoked by uid 48); 9 Sep 2017 14:48:31 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81852] Feature request: __cpp_threadsafe_static_init
Date: Sat, 09 Sep 2017 14:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: daniel.kruegler at googlemail dot com
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-81852-4-OrHkyPiO6E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00694.txt.bz2
Content-length: 482

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

--- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Jonathan Wakely from comment #2)
>     trunk/gcc/testsuite/g++.dg/cpp1y/feat-neg.C

Thanks for your work on that Jonathan! Just out of curiosity: All tests within
feat-neg.C seem counter-intuitive to me, because it seems that the idea of that
test is that everything within is supposed to fail on success - is that
intended?
>From gcc-bugs-return-574666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 15:12:42 2017
Return-Path: <gcc-bugs-return-574666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5987 invoked by alias); 9 Sep 2017 15:12: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 130381 invoked by uid 48); 9 Sep 2017 15:12:38 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82149] match.pd: 2919: bad if test ?
Date: Sat, 09 Sep 2017 15:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-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-82149-4-TMEU9Y9tVy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82149-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82149-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00695.txt.bz2
Content-length: 709

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Seems legit. The fact that this doesn't trigger some failure in the testsuite
shows that there is no test testing this code.
>From gcc-bugs-return-574667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 15:42:49 2017
Return-Path: <gcc-bugs-return-574667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81131 invoked by alias); 9 Sep 2017 15:42: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 72883 invoked by uid 48); 9 Sep 2017 15:42:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82145] [8 regression] i386/pr38988.c, i386/pr46254.c, i386/pr55154.c, i386/pr81766.c fails
Date: Sat, 09 Sep 2017 15:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: 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: cc
Message-ID: <bug-82145-4-wHurX2zysB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00696.txt.bz2
Content-length: 3474

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

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> ---
Untested fix (to be tested and finalized after the weekend):
--- gcc/config/i386/i386.c.jj   2017-09-08 09:13:59.000000000 +0200
+++ gcc/config/i386/i386.c      2017-09-09 17:35:22.365269397 +0200
@@ -8885,7 +8885,7 @@ ix86_use_pseudo_pic_reg (void)

 /* Initialize large model PIC register.  */

-static rtx_code_label *
+static void
 ix86_init_large_pic_reg (unsigned int tmp_regno)
 {
   rtx_code_label *label;
@@ -8902,7 +8902,10 @@ ix86_init_large_pic_reg (unsigned int tm
   emit_insn (gen_set_got_offset_rex64 (tmp_reg, label));
   emit_insn (ix86_gen_add3 (pic_offset_table_rtx,
                            pic_offset_table_rtx, tmp_reg));
-  return label;
+  const char *name = LABEL_NAME (label);
+  PUT_CODE (label, NOTE);
+  NOTE_KIND (label) = NOTE_INSN_DELETED_LABEL;
+  NOTE_DELETED_LABEL_NAME (label) = name;
 }

 /* Create and initialize PIC register if required.  */
@@ -8911,7 +8914,6 @@ ix86_init_pic_reg (void)
 {
   edge entry_edge;
   rtx_insn *seq;
-  rtx_code_label *label = NULL;

   if (!ix86_use_pseudo_pic_reg ())
     return;
@@ -8921,7 +8923,7 @@ ix86_init_pic_reg (void)
   if (TARGET_64BIT)
     {
       if (ix86_cmodel == CM_LARGE_PIC)
-       label = ix86_init_large_pic_reg (R11_REG);
+       ix86_init_large_pic_reg (R11_REG);
       else
        emit_insn (gen_set_got_rex64 (pic_offset_table_rtx));
     }
@@ -8945,22 +8947,6 @@ ix86_init_pic_reg (void)
   entry_edge = single_succ_edge (ENTRY_BLOCK_PTR_FOR_FN (cfun));
   insert_insn_on_edge (seq, entry_edge);
   commit_one_edge_insertion (entry_edge);
-
-  if (label)
-    {
-      basic_block bb = BLOCK_FOR_INSN (label);
-      rtx_insn *bb_note = PREV_INSN (label);
-      /* If the note preceding the label starts a basic block, and the
-        label is a member of the same basic block, interchange the two.  */
-      if (bb_note != NULL_RTX
-         && NOTE_INSN_BASIC_BLOCK_P (bb_note)
-         && bb != NULL
-         && bb == BLOCK_FOR_INSN (bb_note))
-       {
-         reorder_insns_nobb (bb_note, bb_note, label);
-         BB_HEAD (bb) = label;
-       }
-    }
 }

 /* Initialize a variable CUM of type CUMULATIVE_ARGS
--- gcc/postreload.c.jj 2017-09-08 09:13:54.000000000 +0200
+++ gcc/postreload.c    2017-09-09 17:31:37.360493204 +0200
@@ -409,9 +409,12 @@ reload_cse_simplify_operands (rtx_insn *
       CLEAR_HARD_REG_SET (equiv_regs[i]);

       /* cselib blows up on CODE_LABELs.  Trying to fix that doesn't seem
-        right, so avoid the problem here.  Likewise if we have a constant
-         and the insn pattern doesn't tell us the mode we need.  */
+        right, so avoid the problem here.  Similarly NOTE_INSN_DELETED_LABEL.
+        Likewise if we have a constant and the insn pattern doesn't tell us
+        the mode we need.  */
       if (LABEL_P (recog_data.operand[i])
+         || (NOTE_P (recog_data.operand[i])
+             && NOTE_KIND (recog_data.operand[i]) == NOTE_INSN_DELETED_LABEL)
          || (CONSTANT_P (recog_data.operand[i])
              && recog_data.operand_mode[i] == VOIDmode))
        continue;
>From gcc-bugs-return-574668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 15:45:00 2017
Return-Path: <gcc-bugs-return-574668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65622 invoked by alias); 9 Sep 2017 15:45: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 60333 invoked by uid 48); 9 Sep 2017 15:44:57 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82161] New: Failure of a complicated initialization expression
Date: Sat, 09 Sep 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault 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-82161-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00697.txt.bz2
Content-length: 1918

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

            Bug ID: 82161
           Summary: Failure of a complicated initialization expression
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pault at gcc dot gnu.org
  Target Milestone: ---

As reported on
https://groups.google.com/forum/#!topic/comp.lang.fortran/yqT4TInGjC0 by James
Van Buskirk:

program data_var2
   implicit none
   integer, parameter :: IMAX = 2, JMAX = 3, NMAX = 4
   type mydata
      real var(NMAX)
   end type mydata
   integer i, j, n
   type(mydata), parameter :: data(IMAX, JMAX) = reshape( &
      [((mydata([(1.0e2*i+1.0e1*j+1.0e0*n,n=1,NMAX)]), &
      i=1,IMAX),j=1,JMAX)], [IMAX,JMAX])

end program data_var2

produces

[pault@pc30 pdt]$ ~/irun/bin/gfortran -static-libgfortran init.f90
-fdump-tree-original -g
init.f90:9:25:

       [((mydata([(1.0e2*i+1.0e1*j+1.0e0*n,n=1,NMAX)]), &
                         1
Error: Parameter ‘i’ at (1) has not been declared or is a variable, which does
not reduce to a constant expression


* On the other hand, this compiles fine:

program data_var2
   implicit none
   integer, parameter :: IMAX = 2, JMAX = 3, NMAX = 4
   type mydata
      real var(NMAX)
   end type mydata
   integer i, j, n
   type(mydata), parameter :: data(IMAX, JMAX) = reshape( &
      [((mydata([(1.0e0*n,n=1,NMAX)]), &
      i=1,IMAX),j=1,JMAX)], [IMAX,JMAX])

end program data_var2

In the original testcase, simplification is obviously thrown by having to deal
with both the array constructor, which  appears as an argument of the derived
type constructor, and the outer array constructor. In particular, 'i' and 'j'
are not being recognised as parameters.

Regards

Paul
>From gcc-bugs-return-574669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 15:45:39 2017
Return-Path: <gcc-bugs-return-574669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104519 invoked by alias); 9 Sep 2017 15:45: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 102454 invoked by uid 48); 9 Sep 2017 15:45:35 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82161] Failure of a complicated initialization expression
Date: Sat, 09 Sep 2017 15:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82161-4-MxkN3aUn4z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82161-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82161-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00698.txt.bz2
Content-length: 399

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-09
     Ever confirmed|0                           |1
>From gcc-bugs-return-574670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 16:12:09 2017
Return-Path: <gcc-bugs-return-574670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79881 invoked by alias); 9 Sep 2017 16:12: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 77644 invoked by uid 48); 9 Sep 2017 16:12:05 -0000
From: "gogol.logog at hotmail dot it" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82162] New: Internal compiler error in Raspbian
Date: Sat, 09 Sep 2017 16: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: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gogol.logog at hotmail 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-82162-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00699.txt.bz2
Content-length: 4324

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

            Bug ID: 82162
           Summary: Internal compiler error in Raspbian
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gogol.logog at hotmail dot it
  Target Milestone: ---

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

Compiling on Raspbain Jessie (Raspberry Pi 2) fails with "internal compiler
error: Segmentation fault". On a Debian 32bit works just fine, and also on Kali
64bit. 
gcc -v -save-temps all-your-options source-file:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10'
--with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm
--disable-libquadmath --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-4.9-armhf/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf
--with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6
--with-fpu=vfp --with-float=hard --enable-checking=release
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Raspbian 4.9.2-10) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-march=armv6' '-mfloat-abi=hard'
'-mfpu=vfp' '-mtls-dialect=gnu'
 /usr/lib/gcc/arm-linux-gnueabihf/4.9/cc1 -E -quiet -v -imultilib . -imultiarch
arm-linux-gnueabihf input_matrix.c -march=armv6 -mfloat-abi=hard -mfpu=vfp
-mtls-dialect=gnu -fpch-preprocess -o input_matrix.i
ignoring nonexistent directory "/usr/local/include/arm-linux-gnueabihf"
ignoring nonexistent directory
"/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/arm-linux-gnueabihf/4.9/include
 /usr/local/include
 /usr/lib/gcc/arm-linux-gnueabihf/4.9/include-fixed
 /usr/include/arm-linux-gnueabihf
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-march=armv6' '-mfloat-abi=hard'
'-mfpu=vfp' '-mtls-dialect=gnu'
 /usr/lib/gcc/arm-linux-gnueabihf/4.9/cc1 -fpreprocessed input_matrix.i -quiet
-dumpbase input_matrix.c -march=armv6 -mfloat-abi=hard -mfpu=vfp
-mtls-dialect=gnu -auxbase input_matrix -version -o input_matrix.s
GNU C (Raspbian 4.9.2-10) version 4.9.2 (arm-linux-gnueabihf)
        compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version
3.1.2-p3, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=96 --param ggc-min-heapsize=124279
GNU C (Raspbian 4.9.2-10) version 4.9.2 (arm-linux-gnueabihf)
        compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version
3.1.2-p3, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=96 --param ggc-min-heapsize=124279
Compiler executable checksum: 91c450f0e3805f97e63eb93bcfb4f682
In file included from useful.h:3:0,
                 from input_matrix.c:4:
useful.c: In function ‘chunked_fgets’:
useful.c:7:8: internal compiler error: Segmentation fault
 char** chunked_fgets(FILE *istream, char** buf) {
        ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccGPgdZs.out file, please attach this to
your bugreport.
>From gcc-bugs-return-574671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 17:43:46 2017
Return-Path: <gcc-bugs-return-574671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70424 invoked by alias); 9 Sep 2017 17:43:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 70377 invoked by uid 48); 9 Sep 2017 17:43:41 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82163] New: ICE on valid code at -O3 on x86_64-linux-gnu: in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:707
Date: Sat, 09 Sep 2017 17:43: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:
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-82163-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00700.txt.bz2
Content-length: 2633

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

            Bug ID: 82163
           Summary: ICE on valid code at -O3 on x86_64-linux-gnu: in
                    check_loop_closed_ssa_use, at
                    tree-ssa-loop-manip.c:707
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

It seems to be a recent regression from 7.2.*. 

$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170909 (experimental) [trunk revision 251923] (GCC)
$
$ gcctk -O2 small.c; ./a.out
$ gcc-7.2.0 -O3 small.c; ./a.out
$
$ gcctk -O3 small.c
during GIMPLE pass: pcom
small.c: In function ‘h’:
small.c:3:6: internal compiler error: in check_loop_closed_ssa_use, at
tree-ssa-loop-manip.c:707
 void h ()
      ^
0xdeba2d check_loop_closed_ssa_use
        ../../gcc-source-trunk/gcc/tree-ssa-loop-manip.c:706
0xdeea1d check_loop_closed_ssa_stmt
        ../../gcc-source-trunk/gcc/tree-ssa-loop-manip.c:722
0xdeea1d verify_loop_closed_ssa(bool)
        ../../gcc-source-trunk/gcc/tree-ssa-loop-manip.c:756
0xdf076b checking_verify_loop_closed_ssa
        ../../gcc-source-trunk/gcc/tree-ssa-loop-manip.h:37
0xdf076b tree_transform_and_unroll_loop(loop*, unsigned int, edge_def*,
tree_niter_desc*, void (*)(loop*, void*), void*)
        ../../gcc-source-trunk/gcc/tree-ssa-loop-manip.c:1408
0xd47d8a tree_predictive_commoning_loop
        ../../gcc-source-trunk/gcc/tree-predcom.c:3139
0xd47d8a tree_predictive_commoning()
        ../../gcc-source-trunk/gcc/tree-predcom.c:3172
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.
$


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


int a, b, c[4], d, e, f, g;

void h ()
{ 
  for (; a; a++)
    { 
      c[a + 3] = g;
      if (b)
        c[a] = f;
      else
        { 
          for (; d; d++)
            c[d + 3] = c[d];
          for (e = 1; e == 2; e++)
            ;
          if (e)
            break;
        }
    }
}

int main ()
{ 
  h ();
  return 0;
}
>From gcc-bugs-return-574672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 20:47:42 2017
Return-Path: <gcc-bugs-return-574672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121233 invoked by alias); 9 Sep 2017 20: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 121175 invoked by uid 48); 9 Sep 2017 20:47:37 -0000
From: "jan.kratochvil at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65132] diagnostics: missing: bitfield member cannot have an in-class initializer
Date: Sat, 09 Sep 2017 20:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jan.kratochvil at redhat 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: version
Message-ID: <bug-65132-4-4v6LnIuTU4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65132-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65132-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00701.txt.bz2
Content-length: 482

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|5.0                         |7.1.1

--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
gcc-7.1.1-3.fc26.x86_64
1.C:1:20: error: lvalue required as left operand of assignment

Still not useful.
>From gcc-bugs-return-574673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 20:50:31 2017
Return-Path: <gcc-bugs-return-574673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92160 invoked by alias); 9 Sep 2017 20:50:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92091 invoked by uid 48); 9 Sep 2017 20:50:26 -0000
From: "jan.kratochvil at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65188] improve error for member operator applied to non-class type
Date: Sat, 09 Sep 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: c++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jan.kratochvil at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-65188-4-abMlxCoEUf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65188-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65188-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00702.txt.bz2
Content-length: 611

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

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

--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
gcc-7.1.1-3.fc26.x86_64
1.C:2:23: error: invalid use of member function ‘void C::f()’ (did you forget
the ‘()’ ?)

It looks as fixed now.
>From gcc-bugs-return-574674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 20:52:50 2017
Return-Path: <gcc-bugs-return-574674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111904 invoked by alias); 9 Sep 2017 20: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 111848 invoked by uid 48); 9 Sep 2017 20:52:45 -0000
From: "jan.kratochvil at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/61940] Wrong error location for error in initialization list
Date: Sat, 09 Sep 2017 20: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.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jan.kratochvil 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-61940-4-F2A85vJIV7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61940-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00703.txt.bz2
Content-length: 169

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

--- Comment #8 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Still valid for: gcc-7.1.1-3.fc26.x86_64
>From gcc-bugs-return-574675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 21:04:28 2017
Return-Path: <gcc-bugs-return-574675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119286 invoked by alias); 9 Sep 2017 21:04:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 119248 invoked by uid 48); 9 Sep 2017 21:04:23 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81852] Feature request: __cpp_threadsafe_static_init
Date: Sat, 09 Sep 2017 21: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: 8.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: enhancement
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-81852-4-1NPZiM847A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00704.txt.bz2
Content-length: 408

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes. The dg-options directive disables the features, then the dg-error
directives check for the expected #error diagnostics.

This uses DejaGnu to check for the three specific expected results, rather than
just expecting compilation to pass/fail, which would only be a binary result.
>From gcc-bugs-return-574676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 21:25:54 2017
Return-Path: <gcc-bugs-return-574676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60960 invoked by alias); 9 Sep 2017 21:25:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 60899 invoked by uid 48); 9 Sep 2017 21:25:50 -0000
From: "erik.rainey at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/61414] enum class bitfield size-checking failure
Date: Sat, 09 Sep 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: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: erik.rainey at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-61414-4-ZuxImzN3EW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61414-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61414-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00705.txt.bz2
Content-length: 425

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

Erik Rainey <erik.rainey at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |erik.rainey at gmail dot com

--- Comment #11 from Erik Rainey <erik.rainey at gmail dot com> ---
Present in 5.4 through 7.2 at least.
>From gcc-bugs-return-574677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 22:50:27 2017
Return-Path: <gcc-bugs-return-574677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76665 invoked by alias); 9 Sep 2017 22:50: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 76610 invoked by uid 48); 9 Sep 2017 22:50:22 -0000
From: "chrisj at rtems dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/66032] RTEMS MIPS build fails on FreeBSD
Date: Sat, 09 Sep 2017 22:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 4.9.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: chrisj at rtems dot 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-66032-4-yQOt0De8nX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66032-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66032-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00706.txt.bz2
Content-length: 301

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

--- Comment #7 from Chris Johns <chrisj at rtems dot org> ---
Is this bug the same as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62097

As that bug states this issue is present on darwin and the patch I posted fixes
the issues on that host.
>From gcc-bugs-return-574678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 22:52:08 2017
Return-Path: <gcc-bugs-return-574678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79457 invoked by alias); 9 Sep 2017 22: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 78178 invoked by uid 48); 9 Sep 2017 22:52:03 -0000
From: "chrisj at rtems dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/62097] t-hardfp requires GNU sed
Date: Sat, 09 Sep 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: libgcc
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: chrisj at rtems 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-62097-4-k01TApe79I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62097-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62097-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00707.txt.bz2
Content-length: 298

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

--- Comment #11 from Chris Johns <chrisj at rtems dot org> ---
Bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66032 has a patch using awk
that lets the build complete without an error.

The problem is still present on FreeBSD and darwin.
>From gcc-bugs-return-574679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 22:55:29 2017
Return-Path: <gcc-bugs-return-574679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23021 invoked by alias); 9 Sep 2017 22:55:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22982 invoked by uid 55); 9 Sep 2017 22:55:25 -0000
From: "joel.sherrill at oarcorp dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/66032] RTEMS MIPS build fails on FreeBSD
Date: Sat, 09 Sep 2017 22:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 4.9.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joel.sherrill at oarcorp 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-66032-4-BfWs6dDp04@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66032-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66032-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00708.txt.bz2
Content-length: 580

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

--- Comment #8 from joel.sherrill at oarcorp dot com ---
Yes. I think they are exactly the same.

--joel
On Sep 9, 2017, at 5:50 PM, chrisj at rtems dot org
<gcc-bugzilla@gcc.gnu.org<mailto:gcc-bugzilla@gcc.gnu.org>> wrote:

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

--- Comment #7 from Chris Johns <chrisj at rtems dot org> ---
Is this bug the same as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62097

As that bug states this issue is present on darwin and the patch I posted fixes
the issues on that host.
>From gcc-bugs-return-574681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 23:06:56 2017
Return-Path: <gcc-bugs-return-574681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28498 invoked by alias); 9 Sep 2017 23:06:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28446 invoked by uid 48); 9 Sep 2017 23:06:52 -0000
From: "joel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/66032] RTEMS MIPS build fails on FreeBSD
Date: Sat, 09 Sep 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: libgcc
X-Bugzilla-Version: 4.9.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joel 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-66032-4-OdwQ3fVwDY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66032-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66032-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00710.txt.bz2
Content-length: 511

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

Joel Sherrill <joel at gcc dot gnu.org> changed:

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

--- Comment #9 from Joel Sherrill <joel at gcc dot gnu.org> ---
Yes. I believe it is the same bug. Use of GNU sed specifics on a system without
GNU sed.

I don't know if that changes the resolution.
>From gcc-bugs-return-574680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 23:06:10 2017
Return-Path: <gcc-bugs-return-574680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27670 invoked by alias); 9 Sep 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 27654 invoked by uid 48); 9 Sep 2017 23:06:06 -0000
From: "arjan at linux dot intel.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82153] missed optimization: double rounding
Date: Sat, 09 Sep 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: rtl-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arjan at linux dot intel.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-82153-4-cteHOUakuV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82153-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82153-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00709.txt.bz2
Content-length: 527

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

--- Comment #4 from Arjan van de Ven <arjan at linux dot intel.com> ---
btw gcc has no issue with just generating cvttsd2si


int roundme2(double A)
{
        return A * 4.3;
}

generates

 20:   f2 0f 59 05 00 00 00    mulsd  0x0(%rip),%xmm0        # 28
<roundme2+0x8>
  27:   00
  28:   f2 0f 2c c0             cvttsd2si %xmm0,%eax
  2c:   c3                      retq


so maybe the real missed optimization is a trunc() followed by
assign-to-integer as a general thing
>From gcc-bugs-return-574682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 23:33:32 2017
Return-Path: <gcc-bugs-return-574682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66271 invoked by alias); 9 Sep 2017 23:33: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 66208 invoked by uid 48); 9 Sep 2017 23:33:26 -0000
From: "chrisj at rtems dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/66032] RTEMS MIPS build fails on FreeBSD
Date: Sat, 09 Sep 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: libgcc
X-Bugzilla-Version: 4.9.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: chrisj at rtems dot 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-66032-4-4wrecLkU3I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66032-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66032-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00711.txt.bz2
Content-length: 671

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

--- Comment #10 from Chris Johns <chrisj at rtems dot org> ---
(In reply to Joel Sherrill from comment #9)
> Yes. I believe it is the same bug. Use of GNU sed specifics on a system
> without GNU sed.
> 
> I don't know if that changes the resolution.

For this bug that is true however the other bug is still open and so the issue
is not resolved so I hope there is a chance someone with a suitable level of
sed knowledge may take a look to see if the use can be made to be universal or
highlight a bug in BSD sed. I had a look but I could not determine if the issue
is in the sed expressions used or BSD sed.
>From gcc-bugs-return-574684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 23:42:58 2017
Return-Path: <gcc-bugs-return-574684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94568 invoked by alias); 9 Sep 2017 23:42: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 94490 invoked by uid 48); 9 Sep 2017 23:42:53 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82156] [7/8 regression] Atomic is_lock_free is not true for 16 byte type
Date: Sat, 09 Sep 2017 23:42:00 -0000
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.1.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-82156-4-uSJcR8uDYM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82156-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82156-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00713.txt.bz2
Content-length: 376

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

Second, the return of __atomic_always_lock_free and
__atomic_is_lock_free are changed to report false for the affected
accesses.  This aims at making users aware of the fact that they don't
get fast hardware-backed performance for the affected accesses.
>From gcc-bugs-return-574683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 09 23:42:27 2017
Return-Path: <gcc-bugs-return-574683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93747 invoked by alias); 9 Sep 2017 23:42: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 93712 invoked by uid 48); 9 Sep 2017 23:42:23 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82156] [7/8 regression] Atomic is_lock_free is not true for 16 byte type
Date: Sat, 09 Sep 2017 23:42:00 -0000
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.1.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: cf_gcctarget bug_status component resolution
Message-ID: <bug-82156-4-qoCVN0bHae@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82156-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82156-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00712.txt.bz2
Content-length: 604

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-pc-linux-gnu
             Status|UNCONFIRMED                 |RESOLVED
          Component|libstdc++                   |target
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/ml/gcc-patches/2017-01/msg02344.html
>From gcc-bugs-return-574685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 00:27:50 2017
Return-Path: <gcc-bugs-return-574685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45964 invoked by alias); 10 Sep 2017 00:27: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 45923 invoked by uid 48); 10 Sep 2017 00:27:44 -0000
From: "bique.alexandre at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82164] New: AddressSanitizer: stack-buffer-overflow while constructing std::regex
Date: Sun, 10 Sep 2017 00: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bique.alexandre 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-82164-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00714.txt.bz2
Content-length: 7109

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

            Bug ID: 82164
           Summary: AddressSanitizer: stack-buffer-overflow while
                    constructing std::regex
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bique.alexandre at gmail dot com
  Target Milestone: ---

Hi,

I'd like to report a bug regarding libstdc++ crashing in the regex engine:

Compiling this:

const std::regex kNewLineEscaped("(\\\\r\\\\n)|(\\\\n)|(\\\\r)");

const std::regex kNewLineRaw("[\n\r]+", std::regex::basic |
std::regex::optimize);

const std::regex kTabRaw("[\t]");

const std::regex kComma("[,]");

const std::regex kSlash("[/]");


Will generate the following error at runtime:


==6700==ERROR: AddressSanitizer: stack-buffer-overflow on address
0x7ffce71cd978 at pc 0x7f31c9b2402d bp 0x7ffce71cd890 sp
0x7ffce71cd880
WRITE of size 8 at 0x7ffce71cd978 thread T0
    #0 0x7f31c9b2402c in _Deque_iterator
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/stl_deque.h:153
    #1 0x7f31c9b24b6f in
std::deque<std::__detail::_StateSeq<std::__cxx11::regex_traits<char>
>, std::allocator<std::__detail::_StateSeq<std::__cxx11::regex_traits<char>
> > >::begin() /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/stl_deque.h:1167
    #2 0x7f31c9b24a34 in ~deque
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/stl_deque.h:1045
    #3 0x7f31c9ac3554 in ~stack
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/stl_stack.h:99
    #4 0x7f31c9ac1824 in _Compiler
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/regex_compiler.tcc:90
    #5 0x7f31c9ac112d in
_ZNSt8__detail13__compile_nfaIPKcNSt7__cxx1112regex_traitsIcEEEENSt9enable_ifIXsr27__is_contiguous_normal_iterIT_EE5valueESt10shared_ptrIKNS_4_NFAIT0_EEEE4typeES7_S7_RKNSA_11locale_typeENSt15regex_constants18syntax_option_typeE
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/regex_compiler.h:203
    #6 0x7f31c9ac0e33 in basic_regex<const char *>
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/regex.h:768
    #7 0x7f31c9ac0986 in basic_regex<const char *>
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/regex.h:512
    #8 0x7f31c9abf336 in basic_regex
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/regex.h:445
    #9 0x7f31c97606fb in __cxx_global_var_init.6
../../AudioModulesFrame/AM_StdLibExtensions.cpp:11
    #10 0x7f31c976084d in _GLOBAL__sub_I_AM_StdLibExtensions.cpp
../../AudioModulesFrame/AM_StdLibExtensions.cpp
    #11 0x7f31d0329579 in call_init.part.0 (/lib64/ld-linux-x86-64.so.2+0xf579)
    #12 0x7f31d0329685 in _dl_init (/lib64/ld-linux-x86-64.so.2+0xf685)
    #13 0x7f31d032db5d in dl_open_worker (/lib64/ld-linux-x86-64.so.2+0x13b5d)
    #14 0x7f31ce54beb3 in __GI__dl_catch_error (/usr/lib/libc.so.6+0x131eb3)
    #15 0x7f31d032d379 in _dl_open (/lib64/ld-linux-x86-64.so.2+0x13379)
    #16 0x7f31cef52e85  (/usr/lib/libdl.so.2+0xe85)
    #17 0x7f31ce54beb3 in __GI__dl_catch_error (/usr/lib/libc.so.6+0x131eb3)
    #18 0x7f31cef53586  (/usr/lib/libdl.so.2+0x1586)
    #19 0x7f31cef52f21 in dlopen (/usr/lib/libdl.so.2+0xf21)
    #20 0x7f31cf3abd98 in __interceptor_dlopen
/build/gcc-multilib/src/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:5364
    #21 0x55abc3a21cb7 in Vst2Plugin::loadDLL()
(/home/abique/develop/bitwig/alex-future/target/bin/release/BitwigPluginHost64+0xa8cb7)
    #22 0x55abc3a2218e in Vst2PluginApi::loadPlugin(PluginHost*,
base::core::String)
(/home/abique/develop/bitwig/alex-future/target/bin/release/BitwigPluginHost64+0xa918e)
    #23 0x55abc39cc7d5 in PluginHost::getPlugin(base::core::String
const&)
(/home/abique/develop/bitwig/alex-future/target/bin/release/BitwigPluginHost64+0x537d5)
    #24 0x55abc39d41a1 in writePluginInfo(base::core::String,
base::core::OutputStream*)
(/home/abique/develop/bitwig/alex-future/target/bin/release/BitwigPluginHost64+0x5b1a1)
    #25 0x55abc39bb47f in main
(/home/abique/develop/bitwig/alex-future/target/bin/release/BitwigPluginHost64+0x4247f)
    #26 0x7f31ce43af69 in __libc_start_main (/usr/lib/libc.so.6+0x20f69)
    #27 0x55abc39be9d9 in _start
(/home/abique/develop/bitwig/alex-future/target/bin/release/BitwigPluginHost64+0x459d9)

Address 0x7ffce71cd978 is located in stack of thread T0 at offset 56 in frame
    #0 0x7f31c9b2493f in ~deque
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/stl_deque.h:1045

  This frame has 2 object(s):
    [32, 64) 'agg.tmp' <== Memory access at offset 56 is inside this variable
    [96, 128) 'agg.tmp2'
HINT: this may be a false positive if your program uses some custom
stack unwind mechanism or swapcontext
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/stl_deque.h:153
in _Deque_iterator
Shadow bytes around the buggy address:
  0x10001ce31ad0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10001ce31ae0: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
  0x10001ce31af0: 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2
  0x10001ce31b00: 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00
  0x10001ce31b10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10001ce31b20: f1 f1 f1 f1 00 00 00 f2 f1 f1 f1 f1 00 00 00[f2]
  0x10001ce31b30: f2 f2 f2 f2 00 00 00 f3 f3 f3 f3 f3 00 00 00 00
  0x10001ce31b40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10001ce31b50: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2
  0x10001ce31b60: 00 00 00 f2 f2 f2 f2 f2 00 00 00 f3 f3 f3 f3 f3
  0x10001ce31b70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
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
==6700==ABORTING


I am using Archlinux 64 bits, my system is up to date as of 10-09-2017.

I believe that the bug is in the libstdc++/regex, as I could reproduce the
issue with clang 4.0.1.


pacman -Qi gcc-multilib 
Name            : gcc-multilib
Version         : 7.2.0-1

pacman -Qi binutils
Name            : binutils
Version         : 2.29.0-1


Regards,
Alexandre
>From gcc-bugs-return-574686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 01:36:27 2017
Return-Path: <gcc-bugs-return-574686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13334 invoked by alias); 10 Sep 2017 01:36: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 5133 invoked by uid 48); 10 Sep 2017 01:36:21 -0000
From: "ivan.pogrebnyak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82165] New: Operator overloading doesn't work with enum bit fields
Date: Sun, 10 Sep 2017 01: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ivan.pogrebnyak 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-82165-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00715.txt.bz2
Content-length: 1946

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

            Bug ID: 82165
           Summary: Operator overloading doesn't work with enum bit fields
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ivan.pogrebnyak at gmail dot com
  Target Milestone: ---

Here's a short test program that illustrates the issue:

    #include <iostream>

    #define TEST(var) std::cout << #var " = " << var << std::endl;

    struct flags {
      enum field { f0, f1, no_field };
      field b0 : 4;
      field b1 : 4;
      field a0, a1;
    };

    inline bool operator!(flags::field f) {
      std::cout << "(!) ";
      return f == flags::no_field;
    }

    int main() {
      flags f;
      f.b0 = flags::f0;
      f.b1 = flags::f1;
      f.a0 = flags::f0;
      f.a1 = flags::f1;

      std::cout << "******** test enum values" << std::endl;

      TEST( flags::f0 ) // 0
      TEST( flags::f1 ) // 1
      TEST( flags::no_field ) // 2
      TEST( !flags::f0 ) // (!) 0
      TEST( !flags::f1 ) // (!) 0
      TEST( !flags::no_field ) // (!) 1

      std::cout << "\n******** test regular members" << std::endl;

      TEST( f.a0 ) // 0
      TEST( f.a1 ) // 1
      TEST( !f.a0 ) // (!) 0
      TEST( !f.a1 ) // (!) 0

      std::cout << "\n******** test bit field members" << std::endl;

      TEST( f.b0 ) // 0
      TEST( f.b1 ) // 1
      TEST( !f.b0 ) // expected "(!) 0", but got "1"
      TEST( !f.b1 ) // expected "(!) 0", but got "0"
    }

As can be seen from the output of the tests with bit field members, the "(!)"
is not printed, and the integral values are negated, rather then compared to
the `flags::no_field`.

This doesn't appear to be a recently introduced bug, as I got the same behavior
using GCC 7.2.0, 6.3.0, 5.4.0, and 4.8.1.
>From gcc-bugs-return-574687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 04:41:25 2017
Return-Path: <gcc-bugs-return-574687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87975 invoked by alias); 10 Sep 2017 04:41: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 84720 invoked by uid 48); 10 Sep 2017 04:41:18 -0000
From: "helloqirun at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82166] New: gcc ICE at -Os on valid code on x86_64-linux-gnu in "ix86_finalize_stack_frame_flags"
Date: Sun, 10 Sep 2017 04:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: helloqirun 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-82166-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00716.txt.bz2
Content-length: 2199

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

            Bug ID: 82166
           Summary: gcc ICE at -Os on valid code on x86_64-linux-gnu in
                    "ix86_finalize_stack_frame_flags"
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: helloqirun at gmail dot com
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/absozero/trunk/root-gcc
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 8.0.0 20170909 (experimental) [trunk revision 251936] (GCC)



$ gcc-trunk -Os -m32 abc.c
abc.c:1:6: warning: conflicting types for built-in function ‘printf’
[-Wbuiltin-declaration-mismatch]
 void printf();
      ^~~~~~
during RTL pass: pro_and_epilogue
abc.c: In function ‘main’:
abc.c:9:1: internal compiler error: in ix86_finalize_stack_frame_flags, at
config/i386/i386.c:14271
 }
 ^
0x7ada6c ix86_finalize_stack_frame_flags
        ../../gcc/gcc/config/i386/i386.c:14271
0xfc71fb ix86_expand_epilogue(int)
        ../../gcc/gcc/config/i386/i386.c:15414
0x11b7b8f gen_epilogue()
        ../../gcc/gcc/config/i386/i386.md:12700
0xfaae48 target_gen_epilogue
        ../../gcc/gcc/config/i386/i386.md:12211
0xae15e8 make_epilogue_seq
        ../../gcc/gcc/function.c:5864
0xae16fc thread_prologue_and_epilogue_insns()
        ../../gcc/gcc/function.c:5946
0xae1dc2 rest_of_handle_thread_prologue_and_epilogue
        ../../gcc/gcc/function.c:6436
0xae1dc2 execute
        ../../gcc/gcc/function.c:6478
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.



$ cat abc.c
void printf();
int a, b, c;
int main() {
  int j;
  for (; c;)
    a = b;
  for (; j;)
    printf();
}
>From gcc-bugs-return-574688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 05:06:39 2017
Return-Path: <gcc-bugs-return-574688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93274 invoked by alias); 10 Sep 2017 05: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 93232 invoked by uid 48); 10 Sep 2017 05:06:32 -0000
From: "ygribov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82149] match.pd: 2919: bad if test ?
Date: Sun, 10 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ygribov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82149-4-mkzE04a8oT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82149-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82149-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00717.txt.bz2
Content-length: 258

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

--- Comment #3 from Yury Gribov <ygribov at gcc dot gnu.org> ---
Thanks, the inner condition definitely needs to be && instead of ||.  Would
anyone mind submitting this?  I'm OOO until end of the week...
>From gcc-bugs-return-574689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 08:44:42 2017
Return-Path: <gcc-bugs-return-574689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 405 invoked by alias); 10 Sep 2017 08: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 357 invoked by uid 55); 10 Sep 2017 08:44:36 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81852] Feature request: __cpp_threadsafe_static_init
Date: Sun, 10 Sep 2017 08:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: enhancement
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-81852-4-Uw7MBTdyJ8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00718.txt.bz2
Content-length: 1231

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sun Sep 10 08:44:04 2017
New Revision: 251946

URL: https://gcc.gnu.org/viewcvs?rev=251946&root=gcc&view=rev
Log:
PR c++/81852 define feature-test macro for -fthreadsafe-statics

gcc/c-family:

        PR c++/81852
        * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.

gcc/testsuite:

        PR c++/81852
        * g++.dg/cpp1y/feat-cxx11.C: Check __cpp_threadsafe_static_init.
        * g++.dg/cpp1y/feat-cxx14.C: Likewise.
        * g++.dg/cpp1y/feat-cxx98.C: Likewise.
        * g++.dg/cpp1y/feat-neg.C: Likewise.
        * g++.dg/cpp1z/feat-cxx1z.C: Likewise.

Modified:
    branches/gcc-7-branch/gcc/c-family/ChangeLog
    branches/gcc-7-branch/gcc/c-family/c-cppbuiltin.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/feat-neg.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
>From gcc-bugs-return-574690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 09:06:09 2017
Return-Path: <gcc-bugs-return-574690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33942 invoked by alias); 10 Sep 2017 09:06:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 33891 invoked by uid 55); 10 Sep 2017 09:06:04 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81852] Feature request: __cpp_threadsafe_static_init
Date: Sun, 10 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: enhancement
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-81852-4-51VLutpuPB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00719.txt.bz2
Content-length: 1231

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sun Sep 10 09:05:31 2017
New Revision: 251947

URL: https://gcc.gnu.org/viewcvs?rev=251947&root=gcc&view=rev
Log:
PR c++/81852 define feature-test macro for -fthreadsafe-statics

gcc/c-family:

        PR c++/81852
        * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.

gcc/testsuite:

        PR c++/81852
        * g++.dg/cpp1y/feat-cxx11.C: Check __cpp_threadsafe_static_init.
        * g++.dg/cpp1y/feat-cxx14.C: Likewise.
        * g++.dg/cpp1y/feat-cxx98.C: Likewise.
        * g++.dg/cpp1y/feat-neg.C: Likewise.
        * g++.dg/cpp1z/feat-cxx1z.C: Likewise.

Modified:
    branches/gcc-6-branch/gcc/c-family/ChangeLog
    branches/gcc-6-branch/gcc/c-family/c-cppbuiltin.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/feat-neg.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
>From gcc-bugs-return-574691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 09:58:46 2017
Return-Path: <gcc-bugs-return-574691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38234 invoked by alias); 10 Sep 2017 09:58: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 38197 invoked by uid 48); 10 Sep 2017 09:58:41 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Sun, 10 Sep 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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:
Message-ID: <bug-82141-4-SywgKCmlfN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00720.txt.bz2
Content-length: 454

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

--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Reduced range: r251759 configured with

../work/configure --prefix=/opt/gcc/gcc8w
--enable-languages=c,c++,fortran,objc,obj-c++,ada,lto --with-gmp=/opt/mp-new
--with-system-zlib --with-isl=/opt/mp-new --enable-lto --enable-plugin
--with-arch=corei7 --with-cpu=corei7

bootstraps with the patch, r251792 does not.
>From gcc-bugs-return-574692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 11:26:13 2017
Return-Path: <gcc-bugs-return-574692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127328 invoked by alias); 10 Sep 2017 11:26:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127267 invoked by uid 48); 10 Sep 2017 11:26:08 -0000
From: "felix.von.s at posteo dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/14557] va_list is automatically taken address-of when passed as argument
Date: Sun, 10 Sep 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: target
X-Bugzilla-Version: 3.3.3
X-Bugzilla-Keywords: diagnostic, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: felix.von.s at posteo dot de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: aj at suse dot de
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-14557-4-c4e8HkVHo5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-14557-4@http.gcc.gnu.org/bugzilla/>
References: <bug-14557-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00721.txt.bz2
Content-length: 1983

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

felix <felix.von.s at posteo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |felix.von.s at posteo dot de

--- Comment #19 from felix <felix.von.s at posteo dot de> ---
The number of duplicates of this report isn't terribly high, but doesn't this
at least deserve a mention in the 'Disappointments' section of the manual?

In any case, the following macro could be used as a workaround, under some
rather reasonable assumptions:

#if __STDC_VERSION__ >= 201112L
#define va_ptr(ap) _Generic(&(ap), va_list *: &(ap), default: (va_list *)(ap))
#elif __GNUC__ >= 4
#define va_ptr(ap)
__builtin_choose_expr(__builtin_types_compatible_p(__typeof__(&(ap)), va_list
*), &(ap), (va_list *)(ap))
#else
#define va_ptr(ap) (sizeof(ap) == sizeof(va_list) ? (va_list *)&(ap) : (va_list
*)(ap))
#endif

The main assumption is that a pointer to an array is the same as a pointer to
its zeroth element, i.e. when we have a variable T array[N]; then (&array == (T
(*)[N])array); or at least that this holds for the array type that va_list is.
I don't see anything in the C standard that would explicitly guarantee this,
but this should be a safe assumption to make, because breaking it would
presumably make the following memcpy calls non-equivalent:

T array0[N], array1[N];

memcpy(array1, array0, sizeof(array0));
memcpy(&array1, array0, sizeof(array0));
memcpy(array1, &array0, sizeof(array0));
memcpy(&array1, &array0, sizeof(array0));

which would be strange. Furthermore, the last version will break in the
presence of va_list defined like

typedef void *va_list[1];
typedef char va_list[sizeof(char *)];

but I think it's reasonable to assume that no ABI standard is going to
prescribe something like this. None of the targets currently supported by GCC
do.
>From gcc-bugs-return-574693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 11:43:07 2017
Return-Path: <gcc-bugs-return-574693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9941 invoked by alias); 10 Sep 2017 11:43: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 9906 invoked by uid 48); 10 Sep 2017 11:43:03 -0000
From: "felix.von.s at posteo dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82167] New: Segmentation fault when dereferencing the address of an array argument
Date: Sun, 10 Sep 2017 11: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: felix.von.s at posteo 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 cf_gcchost cf_gcctarget attachments.created
Message-ID: <bug-82167-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00722.txt.bz2
Content-length: 1156

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

            Bug ID: 82167
           Summary: Segmentation fault when dereferencing the address of
                    an array argument
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: felix.von.s at posteo dot de
  Target Milestone: ---
              Host: i686-linux-gnu
            Target: i686-linux-gnu

Created attachment 42145
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42145&action=edit
Result of running gcc -v -S on the source code given

Attempting to compile the code below triggers a segmentation fault in the
front-end.

int main(int argc, char *argv[]) {
        __builtin_printf("%zu\n", sizeof(*&argv));
        return 0;
}

I discovered this when I was searching for a way to locally silence
-Wsizeof-array-argument (without necessarily knowing if a variable was declared
as an array in the first place), in relation to my comment under bug #14557. Is
there any way to do that, by the way?
>From gcc-bugs-return-574694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 12:19:57 2017
Return-Path: <gcc-bugs-return-574694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51667 invoked by alias); 10 Sep 2017 12:19: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 51611 invoked by uid 48); 10 Sep 2017 12:19:51 -0000
From: "dudu.arbel at ilrd dot co.il" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82105] unexpected padding in a struct
Date: Sun, 10 Sep 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: c
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dudu.arbel at ilrd dot co.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-82105-4-Mwdr50wTEc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82105-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00723.txt.bz2
Content-length: 237

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

--- Comment #9 from Dudu <dudu.arbel at ilrd dot co.il> ---
So, Andreas, why this struct's size is 16?
typedef struct 
{
    long x:16;
    int y:17;
    short z;
} SizeofThisIs16;
>From gcc-bugs-return-574695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 13:28:39 2017
Return-Path: <gcc-bugs-return-574695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10777 invoked by alias); 10 Sep 2017 13:28:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10744 invoked by uid 48); 10 Sep 2017 13:28:35 -0000
From: "felix.von.s at posteo dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82167] Segmentation fault when dereferencing the address of an array argument
Date: Sun, 10 Sep 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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: felix.von.s at posteo 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-82167-4-aDsxDfav91@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82167-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82167-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00724.txt.bz2
Content-length: 529

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

--- Comment #1 from felix <felix.von.s at posteo dot de> ---
Hmm, never mind my question, I found one way to do it...

#define NO_SIZEOF_WARNING(expr) ({ \
                _Pragma("GCC diagnostic push") \
                _Pragma("GCC diagnostic ignored \"-Wsizeof-array-argument\"") \
                __typeof__((expr)) _value = (expr); \
                _Pragma("GCC diagnostic pop") \
                _value; \
        })

Not the most concise code ever, but it works.
>From gcc-bugs-return-574696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 13:38:09 2017
Return-Path: <gcc-bugs-return-574696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55693 invoked by alias); 10 Sep 2017 13: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 55641 invoked by uid 48); 10 Sep 2017 13:38:05 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82160] [8 Regression] Mysterious testsuite failures
Date: Sun, 10 Sep 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82160-4-0js6Fo9Fon@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82160-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82160-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00725.txt.bz2
Content-length: 443

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

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

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

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
They passed now with r251945.
>From gcc-bugs-return-574697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 14:33:19 2017
Return-Path: <gcc-bugs-return-574697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68887 invoked by alias); 10 Sep 2017 14:33: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 68841 invoked by uid 48); 10 Sep 2017 14:33:15 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82166] gcc ICE at -Os on valid code on x86_64-linux-gnu in "ix86_finalize_stack_frame_flags"
Date: Sun, 10 Sep 2017 14:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc component target_milestone everconfirmed
Message-ID: <bug-82166-4-fNsVMqmV44@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82166-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82166-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00726.txt.bz2
Content-length: 666

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-10
                 CC|                            |hjl.tools at gmail dot com
          Component|tree-optimization           |target
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
It is caused r251718.
>From gcc-bugs-return-574698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 14:33:38 2017
Return-Path: <gcc-bugs-return-574698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69683 invoked by alias); 10 Sep 2017 14: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 69638 invoked by uid 48); 10 Sep 2017 14:33:34 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82166] gcc ICE at -Os on valid code on x86_64-linux-gnu in "ix86_finalize_stack_frame_flags"
Date: Sun, 10 Sep 2017 14:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: hjl.tools at gmail dot com
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-82166-4-QB3aKYibo3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82166-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82166-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00727.txt.bz2
Content-length: 386

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |hjl.tools at gmail dot com

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Mine.
>From gcc-bugs-return-574699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:03:31 2017
Return-Path: <gcc-bugs-return-574699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130522 invoked by alias); 10 Sep 2017 17:03: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 127901 invoked by uid 55); 10 Sep 2017 17:03:26 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/57019] [5/6/7/8 Regression] Compiler crashes (and make wrong assignments) at some combinations of pointers
Date: Sun, 10 Sep 2017 17: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: 4.6.3
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault 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-57019-4-uoOE3xwzlm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57019-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57019-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00728.txt.bz2
Content-length: 6275

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

--- Comment #14 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Sep 10 17:02:53 2017
New Revision: 251949

URL: https://gcc.gnu.org/viewcvs?rev=251949&root=gcc&view=rev
Log:
2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        PR fortran/40737
        PR fortran/55763
        PR fortran/57019
        PR fortran/57116

        * expr.c (is_subref_array): Add class pointer array dummies
        to the list of expressions that return true.
        * trans-array.c: Add SPAN_FIELD and update indices for
        subsequent fields.
        (gfc_conv_descriptor_span, gfc_conv_descriptor_span_get,
        gfc_conv_descriptor_span_set, is_pointer_array,
        get_array_span): New functions.
        (gfc_get_descriptor_offsets_for_info): New function to preserve
        API for access to descriptor fields for trans-types.c.
        (gfc_conv_scalarized_array_ref): If the expression is a subref
        array, make sure that info->descriptor is a descriptor type.
        Otherwise, if info->descriptor is a pointer array, set 'decl'
        and fix it if it is a component reference.
        (build_array_ref): Simplify handling of class array refs by
        passing the vptr to gfc_build_array_ref rather than generating
        the pointer arithmetic in this function.
        (gfc_conv_array_ref): As in gfc_conv_scalarized_array_ref, set
        'decl'.
        (gfc_array_allocate): Set the span field if this is a pointer
        array. Use the expr3 element size if it is available, so that
        the dynamic type element size is used.
        (gfc_conv_expr_descriptor): Set the span field for pointer
        assignments.
        * trans-array.h: Prototypes for gfc_conv_descriptor_span_get
        gfc_conv_descriptor_span_set and
        gfc_get_descriptor_offsets_for_info added.
        trans-decl.c (gfc_get_symbol_decl): If a non-class pointer
        array, mark the declaration as a GFC_DECL_PTR_ARRAY_P. Remove
        the setting of GFC_DECL_SPAN.
        (gfc_trans_deferred_vars): Set the span field to zero in thge
        originating scope.
        * trans-expr.c (gfc_conv_procedure_call): Do not use copy-in/
        copy-out to pass subref expressions to a pointer dummy.
        (gfc_trans_pointer_assignment): Remove code for setting of
        GFC_DECL_SPAN. Set the 'span' field for non-class pointers to
        class function results. Likewise for rank remap. In the case
        that the target is not a whole array, use the target array ref
        for remap and, since the 'start' indices are missing, set the
        lbounds to one, as required by the standard.
        * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Pick up the
        'token' offset from the field decl in the descriptor.
        (conv_isocbinding_subroutine): Set the 'span' field.
        * trans-io.c (gfc_trans_transfer): Always scalarize pointer
        array io.
        * trans-stmt.c (trans_associate_var): Set the 'span' field.
        * trans-types.c (gfc_get_array_descriptor_base): Add the 'span'
        field to the array descriptor.
        (gfc_get_derived_type): Pointer array components are marked as
        GFC_DECL_PTR_ARRAY_P.
        (gfc_get_array_descr_info): Replaced API breaking code for
        descriptor offset calling gfc_get_descriptor_offsets_for_info.
        * trans.c (get_array_span): New function.
        (gfc_build_array_ref): Simplify by calling get_array_span and
        obtain 'span' if 'decl' or 'vptr' present.
        * trans.h : Rename DECL_LANG_FLAG_6, GFC_DECL_SUBREF_ARRAY_P,
        as GFC_DECL_PTR_ARRAY_P.


2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * gfortran.dg/associate_24.f90: New test.
        * gfortran.dg/assumed_type_2.f90: Adjust some of the tree dump
        checks.
        * gfortran.dg/no_arg_check_2.f90: Likewise.
        * gfortran.dg/pointer_array_1.f90: New test.
        * gfortran.dg/pointer_array_2.f90: New test.
        * gfortran.dg/pointer_array_7.f90: New test.
        * gfortran.dg/pointer_array_8.f90: New test.
        * gfortran.dg/pointer_array_component_1.f90: New test.
        * gfortran.dg/pointer_array_component_2.f90: New test.
        * gfortran.dg/goacc/kernels-alias-4.f95: Bump up both tree scan
        counts by 1.

        PR fortran/40737
        * gfortran.dg/pointer_array_3.f90: New test.

        PR fortran/57116
        * gfortran.dg/pointer_array_4.f90: New test.

        PR fortran/55763
        * gfortran.dg/pointer_array_5.f90: New test.

        PR fortran/57019
        * gfortran.dg/pointer_array_6.f90: New test.

2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * libgfortran/libgfortran.h: Add span field to descriptor.
        * libgfortran/libtool-version : Bump up version number to 5:0:0.

Added:
    trunk/gcc/testsuite/gfortran.dg/associate_24.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_2.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_3.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_4.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_5.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_6.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_7.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_8.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans-io.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/fortran/trans-types.c
    trunk/gcc/fortran/trans.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/assumed_type_2.f90
    trunk/gcc/testsuite/gfortran.dg/goacc/kernels-alias-4.f95
    trunk/gcc/testsuite/gfortran.dg/no_arg_check_2.f90
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/libgfortran.h
    trunk/libgfortran/libtool-version
>From gcc-bugs-return-574703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:03:36 2017
Return-Path: <gcc-bugs-return-574703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1143 invoked by alias); 10 Sep 2017 17:03: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 130412 invoked by uid 55); 10 Sep 2017 17:03:31 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/34640] ICE when assigning item of a derived-component to a pointer
Date: Sun, 10 Sep 2017 17: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: 4.3.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-34640-4-q6fbJqwMcV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
References: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00730.txt.bz2
Content-length: 6275

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

--- Comment #35 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Sep 10 17:02:53 2017
New Revision: 251949

URL: https://gcc.gnu.org/viewcvs?rev=251949&root=gcc&view=rev
Log:
2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        PR fortran/40737
        PR fortran/55763
        PR fortran/57019
        PR fortran/57116

        * expr.c (is_subref_array): Add class pointer array dummies
        to the list of expressions that return true.
        * trans-array.c: Add SPAN_FIELD and update indices for
        subsequent fields.
        (gfc_conv_descriptor_span, gfc_conv_descriptor_span_get,
        gfc_conv_descriptor_span_set, is_pointer_array,
        get_array_span): New functions.
        (gfc_get_descriptor_offsets_for_info): New function to preserve
        API for access to descriptor fields for trans-types.c.
        (gfc_conv_scalarized_array_ref): If the expression is a subref
        array, make sure that info->descriptor is a descriptor type.
        Otherwise, if info->descriptor is a pointer array, set 'decl'
        and fix it if it is a component reference.
        (build_array_ref): Simplify handling of class array refs by
        passing the vptr to gfc_build_array_ref rather than generating
        the pointer arithmetic in this function.
        (gfc_conv_array_ref): As in gfc_conv_scalarized_array_ref, set
        'decl'.
        (gfc_array_allocate): Set the span field if this is a pointer
        array. Use the expr3 element size if it is available, so that
        the dynamic type element size is used.
        (gfc_conv_expr_descriptor): Set the span field for pointer
        assignments.
        * trans-array.h: Prototypes for gfc_conv_descriptor_span_get
        gfc_conv_descriptor_span_set and
        gfc_get_descriptor_offsets_for_info added.
        trans-decl.c (gfc_get_symbol_decl): If a non-class pointer
        array, mark the declaration as a GFC_DECL_PTR_ARRAY_P. Remove
        the setting of GFC_DECL_SPAN.
        (gfc_trans_deferred_vars): Set the span field to zero in thge
        originating scope.
        * trans-expr.c (gfc_conv_procedure_call): Do not use copy-in/
        copy-out to pass subref expressions to a pointer dummy.
        (gfc_trans_pointer_assignment): Remove code for setting of
        GFC_DECL_SPAN. Set the 'span' field for non-class pointers to
        class function results. Likewise for rank remap. In the case
        that the target is not a whole array, use the target array ref
        for remap and, since the 'start' indices are missing, set the
        lbounds to one, as required by the standard.
        * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Pick up the
        'token' offset from the field decl in the descriptor.
        (conv_isocbinding_subroutine): Set the 'span' field.
        * trans-io.c (gfc_trans_transfer): Always scalarize pointer
        array io.
        * trans-stmt.c (trans_associate_var): Set the 'span' field.
        * trans-types.c (gfc_get_array_descriptor_base): Add the 'span'
        field to the array descriptor.
        (gfc_get_derived_type): Pointer array components are marked as
        GFC_DECL_PTR_ARRAY_P.
        (gfc_get_array_descr_info): Replaced API breaking code for
        descriptor offset calling gfc_get_descriptor_offsets_for_info.
        * trans.c (get_array_span): New function.
        (gfc_build_array_ref): Simplify by calling get_array_span and
        obtain 'span' if 'decl' or 'vptr' present.
        * trans.h : Rename DECL_LANG_FLAG_6, GFC_DECL_SUBREF_ARRAY_P,
        as GFC_DECL_PTR_ARRAY_P.


2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * gfortran.dg/associate_24.f90: New test.
        * gfortran.dg/assumed_type_2.f90: Adjust some of the tree dump
        checks.
        * gfortran.dg/no_arg_check_2.f90: Likewise.
        * gfortran.dg/pointer_array_1.f90: New test.
        * gfortran.dg/pointer_array_2.f90: New test.
        * gfortran.dg/pointer_array_7.f90: New test.
        * gfortran.dg/pointer_array_8.f90: New test.
        * gfortran.dg/pointer_array_component_1.f90: New test.
        * gfortran.dg/pointer_array_component_2.f90: New test.
        * gfortran.dg/goacc/kernels-alias-4.f95: Bump up both tree scan
        counts by 1.

        PR fortran/40737
        * gfortran.dg/pointer_array_3.f90: New test.

        PR fortran/57116
        * gfortran.dg/pointer_array_4.f90: New test.

        PR fortran/55763
        * gfortran.dg/pointer_array_5.f90: New test.

        PR fortran/57019
        * gfortran.dg/pointer_array_6.f90: New test.

2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * libgfortran/libgfortran.h: Add span field to descriptor.
        * libgfortran/libtool-version : Bump up version number to 5:0:0.

Added:
    trunk/gcc/testsuite/gfortran.dg/associate_24.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_2.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_3.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_4.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_5.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_6.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_7.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_8.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans-io.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/fortran/trans-types.c
    trunk/gcc/fortran/trans.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/assumed_type_2.f90
    trunk/gcc/testsuite/gfortran.dg/goacc/kernels-alias-4.f95
    trunk/gcc/testsuite/gfortran.dg/no_arg_check_2.f90
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/libgfortran.h
    trunk/libgfortran/libtool-version
>From gcc-bugs-return-574702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:03:35 2017
Return-Path: <gcc-bugs-return-574702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 779 invoked by alias); 10 Sep 2017 17:03:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 130125 invoked by uid 55); 10 Sep 2017 17:03:30 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/40737] Pointer references sometimes fail to define "span" symbols
Date: Sun, 10 Sep 2017 17: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: 4.4.0
X-Bugzilla-Keywords: wrong-code
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-40737-4-ewJPuFt8vf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-40737-4@http.gcc.gnu.org/bugzilla/>
References: <bug-40737-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00732.txt.bz2
Content-length: 6275

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

--- Comment #19 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Sep 10 17:02:53 2017
New Revision: 251949

URL: https://gcc.gnu.org/viewcvs?rev=251949&root=gcc&view=rev
Log:
2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        PR fortran/40737
        PR fortran/55763
        PR fortran/57019
        PR fortran/57116

        * expr.c (is_subref_array): Add class pointer array dummies
        to the list of expressions that return true.
        * trans-array.c: Add SPAN_FIELD and update indices for
        subsequent fields.
        (gfc_conv_descriptor_span, gfc_conv_descriptor_span_get,
        gfc_conv_descriptor_span_set, is_pointer_array,
        get_array_span): New functions.
        (gfc_get_descriptor_offsets_for_info): New function to preserve
        API for access to descriptor fields for trans-types.c.
        (gfc_conv_scalarized_array_ref): If the expression is a subref
        array, make sure that info->descriptor is a descriptor type.
        Otherwise, if info->descriptor is a pointer array, set 'decl'
        and fix it if it is a component reference.
        (build_array_ref): Simplify handling of class array refs by
        passing the vptr to gfc_build_array_ref rather than generating
        the pointer arithmetic in this function.
        (gfc_conv_array_ref): As in gfc_conv_scalarized_array_ref, set
        'decl'.
        (gfc_array_allocate): Set the span field if this is a pointer
        array. Use the expr3 element size if it is available, so that
        the dynamic type element size is used.
        (gfc_conv_expr_descriptor): Set the span field for pointer
        assignments.
        * trans-array.h: Prototypes for gfc_conv_descriptor_span_get
        gfc_conv_descriptor_span_set and
        gfc_get_descriptor_offsets_for_info added.
        trans-decl.c (gfc_get_symbol_decl): If a non-class pointer
        array, mark the declaration as a GFC_DECL_PTR_ARRAY_P. Remove
        the setting of GFC_DECL_SPAN.
        (gfc_trans_deferred_vars): Set the span field to zero in thge
        originating scope.
        * trans-expr.c (gfc_conv_procedure_call): Do not use copy-in/
        copy-out to pass subref expressions to a pointer dummy.
        (gfc_trans_pointer_assignment): Remove code for setting of
        GFC_DECL_SPAN. Set the 'span' field for non-class pointers to
        class function results. Likewise for rank remap. In the case
        that the target is not a whole array, use the target array ref
        for remap and, since the 'start' indices are missing, set the
        lbounds to one, as required by the standard.
        * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Pick up the
        'token' offset from the field decl in the descriptor.
        (conv_isocbinding_subroutine): Set the 'span' field.
        * trans-io.c (gfc_trans_transfer): Always scalarize pointer
        array io.
        * trans-stmt.c (trans_associate_var): Set the 'span' field.
        * trans-types.c (gfc_get_array_descriptor_base): Add the 'span'
        field to the array descriptor.
        (gfc_get_derived_type): Pointer array components are marked as
        GFC_DECL_PTR_ARRAY_P.
        (gfc_get_array_descr_info): Replaced API breaking code for
        descriptor offset calling gfc_get_descriptor_offsets_for_info.
        * trans.c (get_array_span): New function.
        (gfc_build_array_ref): Simplify by calling get_array_span and
        obtain 'span' if 'decl' or 'vptr' present.
        * trans.h : Rename DECL_LANG_FLAG_6, GFC_DECL_SUBREF_ARRAY_P,
        as GFC_DECL_PTR_ARRAY_P.


2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * gfortran.dg/associate_24.f90: New test.
        * gfortran.dg/assumed_type_2.f90: Adjust some of the tree dump
        checks.
        * gfortran.dg/no_arg_check_2.f90: Likewise.
        * gfortran.dg/pointer_array_1.f90: New test.
        * gfortran.dg/pointer_array_2.f90: New test.
        * gfortran.dg/pointer_array_7.f90: New test.
        * gfortran.dg/pointer_array_8.f90: New test.
        * gfortran.dg/pointer_array_component_1.f90: New test.
        * gfortran.dg/pointer_array_component_2.f90: New test.
        * gfortran.dg/goacc/kernels-alias-4.f95: Bump up both tree scan
        counts by 1.

        PR fortran/40737
        * gfortran.dg/pointer_array_3.f90: New test.

        PR fortran/57116
        * gfortran.dg/pointer_array_4.f90: New test.

        PR fortran/55763
        * gfortran.dg/pointer_array_5.f90: New test.

        PR fortran/57019
        * gfortran.dg/pointer_array_6.f90: New test.

2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * libgfortran/libgfortran.h: Add span field to descriptor.
        * libgfortran/libtool-version : Bump up version number to 5:0:0.

Added:
    trunk/gcc/testsuite/gfortran.dg/associate_24.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_2.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_3.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_4.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_5.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_6.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_7.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_8.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans-io.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/fortran/trans-types.c
    trunk/gcc/fortran/trans.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/assumed_type_2.f90
    trunk/gcc/testsuite/gfortran.dg/goacc/kernels-alias-4.f95
    trunk/gcc/testsuite/gfortran.dg/no_arg_check_2.f90
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/libgfortran.h
    trunk/libgfortran/libtool-version
>From gcc-bugs-return-574701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:03:35 2017
Return-Path: <gcc-bugs-return-574701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 679 invoked by alias); 10 Sep 2017 17:03:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127858 invoked by uid 55); 10 Sep 2017 17:03:26 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/55763] Issues with some simpler CLASS(*) programs
Date: Sun, 10 Sep 2017 17: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: 4.8.0
X-Bugzilla-Keywords: ice-on-valid-code, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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-55763-4-qQ8owUVtQ6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55763-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55763-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00731.txt.bz2
Content-length: 6275

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

--- Comment #25 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Sep 10 17:02:53 2017
New Revision: 251949

URL: https://gcc.gnu.org/viewcvs?rev=251949&root=gcc&view=rev
Log:
2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        PR fortran/40737
        PR fortran/55763
        PR fortran/57019
        PR fortran/57116

        * expr.c (is_subref_array): Add class pointer array dummies
        to the list of expressions that return true.
        * trans-array.c: Add SPAN_FIELD and update indices for
        subsequent fields.
        (gfc_conv_descriptor_span, gfc_conv_descriptor_span_get,
        gfc_conv_descriptor_span_set, is_pointer_array,
        get_array_span): New functions.
        (gfc_get_descriptor_offsets_for_info): New function to preserve
        API for access to descriptor fields for trans-types.c.
        (gfc_conv_scalarized_array_ref): If the expression is a subref
        array, make sure that info->descriptor is a descriptor type.
        Otherwise, if info->descriptor is a pointer array, set 'decl'
        and fix it if it is a component reference.
        (build_array_ref): Simplify handling of class array refs by
        passing the vptr to gfc_build_array_ref rather than generating
        the pointer arithmetic in this function.
        (gfc_conv_array_ref): As in gfc_conv_scalarized_array_ref, set
        'decl'.
        (gfc_array_allocate): Set the span field if this is a pointer
        array. Use the expr3 element size if it is available, so that
        the dynamic type element size is used.
        (gfc_conv_expr_descriptor): Set the span field for pointer
        assignments.
        * trans-array.h: Prototypes for gfc_conv_descriptor_span_get
        gfc_conv_descriptor_span_set and
        gfc_get_descriptor_offsets_for_info added.
        trans-decl.c (gfc_get_symbol_decl): If a non-class pointer
        array, mark the declaration as a GFC_DECL_PTR_ARRAY_P. Remove
        the setting of GFC_DECL_SPAN.
        (gfc_trans_deferred_vars): Set the span field to zero in thge
        originating scope.
        * trans-expr.c (gfc_conv_procedure_call): Do not use copy-in/
        copy-out to pass subref expressions to a pointer dummy.
        (gfc_trans_pointer_assignment): Remove code for setting of
        GFC_DECL_SPAN. Set the 'span' field for non-class pointers to
        class function results. Likewise for rank remap. In the case
        that the target is not a whole array, use the target array ref
        for remap and, since the 'start' indices are missing, set the
        lbounds to one, as required by the standard.
        * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Pick up the
        'token' offset from the field decl in the descriptor.
        (conv_isocbinding_subroutine): Set the 'span' field.
        * trans-io.c (gfc_trans_transfer): Always scalarize pointer
        array io.
        * trans-stmt.c (trans_associate_var): Set the 'span' field.
        * trans-types.c (gfc_get_array_descriptor_base): Add the 'span'
        field to the array descriptor.
        (gfc_get_derived_type): Pointer array components are marked as
        GFC_DECL_PTR_ARRAY_P.
        (gfc_get_array_descr_info): Replaced API breaking code for
        descriptor offset calling gfc_get_descriptor_offsets_for_info.
        * trans.c (get_array_span): New function.
        (gfc_build_array_ref): Simplify by calling get_array_span and
        obtain 'span' if 'decl' or 'vptr' present.
        * trans.h : Rename DECL_LANG_FLAG_6, GFC_DECL_SUBREF_ARRAY_P,
        as GFC_DECL_PTR_ARRAY_P.


2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * gfortran.dg/associate_24.f90: New test.
        * gfortran.dg/assumed_type_2.f90: Adjust some of the tree dump
        checks.
        * gfortran.dg/no_arg_check_2.f90: Likewise.
        * gfortran.dg/pointer_array_1.f90: New test.
        * gfortran.dg/pointer_array_2.f90: New test.
        * gfortran.dg/pointer_array_7.f90: New test.
        * gfortran.dg/pointer_array_8.f90: New test.
        * gfortran.dg/pointer_array_component_1.f90: New test.
        * gfortran.dg/pointer_array_component_2.f90: New test.
        * gfortran.dg/goacc/kernels-alias-4.f95: Bump up both tree scan
        counts by 1.

        PR fortran/40737
        * gfortran.dg/pointer_array_3.f90: New test.

        PR fortran/57116
        * gfortran.dg/pointer_array_4.f90: New test.

        PR fortran/55763
        * gfortran.dg/pointer_array_5.f90: New test.

        PR fortran/57019
        * gfortran.dg/pointer_array_6.f90: New test.

2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * libgfortran/libgfortran.h: Add span field to descriptor.
        * libgfortran/libtool-version : Bump up version number to 5:0:0.

Added:
    trunk/gcc/testsuite/gfortran.dg/associate_24.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_2.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_3.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_4.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_5.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_6.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_7.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_8.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans-io.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/fortran/trans-types.c
    trunk/gcc/fortran/trans.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/assumed_type_2.f90
    trunk/gcc/testsuite/gfortran.dg/goacc/kernels-alias-4.f95
    trunk/gcc/testsuite/gfortran.dg/no_arg_check_2.f90
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/libgfortran.h
    trunk/libgfortran/libtool-version
>From gcc-bugs-return-574700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:03:35 2017
Return-Path: <gcc-bugs-return-574700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 654 invoked by alias); 10 Sep 2017 17:03:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128061 invoked by uid 55); 10 Sep 2017 17:03:26 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/57116] [OOP] ICE for pointer assignment inside SELECT TYPE
Date: Sun, 10 Sep 2017 17: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: 4.8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault 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-57116-4-pfUO6GStth@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57116-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57116-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00729.txt.bz2
Content-length: 6274

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

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Sep 10 17:02:53 2017
New Revision: 251949

URL: https://gcc.gnu.org/viewcvs?rev=251949&root=gcc&view=rev
Log:
2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        PR fortran/40737
        PR fortran/55763
        PR fortran/57019
        PR fortran/57116

        * expr.c (is_subref_array): Add class pointer array dummies
        to the list of expressions that return true.
        * trans-array.c: Add SPAN_FIELD and update indices for
        subsequent fields.
        (gfc_conv_descriptor_span, gfc_conv_descriptor_span_get,
        gfc_conv_descriptor_span_set, is_pointer_array,
        get_array_span): New functions.
        (gfc_get_descriptor_offsets_for_info): New function to preserve
        API for access to descriptor fields for trans-types.c.
        (gfc_conv_scalarized_array_ref): If the expression is a subref
        array, make sure that info->descriptor is a descriptor type.
        Otherwise, if info->descriptor is a pointer array, set 'decl'
        and fix it if it is a component reference.
        (build_array_ref): Simplify handling of class array refs by
        passing the vptr to gfc_build_array_ref rather than generating
        the pointer arithmetic in this function.
        (gfc_conv_array_ref): As in gfc_conv_scalarized_array_ref, set
        'decl'.
        (gfc_array_allocate): Set the span field if this is a pointer
        array. Use the expr3 element size if it is available, so that
        the dynamic type element size is used.
        (gfc_conv_expr_descriptor): Set the span field for pointer
        assignments.
        * trans-array.h: Prototypes for gfc_conv_descriptor_span_get
        gfc_conv_descriptor_span_set and
        gfc_get_descriptor_offsets_for_info added.
        trans-decl.c (gfc_get_symbol_decl): If a non-class pointer
        array, mark the declaration as a GFC_DECL_PTR_ARRAY_P. Remove
        the setting of GFC_DECL_SPAN.
        (gfc_trans_deferred_vars): Set the span field to zero in thge
        originating scope.
        * trans-expr.c (gfc_conv_procedure_call): Do not use copy-in/
        copy-out to pass subref expressions to a pointer dummy.
        (gfc_trans_pointer_assignment): Remove code for setting of
        GFC_DECL_SPAN. Set the 'span' field for non-class pointers to
        class function results. Likewise for rank remap. In the case
        that the target is not a whole array, use the target array ref
        for remap and, since the 'start' indices are missing, set the
        lbounds to one, as required by the standard.
        * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Pick up the
        'token' offset from the field decl in the descriptor.
        (conv_isocbinding_subroutine): Set the 'span' field.
        * trans-io.c (gfc_trans_transfer): Always scalarize pointer
        array io.
        * trans-stmt.c (trans_associate_var): Set the 'span' field.
        * trans-types.c (gfc_get_array_descriptor_base): Add the 'span'
        field to the array descriptor.
        (gfc_get_derived_type): Pointer array components are marked as
        GFC_DECL_PTR_ARRAY_P.
        (gfc_get_array_descr_info): Replaced API breaking code for
        descriptor offset calling gfc_get_descriptor_offsets_for_info.
        * trans.c (get_array_span): New function.
        (gfc_build_array_ref): Simplify by calling get_array_span and
        obtain 'span' if 'decl' or 'vptr' present.
        * trans.h : Rename DECL_LANG_FLAG_6, GFC_DECL_SUBREF_ARRAY_P,
        as GFC_DECL_PTR_ARRAY_P.


2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * gfortran.dg/associate_24.f90: New test.
        * gfortran.dg/assumed_type_2.f90: Adjust some of the tree dump
        checks.
        * gfortran.dg/no_arg_check_2.f90: Likewise.
        * gfortran.dg/pointer_array_1.f90: New test.
        * gfortran.dg/pointer_array_2.f90: New test.
        * gfortran.dg/pointer_array_7.f90: New test.
        * gfortran.dg/pointer_array_8.f90: New test.
        * gfortran.dg/pointer_array_component_1.f90: New test.
        * gfortran.dg/pointer_array_component_2.f90: New test.
        * gfortran.dg/goacc/kernels-alias-4.f95: Bump up both tree scan
        counts by 1.

        PR fortran/40737
        * gfortran.dg/pointer_array_3.f90: New test.

        PR fortran/57116
        * gfortran.dg/pointer_array_4.f90: New test.

        PR fortran/55763
        * gfortran.dg/pointer_array_5.f90: New test.

        PR fortran/57019
        * gfortran.dg/pointer_array_6.f90: New test.

2017-09-10  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34640
        * libgfortran/libgfortran.h: Add span field to descriptor.
        * libgfortran/libtool-version : Bump up version number to 5:0:0.

Added:
    trunk/gcc/testsuite/gfortran.dg/associate_24.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_2.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_3.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_4.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_5.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_6.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_7.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_8.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90
    trunk/gcc/testsuite/gfortran.dg/pointer_array_component_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans-io.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/fortran/trans-types.c
    trunk/gcc/fortran/trans.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/assumed_type_2.f90
    trunk/gcc/testsuite/gfortran.dg/goacc/kernels-alias-4.f95
    trunk/gcc/testsuite/gfortran.dg/no_arg_check_2.f90
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/libgfortran.h
    trunk/libgfortran/libtool-version
>From gcc-bugs-return-574705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:04:55 2017
Return-Path: <gcc-bugs-return-574705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27626 invoked by alias); 10 Sep 2017 17: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 25758 invoked by uid 55); 10 Sep 2017 17:04:50 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79441] [7/8 regression] gnat.dg/pack9.adb fails
Date: Sun, 10 Sep 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: 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: P4
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79441-4-nc5sbZP3Ba@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-09/txt/msg00734.txt.bz2
Content-length: 415

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

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Sun Sep 10 17:04:19 2017
New Revision: 251951

URL: https://gcc.gnu.org/viewcvs?rev=251951&root=gcc&view=rev
Log:
        PR ada/79441
        * gnat.dg/pack9.adb: Robustify.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gnat.dg/pack9.adb
>From gcc-bugs-return-574704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:04:17 2017
Return-Path: <gcc-bugs-return-574704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11335 invoked by alias); 10 Sep 2017 17:04:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10164 invoked by uid 55); 10 Sep 2017 17:04:12 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79441] [7/8 regression] gnat.dg/pack9.adb fails
Date: Sun, 10 Sep 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: 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: P4
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79441-4-ycua1q14ir@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-09/txt/msg00733.txt.bz2
Content-length: 447

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

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Sun Sep 10 17:03:40 2017
New Revision: 251950

URL: https://gcc.gnu.org/viewcvs?rev=251950&root=gcc&view=rev
Log:
        PR ada/79441
        * gnat.dg/pack9.adb: Robustify.

Modified:
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/gnat.dg/pack9.adb
>From gcc-bugs-return-574706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:05:32 2017
Return-Path: <gcc-bugs-return-574706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59840 invoked by alias); 10 Sep 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 53591 invoked by uid 48); 10 Sep 2017 17:05:27 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79441] [7/8 regression] gnat.dg/pack9.adb fails
Date: Sun, 10 Sep 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: 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: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79441-4-jXpHm0E61J@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-09/txt/msg00735.txt.bz2
Content-length: 428

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

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

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

--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
>From gcc-bugs-return-574710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:08:32 2017
Return-Path: <gcc-bugs-return-574710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130654 invoked by alias); 10 Sep 2017 17: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 128939 invoked by uid 48); 10 Sep 2017 17:08:28 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/39304] ICE with MATMUL, specific/generic functions and rank checking
Date: Sun, 10 Sep 2017 17:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.4.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-39304-4-XSimy8j8Zy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-39304-4@http.gcc.gnu.org/bugzilla/>
References: <bug-39304-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00739.txt.bz2
Content-length: 487

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

Bug 34640 Summary: ICE when assigning item of a derived-component to a pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34640

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-574708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:08:31 2017
Return-Path: <gcc-bugs-return-574708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130509 invoked by alias); 10 Sep 2017 17:08: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 128525 invoked by uid 48); 10 Sep 2017 17:08:27 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/32834] [Meta-bug] 'Fortran 95'-only failures
Date: Sun, 10 Sep 2017 17:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords: meta-bug
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: bug_status resolution
Message-ID: <bug-32834-4-X1X3aRp4dm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-32834-4@http.gcc.gnu.org/bugzilla/>
References: <bug-32834-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00737.txt.bz2
Content-length: 487

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

Bug 34640 Summary: ICE when assigning item of a derived-component to a pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34640

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-574707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:08:30 2017
Return-Path: <gcc-bugs-return-574707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130178 invoked by alias); 10 Sep 2017 17:08:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128116 invoked by uid 48); 10 Sep 2017 17:08:27 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/34640] ICE when assigning item of a derived-component to a pointer
Date: Sun, 10 Sep 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: fortran
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-34640-4-zNyKDAqvmZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
References: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00736.txt.bz2
Content-length: 469

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

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

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

--- Comment #36 from Paul Thomas <pault at gcc dot gnu.org> ---
Fixed on trunk.

Sorry that it has taken so long.

Paul
>From gcc-bugs-return-574709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:08:31 2017
Return-Path: <gcc-bugs-return-574709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130539 invoked by alias); 10 Sep 2017 17:08: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 128773 invoked by uid 48); 10 Sep 2017 17:08:28 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56818] [meta-bug] fortran-dev bugs
Date: Sun, 10 Sep 2017 17:08: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: fortran-dev
X-Bugzilla-Keywords: meta-bug
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: bug_status resolution
Message-ID: <bug-56818-4-48c27MbADO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56818-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56818-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00738.txt.bz2
Content-length: 487

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

Bug 34640 Summary: ICE when assigning item of a derived-component to a pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34640

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-574711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:10:02 2017
Return-Path: <gcc-bugs-return-574711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94047 invoked by alias); 10 Sep 2017 17:10:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86899 invoked by uid 48); 10 Sep 2017 17:09:58 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/40737] Pointer references sometimes fail to define "span" symbols
Date: Sun, 10 Sep 2017 17:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.4.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault 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-40737-4-J9yuqeI7yN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-40737-4@http.gcc.gnu.org/bugzilla/>
References: <bug-40737-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00740.txt.bz2
Content-length: 498

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

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

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

--- Comment #20 from Paul Thomas <pault at gcc dot gnu.org> ---
Fixed on trunk.

I am sorry that it has taken so long.

Thanks for the report.

Paul
>From gcc-bugs-return-574712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:10:02 2017
Return-Path: <gcc-bugs-return-574712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94283 invoked by alias); 10 Sep 2017 17:10:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87599 invoked by uid 48); 10 Sep 2017 17:09:58 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56818] [meta-bug] fortran-dev bugs
Date: Sun, 10 Sep 2017 17: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: fortran-dev
X-Bugzilla-Keywords: meta-bug
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: bug_status resolution
Message-ID: <bug-56818-4-skvn9HRu1S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56818-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56818-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00741.txt.bz2
Content-length: 486

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

Bug 40737 Summary: Pointer references sometimes fail to define "span" symbols
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40737

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-574713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:16:23 2017
Return-Path: <gcc-bugs-return-574713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48447 invoked by alias); 10 Sep 2017 17:16: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 46691 invoked by uid 48); 10 Sep 2017 17:16:20 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/57019] [5/6/7/8 Regression] Compiler crashes (and make wrong assignments) at some combinations of pointers
Date: Sun, 10 Sep 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: fortran
X-Bugzilla-Version: 4.6.3
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-57019-4-Xqv8pdhapD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57019-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57019-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00742.txt.bz2
Content-length: 498

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

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

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

--- Comment #15 from Paul Thomas <pault at gcc dot gnu.org> ---
Fixed on trunk.

I am sorry that it has taken so long.

Thanks for the report.

Paul
>From gcc-bugs-return-574715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:17:56 2017
Return-Path: <gcc-bugs-return-574715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115796 invoked by alias); 10 Sep 2017 17:17:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 110222 invoked by uid 48); 10 Sep 2017 17:17:53 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/55763] Issues with some simpler CLASS(*) programs
Date: Sun, 10 Sep 2017 17:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: ice-on-valid-code, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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-55763-4-CvtP8dtGjH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55763-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55763-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00744.txt.bz2
Content-length: 203

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

--- Comment #26 from Paul Thomas <pault at gcc dot gnu.org> ---
Fixed on trunk.

I am sorry that it has taken so long.

Thanks for the report.

Paul
>From gcc-bugs-return-574714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 17:17:05 2017
Return-Path: <gcc-bugs-return-574714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70131 invoked by alias); 10 Sep 2017 17:17:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68238 invoked by uid 48); 10 Sep 2017 17:17:01 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/57116] [OOP] ICE for pointer assignment inside SELECT TYPE
Date: Sun, 10 Sep 2017 17:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault 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-57116-4-kzYak5hnpi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57116-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57116-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00743.txt.bz2
Content-length: 202

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

--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> ---
Fixed on trunk.

I am sorry that it has taken so long.

Thanks for the report.

Paul
>From gcc-bugs-return-574716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 19:22:06 2017
Return-Path: <gcc-bugs-return-574716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29135 invoked by alias); 10 Sep 2017 19:22:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 26487 invoked by uid 48); 10 Sep 2017 19:22:01 -0000
From: "physiker at toast2 dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82168] New: Parameterized Derived Types, problems with default type parameters
Date: Sun, 10 Sep 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: physiker at toast2 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-82168-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00745.txt.bz2
Content-length: 3099

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

            Bug ID: 82168
           Summary: Parameterized Derived Types, problems with default
                    type parameters
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: physiker at toast2 dot net
  Target Milestone: ---

The following code is rejected by gcc-8. According to page 258 of modern
fortran explained default type parameters are allowed. Therefore, I assume the
following    code bug2.f90 ist legal.

cat bug2.f90

module mod
implicit none

integer, parameter :: dp = kind (0.0d0)

type, public :: v(z, k)
   integer, len :: z
   integer, kind :: k = kind(0.0)
   real(kind = k) :: e(z)
end type v

end module mod

program bug
use mod
implicit none

type (v(2)) :: a
type (v(z=:, k=dp)), allocatable :: b

end program bug

LANG=C gfortran-8 -v -W -Wall bug2.f90
Driving: gfortran-8 -v -W -Wall bug2.f90 -mmacosx-version-min=10.11.6
-asm_macosx_version_min=10.11 -l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran-8
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/lto-wrapper
Target: x86_64-apple-darwin15.6.0
Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto
--with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw
--with-system-zlib --program-suffix=-8
Thread model: posix
gcc version 8.0.0 20170910 (experimental) [trunk revision 251945] (GCC) 
COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-mmacosx-version-min=10.11.6'
'-asm_macosx_version_min=10.11' '-shared-libgcc' '-mtune=core2'
 /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/f951 bug2.f90 -fPIC
-quiet -dumpbase bug2.f90 -mmacosx-version-min=10.11.6 -mtune=core2 -auxbase
bug2 -Wextra -Wall -version -fintrinsic-modules-path
/usr/local/lib/gcc/x86_64-apple-darwin15.6.0/8.0.0/finclude -o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//cc0hzKu0.s
GNU Fortran (GCC) version 8.0.0 20170910 (experimental) [trunk revision 251945]
(x86_64-apple-darwin15.6.0)
        compiled by GNU C version 8.0.0 20170910 (experimental) [trunk revision
251945], GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version
isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Fortran2008 (GCC) version 8.0.0 20170910 (experimental) [trunk revision
251945] (x86_64-apple-darwin15.6.0)
        compiled by GNU C version 8.0.0 20170910 (experimental) [trunk revision
251945], GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version
isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
bug2.f90:18:11:

 type (v(2)) :: a
           1
Error: The value for the KIND parameter ''k'' at (1) does not reduce to a
constant expression
bug2.f90:19:9:

 type (v(z=:, k=dp)), allocatable :: b
         1
Error: Syntax error in argument list at (1)
>From gcc-bugs-return-574717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 19:56:35 2017
Return-Path: <gcc-bugs-return-574717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99906 invoked by alias); 10 Sep 2017 19: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 93405 invoked by uid 48); 10 Sep 2017 19:56:30 -0000
From: "daniel.santos at pobox dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82169] New: Dynamically determine best strategy for -mcall-ms2sysv-xlogues
Date: Sun, 10 Sep 2017 19: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.santos at pobox 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 cf_gcctarget
Message-ID: <bug-82169-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00746.txt.bz2
Content-length: 906

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

            Bug ID: 82169
           Summary: Dynamically determine best strategy for
                    -mcall-ms2sysv-xlogues
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daniel.santos at pobox dot com
  Target Milestone: ---
            Target: x86-64-*-*

The new -mcall-ms2sysv-xlogues is nice but it would be ideal for its use to be
determined automatically based upon optimization flags, profile-guided
optimizations, cold/hot markings, etc.  I don't know that it is currently
possible or worthwhile, but an analysis using processor_costs or some such to
see it's faster than inline saves might also improve it.

Probably 9.0 would be a sane target release.
>From gcc-bugs-return-574718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 19:57:49 2017
Return-Path: <gcc-bugs-return-574718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49249 invoked by alias); 10 Sep 2017 19:57:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 47293 invoked by uid 48); 10 Sep 2017 19:57:45 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82166] gcc ICE at -Os on valid code on x86_64-linux-gnu in "ix86_finalize_stack_frame_flags"
Date: Sun, 10 Sep 2017 19:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: hjl.tools at gmail dot com
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82166-4-bovtZniMTW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82166-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82166-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00747.txt.bz2
Content-length: 243

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42146
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42146&action=edit
A patch

I am testing this.
>From gcc-bugs-return-574719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 20:15:51 2017
Return-Path: <gcc-bugs-return-574719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35694 invoked by alias); 10 Sep 2017 20: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 35584 invoked by uid 48); 10 Sep 2017 20:15:40 -0000
From: "daniel.santos at pobox dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82002] [8 Regression] ICE in sp_valid_at, at config/i386/i386.c:13233
Date: Sun, 10 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.santos at pobox 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82002-4-a0mcb62g3G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82002-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82002-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00748.txt.bz2
Content-length: 2734

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

--- Comment #4 from Daniel Santos <daniel.santos at pobox dot com> ---
Created attachment 42147
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42147&action=edit
incomplete patch set with test

(In reply to Jakub Jelinek from comment #3)
> Of course there is none.  Which is why e.g. pro_epilogue_adjust_stack has
> code to handle the case when Pmode is not SImode and offset is not
> x86_64_immediate_operand.  So whatever generated this insn also needs to
> test for sp + offset not being a valid address and load the offset into some
> hard register first and use sp + that_reg.  pro_and_epilogue pass is after
> reload, so we can't wait for RA to handle it for us.

Thanks for the help here Jakub.  Being new to gcc (and obviously the x86
backend), I'm learning about issues that weren't "on my radar", so sorry for
dragging you guys through some of this as well.  This came about because I
moved the stack realignment boundary from the start of the function's frame to
after the GP reg saves so that we could use aligned MOVs for SSE regs.  Prior
to this, we just used the frame pointer with possibly unaligned MOVs and that
offset was never very large.

The bad operand is being generated when ix86_emit_save_sse_regs_using_mov calls
choose_baseaddr.  I wouldn't at all mind using the frame pointer with possibly
unaligned MOVs for a case like this, but I'm not sure what the best solution
is.  This would mean that the realignment boundary
ix86_frame::stack_realign_offset could represent two different locations,
either after reg_save_offset or at stack_pointer_offset.  This would require
adding an alternative calculation to the if (stack_realign_fp) else block in
ix86_compute_frame_layout (basically, readd the old way it was calculated), and
-ms2sysv-xlogues might have to either be disabled or modified since it uses
choose_baseaddr to init rax/rsi prior to calling the stub.

The alternative that I can see is to modify choose_baseaddr so that it can init
and utilize an auxiliary register (like r11).  In this case, I'm thinking that
it might make sense to do something global to track what regs are available
rather than passing 'style' everywhere to know rather or not r11 is live and
also track auxiliary register(s) such as this so we can init it once and then
use it several times.

I know we're approaching the end of stage1, so don't want to shake things up
too much now.  Please let me know what you think.  I might post this to the
list for opinions too.  I'm attaching what I have of the fix for this -- it
solves the problem that was posted, but it's still broken when we call a sysv
function from an ms function.

Thanks
>From gcc-bugs-return-574720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 20:25:50 2017
Return-Path: <gcc-bugs-return-574720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49424 invoked by alias); 10 Sep 2017 20:25: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 46398 invoked by uid 48); 10 Sep 2017 20:25:44 -0000
From: "daniel.santos at pobox dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82002] [8 Regression] ICE in sp_valid_at, at config/i386/i386.c:13233
Date: Sun, 10 Sep 2017 20: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.santos at pobox 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82002-4-Au71mhWR2H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82002-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82002-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00749.txt.bz2
Content-length: 351

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

--- Comment #5 from Daniel Santos <daniel.santos at pobox dot com> ---
(In reply to Daniel Santos from comment #4)
> The alternative that I can see is to modify choose_baseaddr so that it can
> init and utilize an auxiliary register (like r11).

I guess this would be called a "scratch" register.
>From gcc-bugs-return-574721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 21:10:15 2017
Return-Path: <gcc-bugs-return-574721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102128 invoked by alias); 10 Sep 2017 21:10:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 101606 invoked by uid 55); 10 Sep 2017 21:10:10 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80695] gratuitous use of stxvx to store multiple pointers
Date: Sun, 10 Sep 2017 21: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80695-4-treMSbTKKR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80695-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80695-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00750.txt.bz2
Content-length: 1447

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

--- Comment #7 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Sun Sep 10 21:09:38 2017
New Revision: 251952

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

2017-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR target/80695
        * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
        Account for direct move costs for vec_construct of integer
        vectors.

        Backport from mainline
        2017-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR target/80695
        * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
        Reduce cost estimate for direct moves.

[gcc/testsuite]

2017-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR target/80695
        * gcc.target/powerpc/pr80695-p8.c: New file.
        * gcc.target/powerpc/pr80695-p9.c: New file.


Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/pr80695-p8.c
    branches/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/pr80695-p9.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-574722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 21:12:58 2017
Return-Path: <gcc-bugs-return-574722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106176 invoked by alias); 10 Sep 2017 21: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 106133 invoked by uid 48); 10 Sep 2017 21:12:55 -0000
From: "simon at pushface dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Sun, 10 Sep 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: simon at pushface dot 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82141-4-0ciujdXlMc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00751.txt.bz2
Content-length: 1017

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

simon at pushface dot org changed:

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

--- Comment #10 from simon at pushface dot org ---
(In reply to Eric Botcazou from comment #3)
> > For how long?
> 
> Only God really knows I presume...  You can try the latest iteration:
>   https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00045.html

It’s out of my hands, of course, since I don’t have commit rights.
Perhaps I need to be more explicit in the title of the patch mail, to
attract the attention of knowledgable persons? e.g.

   [PATCH] PR target/80556 bootstrap failure on Darwin

instead of just

   [PATCH] PR target/80556

There are probably good reasons why that PR was labelled target/ -
shouldn’t it be bootstrap/ ?

Just for info, this bug is still present at r251951.
>From gcc-bugs-return-574723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 22:16:27 2017
Return-Path: <gcc-bugs-return-574723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96735 invoked by alias); 10 Sep 2017 22: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 96680 invoked by uid 48); 10 Sep 2017 22:16:22 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82170] New: gcc optimizes int range-checking poorly on x86-64
Date: Sun, 10 Sep 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: target
X-Bugzilla-Version: 7.1.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-82170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00752.txt.bz2
Content-length: 1744

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

            Bug ID: 82170
           Summary: gcc optimizes int range-checking poorly on x86-64
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eggert at gnu dot org
  Target Milestone: ---

Created attachment 42148
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42148&action=edit
source code that is poorly optimized on x86-64

GCC on Fedora 26 x86-64 (GCC 7.1.1 20170622 (Red Hat 7.1.1-3) generates
poorly-optimized machine instructions for C code that tests in the obvious way
whether a 'long long' fits in 'int'. If n is long long, the expression (INT_MIN
<= n && n <= INT_MAX) should generate code that is no worse than
(!__builtin_add_overflow_p (n, 0, 0)). However, with -O2 optimization before
the conditional branch, the former expression generates four instructions
containing two literal constants, whereas the latter generates just two
instructions that reference only registers.

For the code that prompted this bug report we will likely use an "#if __GNUC__
< 7" that uses __builtin_add_overflow_p for GCC 7 and later, and the portable
code otherwise. It'd be nicer, though, if we could just use the portable code. 
See:

https://sourceware.org/ml/libc-alpha/2017-09/msg00411.html

Attached are a source program inrange.c and an assembly-language file inrange.s
produced by 'gcc -O2 -S' that illustrates the problem. Akthough the two
functions checked_arg_GCC7 and checked_arg_portable should have the same
machine code, the former is more efficient than the latter.
>From gcc-bugs-return-574724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 22:17:03 2017
Return-Path: <gcc-bugs-return-574724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97712 invoked by alias); 10 Sep 2017 22: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 97659 invoked by uid 48); 10 Sep 2017 22:16:59 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82170] gcc optimizes int range-checking poorly on x86-64
Date: Sun, 10 Sep 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.1.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: attachments.created
Message-ID: <bug-82170-4-4mD508D5ht@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00753.txt.bz2
Content-length: 265

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

--- Comment #1 from Paul Eggert <eggert at gnu dot org> ---
Created attachment 42149
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42149&action=edit
assembly-language output for poorly-optimized code
>From gcc-bugs-return-574725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 10 23:29:27 2017
Return-Path: <gcc-bugs-return-574725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3460 invoked by alias); 10 Sep 2017 23: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 3386 invoked by uid 48); 10 Sep 2017 23:29:20 -0000
From: "damian at sourceryinstitute dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/34640] ICE when assigning item of a derived-component to a pointer
Date: Sun, 10 Sep 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: fortran
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: damian at sourceryinstitute dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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-34640-4-WUanSifmcM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
References: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00754.txt.bz2
Content-length: 138

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

--- Comment #37 from Damian Rouson <damian at sourceryinstitute dot org> ---
Bravo!
>From gcc-bugs-return-574726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 01:27:23 2017
Return-Path: <gcc-bugs-return-574726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17699 invoked by alias); 11 Sep 2017 01: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 17654 invoked by uid 48); 11 Sep 2017 01:27:18 -0000
From: "rwdougla at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82171] New: Cant use std::declval in concept testing map operator[]
Date: Mon, 11 Sep 2017 01: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rwdougla 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-82171-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00755.txt.bz2
Content-length: 1598

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

            Bug ID: 82171
           Summary: Cant use std::declval in concept testing map
                    operator[]
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rwdougla at gmail dot com
  Target Milestone: ---

static_assert fires inside c++/7.2.0/type_traits:2259:7

Godbolt link: https://godbolt.org/g/raan9j

Pasted here: (compiler flags are -std=c++1z -fconcepts)
#include <utility>
#include <type_traits>
#include <iterator>

template<typename T>
concept bool MapLike = requires(T t) {
    {t[std::declval<typename T::value_type::first_type>()]}
        -> typename T::value_type::second_type;
};

void test(MapLike T) {}

#include <map>
#include <vector>

int main() {
    test(std::map<int, int>{});
    //test(std::vector<std::pair<int, int>>{});
}


Workaround requires bankshot through nested requirement:
https://godbolt.org/g/j7kuKF

#include <utility>
#include <type_traits>
#include <iterator>

template<typename MapT, typename ValueT>
concept bool HasIndexOp = requires (MapT t, ValueT v) {
    { t[v] } -> typename MapT::value_type::second_type;
};

template<typename T>
concept bool MapLike = requires(T t) {
    requires HasIndexOp<T, typename T::value_type::first_type>;
};

void test(MapLike T) {}

#include <map>
#include <vector>

int main() {
    test(std::map<int, int>{});
    //test(std::vector<std::pair<int, int>>{});
}
>From gcc-bugs-return-574727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 01:31:03 2017
Return-Path: <gcc-bugs-return-574727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19886 invoked by alias); 11 Sep 2017 01:31: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 19814 invoked by uid 48); 11 Sep 2017 01:30:51 -0000
From: "rwdougla at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82171] Cant use std::declval in concept testing map operator[]
Date: Mon, 11 Sep 2017 01: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rwdougla 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-82171-4-9RHRfmvcQh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82171-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82171-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00756.txt.bz2
Content-length: 485

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

--- Comment #1 from Robert Douglas <rwdougla at gmail dot com> ---
I came about this, transitioning from habits using SFINAE. I have just realized
I can simplify it to:
template<typename T>
concept bool MapLike = requires(T t) {
    {t[typename T::value_type::first_type{}]}
        -> typename T::value_type::second_type;
};

and bypass the declval, altogether. Question, though, does anything forbid
declval in this context?
>From gcc-bugs-return-574728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 01:58:54 2017
Return-Path: <gcc-bugs-return-574728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120932 invoked by alias); 11 Sep 2017 01:58:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 119625 invoked by uid 48); 11 Sep 2017 01:58:49 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82166] gcc ICE at -Os on valid code on x86_64-linux-gnu in "ix86_finalize_stack_frame_flags"
Date: Mon, 11 Sep 2017 01:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: hjl.tools at gmail dot com
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82166-4-AVLLmexdCb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82166-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82166-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00757.txt.bz2
Content-length: 194

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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at

https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00553.html
>From gcc-bugs-return-574729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 04:24:40 2017
Return-Path: <gcc-bugs-return-574729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97688 invoked by alias); 11 Sep 2017 04:24:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90863 invoked by uid 48); 11 Sep 2017 04:24:35 -0000
From: "w6ws at earthlink dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/34640] ICE when assigning item of a derived-component to a pointer
Date: Mon, 11 Sep 2017 04:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: w6ws at earthlink dot net
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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-34640-4-CTlu6BbbbU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
References: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00758.txt.bz2
Content-length: 140

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

--- Comment #38 from Walter Spector <w6ws at earthlink dot net> ---
Paul,

THANK YOU!
>From gcc-bugs-return-574730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:25:25 2017
Return-Path: <gcc-bugs-return-574730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56121 invoked by alias); 11 Sep 2017 06: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 53805 invoked by uid 48); 11 Sep 2017 06:25:20 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82170] gcc optimizes int range-checking poorly on x86-64
Date: Mon, 11 Sep 2017 06: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.1.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-82170-4-pt4HJZFRrT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00759.txt.bz2
Content-length: 234

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

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
Note that n==(int)n (gcc documents that this must work) may work with more gcc
versions and is more readable.
>From gcc-bugs-return-574731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:31:21 2017
Return-Path: <gcc-bugs-return-574731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130826 invoked by alias); 11 Sep 2017 06:31: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 127699 invoked by uid 48); 11 Sep 2017 06:31:15 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Mon, 11 Sep 2017 06:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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:
Message-ID: <bug-82141-4-5f6iVNG3D1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00760.txt.bz2
Content-length: 181

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

--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
r251779 bootstraps with the patch, r251781 does not.
>From gcc-bugs-return-574732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:39:15 2017
Return-Path: <gcc-bugs-return-574732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35788 invoked by alias); 11 Sep 2017 06:39: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 29503 invoked by uid 48); 11 Sep 2017 06:39:10 -0000
From: "general+gcc at matley dot com.au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82172] New: Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Mon, 11 Sep 2017 06: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: general+gcc at matley dot com.au
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-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-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00761.txt.bz2
Content-length: 762

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

            Bug ID: 82172
           Summary: Destruction of basic_string in
                    basic_stringbuf::overflow with
                    _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode
                    results in invalid delete
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: general+gcc at matley dot com.au
  Target Milestone: ---

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

The following self-contained C++ results in an invalid free.
>From gcc-bugs-return-574735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:44:29 2017
Return-Path: <gcc-bugs-return-574735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71304 invoked by alias); 11 Sep 2017 06:44: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 69447 invoked by uid 48); 11 Sep 2017 06:44:26 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82170] gcc optimizes int range-checking poorly on x86-64
Date: Mon, 11 Sep 2017 06: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.1.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:
Message-ID: <bug-82170-4-8SQZ6V4y9c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00764.txt.bz2
Content-length: 528

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

--- Comment #3 from Paul Eggert <eggert at gnu dot org> ---
(In reply to Marc Glisse from comment #2)
> Note that n==(int)n (gcc documents that this must work) may work with more
> gcc versions and is more readable.

Thanks, good point, I'll suggest switching to that in glibc, and will update
the attachements accordingly. Still, the point remains that the portable code
should compile to something just as efficient as 'n == (int) n', which is not
portable.
>From gcc-bugs-return-574734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:44:28 2017
Return-Path: <gcc-bugs-return-574734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70989 invoked by alias); 11 Sep 2017 06:44:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68508 invoked by uid 48); 11 Sep 2017 06:44:24 -0000
From: "general+gcc at matley dot com.au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Mon, 11 Sep 2017 06: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: general+gcc at matley dot com.au
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82172-4-XgF8Jpin0d@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00763.txt.bz2
Content-length: 2855

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

--- Comment #1 from Shane <general+gcc at matley dot com.au> ---
Pressed submit accidentally. Sorry.

OS: Arch Linux
Compile flags: g++ -std=c++17 -O1 -D_GLIBCXX_USE_CXX11_ABI=0 -flto
./abi_crash.cpp
G++ version: $ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc-multilib/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 --enable-multilib --disable-werror
--enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.2.0 (GCC)

Running the compiled code under valgrind results in:

valgrind ./a.out
==23743== Memcheck, a memory error detector
==23743== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==23743== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==23743== Command: ./a.out
==23743==
==23743== Invalid free() / delete / delete[] / realloc()
==23743==    at 0x4C2E64B: operator delete(void*) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==23743==    by 0x4F02623: _M_dispose (basic_string.h:3155)
==23743==    by 0x4F02623: ~basic_string (basic_string.h:3498)
==23743==    by 0x4F02623: std::basic_stringbuf<char, std::char_traits<char>,
std::allocator<char> >::overflow(int) (sstream.tcc:113)
==23743==    by 0x108C1C: main (in /var/tmp/a.out)
==23743==  Address 0x30a0a0 is 0 bytes inside data symbol
"_ZNSs4_Rep20_S_empty_rep_storageE"
==23743==
{
   <insert_a_suppression_name_here>
   Memcheck:Free
   fun:_ZdlPv
   fun:_M_dispose
   fun:~basic_string
   fun:_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE8overflowEi
   fun:main
}
==23743==
==23743== HEAP SUMMARY:
==23743==     in use at exit: 0 bytes in 0 blocks
==23743==   total heap usage: 2 allocs, 3 frees, 73,241 bytes allocated
==23743==
==23743== All heap blocks were freed -- no leaks are possible
==23743==
==23743== For counts of detected and suppressed errors, rerun with: -v
==23743== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
>From gcc-bugs-return-574733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:44:28 2017
Return-Path: <gcc-bugs-return-574733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70936 invoked by alias); 11 Sep 2017 06:44:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68671 invoked by uid 48); 11 Sep 2017 06:44:24 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80556] [8 Regression] bootstrap failure for Ada compiler
Date: Mon, 11 Sep 2017 06: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: iains 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80556-4-ZLYp3KzUT3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80556-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80556-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00762.txt.bz2
Content-length: 912

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

--- Comment #48 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to simon from comment #46)
> I posted my darwin.h patch at
> https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00045.html on 1 September -
> hasn’t attracted any notice yet.

Thanks for the patch Simon, and apologies that no-one has reviewed it yet.

I am trying to catch up on the state of this (and other pending Darwin issues).

As it is, the patch needs some more work, since the unwinder needs to come from
different places in different versions of Darwin.  As I read it, you've made
the change unconditional which will most likely break earlier Darwin versions.

Currently, I'm trying to reproduce the various issues, and will have some
suggestions for amendment of the patch once I can get Ada to bootstrap.  Once
that's happening, I'll reply to the @patches post.
>From gcc-bugs-return-574736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:45:40 2017
Return-Path: <gcc-bugs-return-574736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125021 invoked by alias); 11 Sep 2017 06: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 119788 invoked by uid 48); 11 Sep 2017 06:45:36 -0000
From: "general+gcc at matley dot com.au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Mon, 11 Sep 2017 06: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: general+gcc at matley dot com.au
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-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-82172-4-PFpajX7mOq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00765.txt.bz2
Content-length: 278

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

--- Comment #2 from Shane <general+gcc at matley dot com.au> ---
Created attachment 42151
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42151&action=edit
preprocessed file that triggers the issue from -save-temps
>From gcc-bugs-return-574737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:48:43 2017
Return-Path: <gcc-bugs-return-574737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37189 invoked by alias); 11 Sep 2017 06:48: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 26203 invoked by uid 48); 11 Sep 2017 06:48:12 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82170] gcc optimizes int range-checking poorly on x86-64
Date: Mon, 11 Sep 2017 06: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.1.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: attachments.isobsolete attachments.created
Message-ID: <bug-82170-4-OWIi6SvSpt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00766.txt.bz2
Content-length: 552

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

Paul Eggert <eggert at gnu dot org> changed:

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

--- Comment #4 from Paul Eggert <eggert at gnu dot org> ---
Created attachment 42152
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42152&action=edit
source code that is poorly optimized on x86-64, version 2
>From gcc-bugs-return-574739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:49:41 2017
Return-Path: <gcc-bugs-return-574739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68185 invoked by alias); 11 Sep 2017 06: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 65188 invoked by uid 48); 11 Sep 2017 06:49:37 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82170] gcc optimizes int range-checking poorly on x86-64
Date: Mon, 11 Sep 2017 06: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.1.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: attachments.isobsolete attachments.created
Message-ID: <bug-82170-4-9Mfx5khYhL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00768.txt.bz2
Content-length: 556

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

Paul Eggert <eggert at gnu dot org> changed:

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

--- Comment #5 from Paul Eggert <eggert at gnu dot org> ---
Created attachment 42153
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42153&action=edit
assembly-language output for poorly-optimized code, version 2
>From gcc-bugs-return-574738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:49:22 2017
Return-Path: <gcc-bugs-return-574738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59008 invoked by alias); 11 Sep 2017 06:49: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 55612 invoked by uid 48); 11 Sep 2017 06:49:15 -0000
From: "general+gcc at matley dot com.au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Mon, 11 Sep 2017 06: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: general+gcc at matley dot com.au
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82172-4-qBW2x089ro@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00767.txt.bz2
Content-length: 307

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

--- Comment #3 from Shane <general+gcc at matley dot com.au> ---
The problem disappears in the following cases:

- LTO is not enabled
- libstdc++ is statically linked
- If the C++11 ABI is used
- Lower optimisation level
- "Downgrade" to c++14 or c++11
>From gcc-bugs-return-574740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:53:00 2017
Return-Path: <gcc-bugs-return-574740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12144 invoked by alias); 11 Sep 2017 06:53: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 9390 invoked by uid 48); 11 Sep 2017 06:52:55 -0000
From: "general+gcc at matley dot com.au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Mon, 11 Sep 2017 06:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: general+gcc at matley dot com.au
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82172-4-mLM69YsRal@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00769.txt.bz2
Content-length: 1381

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

--- Comment #4 from Shane <general+gcc at matley dot com.au> ---
Backtrace from GDB:

Starting program: /var/tmp/a.out
*** Error in `/var/tmp/a.out': free(): invalid pointer: 0x00000001002020a0 ***

Program received signal SIGABRT, Aborted.
0x00007faabc0818a0 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007faabc0818a0 in raise () from /usr/lib/libc.so.6
#1  0x00007faabc082f09 in abort () from /usr/lib/libc.so.6
#2  0x00007faabc0c4517 in __libc_message () from /usr/lib/libc.so.6
#3  0x00007faabc0cac84 in malloc_printerr () from /usr/lib/libc.so.6
#4  0x00007faabc0cc599 in _int_free () from /usr/lib/libc.so.6
#5  0x00007faabca30624 in std::string::_Rep::_M_dispose (__a=...,
this=<optimized out>) at
/build/gcc-multilib/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h:3155
#6  std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::~basic_string (this=0x7fffffffbdb0, __in_chrg=<optimized out>) at
/build/gcc-multilib/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h:3498
#7  std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char>
>::overflow (this=0x7fffffffbe00, __c=97) at
/build/gcc-multilib/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/sstream.tcc:113
#8  0x0000000100000c1d in main ()
>From gcc-bugs-return-574741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:54:58 2017
Return-Path: <gcc-bugs-return-574741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120129 invoked by alias); 11 Sep 2017 06:54: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 118303 invoked by uid 48); 11 Sep 2017 06:54:54 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82164] AddressSanitizer: stack-buffer-overflow while constructing std::regex
Date: Mon, 11 Sep 2017 06: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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-82164-4-I5GSdcNU8d@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82164-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82164-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00770.txt.bz2
Content-length: 713

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

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

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Can't reproduce, please provide ulimit -s? Do you have just empty main function
for the attached test-case? Or do you have a more sophisticated test-case?
>From gcc-bugs-return-574742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 06:55:59 2017
Return-Path: <gcc-bugs-return-574742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21067 invoked by alias); 11 Sep 2017 06: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 18709 invoked by uid 48); 11 Sep 2017 06:55:55 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82163] [8 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:707
Date: Mon, 11 Sep 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: 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: 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: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-82163-4-sEQKxot4bN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82163-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82163-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00771.txt.bz2
Content-length: 1194

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
                 CC|                            |amker at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|ICE on valid code at -O3 on |[8 Regression] ICE on valid
                   |x86_64-linux-gnu: in        |code at -O3 on
                   |check_loop_closed_ssa_use,  |x86_64-linux-gnu: in
                   |at                          |check_loop_closed_ssa_use,
                   |tree-ssa-loop-manip.c:707   |at
                   |                            |tree-ssa-loop-manip.c:707
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r250669.
>From gcc-bugs-return-574743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:00:44 2017
Return-Path: <gcc-bugs-return-574743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39118 invoked by alias); 11 Sep 2017 07: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 26377 invoked by uid 48); 11 Sep 2017 07:00:36 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82162] Internal compiler error in Raspbian
Date: Mon, 11 Sep 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: 4.9.2
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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-82162-4-1VZ0SpkrUl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82162-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82162-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00772.txt.bz2
Content-length: 601

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

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

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Please try newer GCC, 4.9 is out of support.
>From gcc-bugs-return-574744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:06:08 2017
Return-Path: <gcc-bugs-return-574744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62041 invoked by alias); 11 Sep 2017 07:06: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 60452 invoked by uid 48); 11 Sep 2017 07:06:02 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82159] [6/7/8 Regression] ICE: in assign_temp, at function.c:961
Date: Mon, 11 Sep 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.2.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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-82159-4-iCe4oQMQEj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00773.txt.bz2
Content-length: 1013

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Target Milestone|---                         |6.5
            Summary|ICE: in assign_temp, at     |[6/7/8 Regression] ICE: in
                   |function.c:961              |assign_temp, at
                   |                            |function.c:961
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r232167. It's probably a valid code.
>From gcc-bugs-return-574745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:09:15 2017
Return-Path: <gcc-bugs-return-574745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20327 invoked by alias); 11 Sep 2017 07:09:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13906 invoked by uid 48); 11 Sep 2017 07:09:11 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/82155] [7/8 Regression] ICE in dwarf2out_abstract_function, at dwarf2out.c:21655
Date: Mon, 11 Sep 2017 07:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-82155-4-nUn87yhAmH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82155-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82155-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00774.txt.bz2
Content-length: 996

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |pmderodat at gcc dot gnu.org
   Target Milestone|---                         |7.3
            Summary|gcc-8 ICE in                |[7/8 Regression] ICE in
                   |dwarf2out_abstract_function |dwarf2out_abstract_function
                   |, at dwarf2out.c:21655      |, at dwarf2out.c:21655
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r242035
>From gcc-bugs-return-574746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:14:18 2017
Return-Path: <gcc-bugs-return-574746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52477 invoked by alias); 11 Sep 2017 07: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 50024 invoked by uid 48); 11 Sep 2017 07:14:14 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82154] ICE in fold_binary_loc, at fold-const.c:9088 in 32-bit mingw32
Date: Mon, 11 Sep 2017 07: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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-82154-4-i4kS4Xws9A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82154-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82154-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00775.txt.bz2
Content-length: 639

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

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

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Please attach pre-processed source code so that I can test it with cross
compiler.
>From gcc-bugs-return-574748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:15:31 2017
Return-Path: <gcc-bugs-return-574748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87923 invoked by alias); 11 Sep 2017 07:15: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 76260 invoked by uid 48); 11 Sep 2017 07:15:03 -0000
From: "derodat at adacore dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/82155] [7/8 Regression] ICE in dwarf2out_abstract_function, at dwarf2out.c:21655
Date: Mon, 11 Sep 2017 07:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: derodat at adacore 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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82155-4-Z9PqzTMBZc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82155-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82155-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00777.txt.bz2
Content-length: 456

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

Pierre-Marie de Rodat <derodat at adacore dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |derodat at adacore dot com

--- Comment #3 from Pierre-Marie de Rodat <derodat at adacore dot com> ---
Thank you for reporting this. I’m having a look.
>From gcc-bugs-return-574747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:15:06 2017
Return-Path: <gcc-bugs-return-574747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77246 invoked by alias); 11 Sep 2017 07:15: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 74812 invoked by uid 48); 11 Sep 2017 07:15:00 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82152] [7/8 Regression] ICE on invalid code in C++17 mode if inheriting constructors are used
Date: Mon, 11 Sep 2017 07:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-82152-4-I9iZ7GWsUB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82152-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82152-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00776.txt.bz2
Content-length: 1065

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Target Milestone|---                         |7.3
            Summary|ICE on invalid code in      |[7/8 Regression] ICE on
                   |C++17 mode if inheriting    |invalid code in C++17 mode
                   |constructors are used       |if inheriting constructors
                   |                            |are used
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r240802.
>From gcc-bugs-return-574749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:17:46 2017
Return-Path: <gcc-bugs-return-574749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12982 invoked by alias); 11 Sep 2017 07:17: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 6371 invoked by uid 48); 11 Sep 2017 07:17:42 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82148] [7/8 Regression] ICE in assign_temp, at function.c:968
Date: Mon, 11 Sep 2017 07:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-82148-4-6V9j6kYfYI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82148-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82148-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00778.txt.bz2
Content-length: 982

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Target Milestone|---                         |7.3
            Summary|ICE in assign_temp, at      |[7/8 Regression] ICE in
                   |function.c:968              |assign_temp, at
                   |                            |function.c:968
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r240889.
>From gcc-bugs-return-574750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:40:43 2017
Return-Path: <gcc-bugs-return-574750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102186 invoked by alias); 11 Sep 2017 07: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 99875 invoked by uid 48); 11 Sep 2017 07:40:38 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82114] gcc.dg/gimplefe-14.c for bare metal and argc is 0
Date: Mon, 11 Sep 2017 07:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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-82114-4-GPDvvxhcwc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82114-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82114-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00779.txt.bz2
Content-length: 651

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

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

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Will fix that.
>From gcc-bugs-return-574751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:45:00 2017
Return-Path: <gcc-bugs-return-574751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129781 invoked by alias); 11 Sep 2017 07:45: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 127626 invoked by uid 48); 11 Sep 2017 07:44:56 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82104] __stack_chk_fail should not use lazy binding on ELF
Date: Mon, 11 Sep 2017 07: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: 8.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-82104-4-MV2q88nL9w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82104-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82104-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00780.txt.bz2
Content-length: 704

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
                 CC|                            |jakub 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> ---
Adding the attribute is quite simple, but I can't verify the request. Jakub?
>From gcc-bugs-return-574752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:56:51 2017
Return-Path: <gcc-bugs-return-574752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128230 invoked by alias); 11 Sep 2017 07:56: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 120173 invoked by uid 48); 11 Sep 2017 07:56:45 -0000
From: "marxin 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: Mon, 11 Sep 2017 07:56: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: 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 resolution
Message-ID: <bug-59859-4-lcsmHcnlvF@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-09/txt/msg00781.txt.bz2
Content-length: 465

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

Bug 80069 Summary: ICE at graphite-sese-to-poly.c:1176
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80069

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-574754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:56:52 2017
Return-Path: <gcc-bugs-return-574754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128852 invoked by alias); 11 Sep 2017 07: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 118442 invoked by uid 48); 11 Sep 2017 07:56:44 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/80069] ICE at graphite-sese-to-poly.c:1176
Date: Mon, 11 Sep 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: other
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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 cc resolution
Message-ID: <bug-80069-4-Fo45XKw6Ur@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80069-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80069-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00783.txt.bz2
Content-length: 620

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

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

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with the same revision as PR69728, thus dup.

*** This bug has been marked as a duplicate of bug 69728 ***
>From gcc-bugs-return-574753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:56:52 2017
Return-Path: <gcc-bugs-return-574753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128700 invoked by alias); 11 Sep 2017 07:56: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 119493 invoked by uid 48); 11 Sep 2017 07:56:45 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69728] [6/7/8 Regression] internal compiler error: in outer_projection_mupa, at graphite-sese-to-poly.c:1175
Date: Mon, 11 Sep 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: tree-optimization
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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-69728-4-Bcp3fMT68Z@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-09/txt/msg00782.txt.bz2
Content-length: 462

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manuel.lauss at googlemail dot com

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 80069 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-574759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:58:26 2017
Return-Path: <gcc-bugs-return-574759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114639 invoked by alias); 11 Sep 2017 07:58: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 113642 invoked by uid 48); 11 Sep 2017 07:58:22 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69728] [6/7/8 Regression] internal compiler error: in outer_projection_mupa, at graphite-sese-to-poly.c:1175
Date: Mon, 11 Sep 2017 07: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: 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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-69728-4-G8YDU9apsz@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-09/txt/msg00788.txt.bz2
Content-length: 452

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sven.c.dack at sky dot com

--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 82057 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-574755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:58:14 2017
Return-Path: <gcc-bugs-return-574755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111297 invoked by alias); 11 Sep 2017 07:58:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 109290 invoked by uid 48); 11 Sep 2017 07:58:10 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81226] [6/7/8 Regression] Graphite ICE in outer_projection_mupa, at graphite-sese-to-poly.c:1019
Date: Mon, 11 Sep 2017 07: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: 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: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81226-4-9mVv9uru21@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81226-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81226-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00784.txt.bz2
Content-length: 497

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

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

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

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

*** This bug has been marked as a duplicate of bug 69728 ***
>From gcc-bugs-return-574758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:58:26 2017
Return-Path: <gcc-bugs-return-574758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114576 invoked by alias); 11 Sep 2017 07:58: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 113423 invoked by uid 48); 11 Sep 2017 07:58:21 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82057] ICE with -fgraphite-identity
Date: Mon, 11 Sep 2017 07: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: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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 cc resolution
Message-ID: <bug-82057-4-KpcG9sdLgN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82057-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82057-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00787.txt.bz2
Content-length: 572

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

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

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

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

*** This bug has been marked as a duplicate of bug 69728 ***
>From gcc-bugs-return-574756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:58:16 2017
Return-Path: <gcc-bugs-return-574756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111911 invoked by alias); 11 Sep 2017 07: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 110452 invoked by uid 48); 11 Sep 2017 07:58:12 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69728] [6/7/8 Regression] internal compiler error: in outer_projection_mupa, at graphite-sese-to-poly.c:1175
Date: Mon, 11 Sep 2017 07: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: 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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-69728-4-0sfWHT6Bn2@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-09/txt/msg00785.txt.bz2
Content-length: 451

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

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

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

--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 81226 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-574760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:58:26 2017
Return-Path: <gcc-bugs-return-574760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114770 invoked by alias); 11 Sep 2017 07:58: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 113784 invoked by uid 48); 11 Sep 2017 07:58:22 -0000
From: "marxin 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: Mon, 11 Sep 2017 07: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.9.0
X-Bugzilla-Keywords: meta-bug
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 resolution
Message-ID: <bug-59859-4-hr9zVZAKPO@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-09/txt/msg00789.txt.bz2
Content-length: 458

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

Bug 82057 Summary: ICE with -fgraphite-identity
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82057

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-574757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 07:58:17 2017
Return-Path: <gcc-bugs-return-574757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112137 invoked by alias); 11 Sep 2017 07: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 110671 invoked by uid 48); 11 Sep 2017 07:58:13 -0000
From: "marxin 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: Mon, 11 Sep 2017 07: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.9.0
X-Bugzilla-Keywords: meta-bug
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 resolution
Message-ID: <bug-59859-4-6vkI0KM8Pp@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-09/txt/msg00786.txt.bz2
Content-length: 521

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

Bug 81226 Summary: [6/7/8 Regression] Graphite ICE in outer_projection_mupa, at graphite-sese-to-poly.c:1019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81226

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-574761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 08:17:47 2017
Return-Path: <gcc-bugs-return-574761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23230 invoked by alias); 11 Sep 2017 08: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 20003 invoked by uid 55); 11 Sep 2017 08:17:41 -0000
From: "mateuszb at poczta dot onet.pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82154] ICE in fold_binary_loc, at fold-const.c:9088 in 32-bit mingw32
Date: Mon, 11 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mateuszb at poczta dot onet.pl
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-82154-4-5XF6YWlWgr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82154-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82154-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00790.txt.bz2
Content-length: 10639

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

--- Comment #2 from mateuszb at poczta dot onet.pl ---
W dniu 2017-09-11 o 09:14, marxin at gcc dot gnu.org pisze:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82154
> 
> Martin Liška <marxin at gcc dot gnu.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |WAITING
>    Last reconfirmed|                            |2017-09-11
>                  CC|                            |marxin at gcc dot gnu.org
>      Ever confirmed|0                           |1
> 
> --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
> Please attach pre-processed source code so that I can test it with cross
> compiler.
> 

Cmd line:
ma@ma-VirtualBox:~/m$ /home/ma/m/build/bc_gcc/./gcc/xgcc -shared-libgcc
-B/home/ma/m/build/bc_gcc/./gcc -nostdinc++
-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src
-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src/.libs
-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/libsupc++/.libs
-L/home/ma/m/cross/i686-w64-mingw32/lib -L/home/ma/m/cross/mingw/lib -isystem
/home/ma/m/cross/i686-w64-mingw32/include -isystem
/home/ma/m/cross/mingw/include -B/home/ma/m/cross/i686-w64-mingw32/bin/
-B/home/ma/m/cross/i686-w64-mingw32/lib/ -isystem
/home/ma/m/cross/i686-w64-mingw32/include -isystem
/home/ma/m/cross/i686-w64-mingw32/sys-include
-I/home/ma/m/source/gcc-8/libstdc++-v3/../libgcc
-I/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/i686-w64-mingw32
-I/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include
-I/home/ma/m/source/gcc-8/libstdc++-v3/libsupc++ -std=gnu++98
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=bitmap_allocator.lo -v -save-temps -g -O2 -c
/home/ma/m/source/gcc-8/libstdc++-v3/src/c++98/bitmap_allocator.cc -o
bitmap_allocator.o
Reading specs from /home/ma/m/build/bc_gcc/./gcc/specs
COLLECT_GCC=/home/ma/m/build/bc_gcc/./gcc/xgcc
Target: i686-w64-mingw32
Configured with: /home/ma/m/source/gcc-8/configure --target=i686-w64-mingw32
--disable-nls --disable-multilib --with-gmp=/home/ma/m/build/for_cross
--with-mpfr=/home/ma/m/build/for_cross --with-mpc=/home/ma/m/build/for_cross
--with-isl=/home/ma/m/build/for_cross --enable-languages=c,c++,objc,obj-c++
--disable-libstdcxx-pch --disable-shared --enable-fully-dynamic-string
--prefix=/home/ma/m/cross --with-sysroot=/home/ma/m/cross
Thread model: win32
gcc version 8.0.0 20170911 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-shared-libgcc' '-B' '/home/ma/m/build/bc_gcc/./gcc'
'-nostdinc++' '-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src'
'-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src/.libs'
'-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/libsupc++/.libs'
'-L/home/ma/m/cross/i686-w64-mingw32/lib' '-L/home/ma/m/cross/mingw/lib'
'-isystem' '/home/ma/m/cross/i686-w64-mingw32/include' '-isystem'
'/home/ma/m/cross/mingw/include' '-B' '/home/ma/m/cross/i686-w64-mingw32/bin/'
'-B' '/home/ma/m/cross/i686-w64-mingw32/lib/' '-isystem'
'/home/ma/m/cross/i686-w64-mingw32/include' '-isystem'
'/home/ma/m/cross/i686-w64-mingw32/sys-include' '-I'
'/home/ma/m/source/gcc-8/libstdc++-v3/../libgcc' '-I'
'/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/i686-w64-mingw32'
'-I' '/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include' '-I'
'/home/ma/m/source/gcc-8/libstdc++-v3/libsupc++' '-std=gnu++98'
'-fno-implicit-templates' '-Wall' '-Wextra' '-Wwrite-strings' '-Wcast-qual'
'-Wabi' '-fdiagnostics-show-location=once' '-ffunction-sections'
'-fdata-sections' '-frandom-seed=bitmap_allocator.lo' '-v' '-save-temps' '-g'
'-O2' '-c' '-o' 'bitmap_allocator.o' '-mtune=generic' '-march=pentiumpro'
 /home/ma/m/build/bc_gcc/./gcc/cc1plus -E -quiet -nostdinc++ -v -I
/home/ma/m/source/gcc-8/libstdc++-v3/../libgcc -I
/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/i686-w64-mingw32
-I /home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include -I
/home/ma/m/source/gcc-8/libstdc++-v3/libsupc++ -iprefix
/home/ma/m/build/bc_gcc/gcc/../lib/gcc/i686-w64-mingw32/8.0.0/ -isystem
/home/ma/m/build/bc_gcc/./gcc/include -isystem
/home/ma/m/build/bc_gcc/./gcc/include-fixed -U_REENTRANT -isystem
/home/ma/m/cross/i686-w64-mingw32/include -isystem
/home/ma/m/cross/mingw/include -isystem
/home/ma/m/cross/i686-w64-mingw32/include -isystem
/home/ma/m/cross/i686-w64-mingw32/sys-include
/home/ma/m/source/gcc-8/libstdc++-v3/src/c++98/bitmap_allocator.cc
-mtune=generic -march=pentiumpro -std=gnu++98 -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi -fno-implicit-templates -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -frandom-seed=bitmap_allocator.lo -g
-fworking-directory -O2 -fpch-preprocess -o bitmap_allocator.ii
ignoring duplicate directory "/home/ma/m/cross/mingw/include"
ignoring duplicate directory "/home/ma/m/cross/i686-w64-mingw32/include"
ignoring nonexistent directory "/home/ma/m/cross/i686-w64-mingw32/sys-include"
ignoring nonexistent directory
"/home/ma/m/build/bc_gcc/gcc/../lib/gcc/i686-w64-mingw32/8.0.0/include"
ignoring nonexistent directory
"/home/ma/m/build/bc_gcc/gcc/../lib/gcc/i686-w64-mingw32/8.0.0/include-fixed"
ignoring nonexistent directory
"/home/ma/m/build/bc_gcc/gcc/../lib/gcc/i686-w64-mingw32/8.0.0/../../../../i686-w64-mingw32/include"
ignoring nonexistent directory
"/home/ma/m/build/bc_gcc/gcc/../lib/gcc/../../lib/gcc/i686-w64-mingw32/8.0.0/include"
ignoring nonexistent directory "/home/ma/m/cross/usr/local/include"
ignoring nonexistent directory
"/home/ma/m/build/bc_gcc/gcc/../lib/gcc/../../lib/gcc/i686-w64-mingw32/8.0.0/include-fixed"
ignoring nonexistent directory
"/home/ma/m/build/bc_gcc/gcc/../lib/gcc/../../lib/gcc/i686-w64-mingw32/8.0.0/../../../../i686-w64-mingw32/include"
ignoring duplicate directory "/home/ma/m/cross/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/ma/m/source/gcc-8/libstdc++-v3/../libgcc
 /home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/i686-w64-mingw32
 /home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include
 /home/ma/m/source/gcc-8/libstdc++-v3/libsupc++
 /home/ma/m/build/bc_gcc/./gcc/include
 /home/ma/m/build/bc_gcc/./gcc/include-fixed
 /home/ma/m/cross/i686-w64-mingw32/include
End of search list.
COLLECT_GCC_OPTIONS='-shared-libgcc' '-B' '/home/ma/m/build/bc_gcc/./gcc'
'-nostdinc++' '-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src'
'-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/src/.libs'
'-L/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/libsupc++/.libs'
'-L/home/ma/m/cross/i686-w64-mingw32/lib' '-L/home/ma/m/cross/mingw/lib'
'-isystem' '/home/ma/m/cross/i686-w64-mingw32/include' '-isystem'
'/home/ma/m/cross/mingw/include' '-B' '/home/ma/m/cross/i686-w64-mingw32/bin/'
'-B' '/home/ma/m/cross/i686-w64-mingw32/lib/' '-isystem'
'/home/ma/m/cross/i686-w64-mingw32/include' '-isystem'
'/home/ma/m/cross/i686-w64-mingw32/sys-include' '-I'
'/home/ma/m/source/gcc-8/libstdc++-v3/../libgcc' '-I'
'/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/i686-w64-mingw32'
'-I' '/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include' '-I'
'/home/ma/m/source/gcc-8/libstdc++-v3/libsupc++' '-std=gnu++98'
'-fno-implicit-templates' '-Wall' '-Wextra' '-Wwrite-strings' '-Wcast-qual'
'-Wabi' '-fdiagnostics-show-location=once' '-ffunction-sections'
'-fdata-sections' '-frandom-seed=bitmap_allocator.lo' '-v' '-save-temps' '-g'
'-O2' '-c' '-o' 'bitmap_allocator.o' '-mtune=generic' '-march=pentiumpro'
 /home/ma/m/build/bc_gcc/./gcc/cc1plus -fpreprocessed bitmap_allocator.ii
-quiet -dumpbase bitmap_allocator.cc -mtune=generic -march=pentiumpro
-auxbase-strip bitmap_allocator.o -g -O2 -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi -std=gnu++98 -version -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=bitmap_allocator.lo -o bitmap_allocator.s
GNU C++98 (GCC) version 8.0.0 20170911 (experimental) (i686-w64-mingw32)
        compiled by GNU C version 5.4.0 20160609, GMP version 6.1.2, MPFR
version 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++98 (GCC) version 8.0.0 20170911 (experimental) (i686-w64-mingw32)
        compiled by GNU C version 5.4.0 20160609, GMP version 6.1.2, MPFR
version 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 0a6ec8ede64bc633e39e8aa3515903d8
during RTL pass: expand
In file included from
/home/ma/m/source/gcc-8/libstdc++-v3/src/c++98/bitmap_allocator.cc:25:0:
/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/ext/bitmap_allocator.h:
In member function 'void
__gnu_cxx::bitmap_allocator<_Tp>::_M_deallocate_single_object(__gnu_cxx::bitmap_allocator<_Tp>::pointer)
[with _Tp = char]':
/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/ext/bitmap_allocator.h:996:7:
internal compiler error: in fold_binary_loc, at fold-const.c:9088
       }
       ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.


*.ii file attached

Cmd line to reproduce:
ma@ma-VirtualBox:~/m$ /home/ma/m/build/bc_gcc/./gcc/xgcc -shared-libgcc
-B/home/ma/m/build/bc_gcc/./gcc -g -O2 -c bitmap_allocator.ii
/home/ma/m/source/gcc-8/libstdc++-v3/src/c++98/bitmap_allocator.cc:49:23:
warning: dynamic exception specifications are deprecated in C++11
[-Wdeprecated]
   _M_get(size_t __sz) throw(std::bad_alloc)
                       ^~~~~
during RTL pass: expand
In file included from
/home/ma/m/source/gcc-8/libstdc++-v3/src/c++98/bitmap_allocator.cc:25:0:
/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/ext/bitmap_allocator.h:
In member function 'void
__gnu_cxx::bitmap_allocator<_Tp>::_M_deallocate_single_object(__gnu_cxx::bitmap_allocator<_Tp>::pointer)
[with _Tp = char]':
/home/ma/m/build/bc_gcc/i686-w64-mingw32/libstdc++-v3/include/ext/bitmap_allocator.h:996:7:
internal compiler error: in fold_binary_loc, at fold-const.c:9088
       }
       ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
>From gcc-bugs-return-574762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 08:39:31 2017
Return-Path: <gcc-bugs-return-574762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42703 invoked by alias); 11 Sep 2017 08:39: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 42666 invoked by uid 48); 11 Sep 2017 08:39:27 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82173] New: [meta-bug] Parameterized derived type errors
Date: Mon, 11 Sep 2017 08:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82173-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00791.txt.bz2
Content-length: 473

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

            Bug ID: 82173
           Summary: [meta-bug] Parameterized derived type errors
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org
  Target Milestone: ---

A PDT meta-bug to make them easier to find.
>From gcc-bugs-return-574763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 08:41:05 2017
Return-Path: <gcc-bugs-return-574763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101641 invoked by alias); 11 Sep 2017 08:41: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 96651 invoked by uid 48); 11 Sep 2017 08:41:01 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82173] [meta-bug] Parameterized derived type errors
Date: Mon, 11 Sep 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on version dependson everconfirmed
Message-ID: <bug-82173-4-bINbxqpT1O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82173-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82173-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00792.txt.bz2
Content-length: 665

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
            Version|unknown                     |8.0
         Depends on|                            |82168
     Ever confirmed|0                           |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82168
[Bug 82168] Parameterized Derived Types, problems with default type parameters
>From gcc-bugs-return-574764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 08:52:54 2017
Return-Path: <gcc-bugs-return-574764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52609 invoked by alias); 11 Sep 2017 08:52: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 52545 invoked by uid 48); 11 Sep 2017 08:52:50 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82044] runtime signed integer overflow in check_mem_read_rtx() and all_positions_needed_p() in dse.c
Date: Mon, 11 Sep 2017 08:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.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 component assigned_to everconfirmed
Message-ID: <bug-82044-4-l8vkELpWEc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82044-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82044-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00793.txt.bz2
Content-length: 727

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
                 CC|                            |marxin at gcc dot gnu.org
          Component|middle-end                  |rtl-optimization
           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> ---
I've got patch for that.
>From gcc-bugs-return-574765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 08:57:14 2017
Return-Path: <gcc-bugs-return-574765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59526 invoked by alias); 11 Sep 2017 08:57: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 59476 invoked by uid 48); 11 Sep 2017 08:57:09 -0000
From: "mcree at orcon dot net.nz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug jit/82174] New: Null name in one entry of the builtin_data array of jit-builtins.c
Date: Mon, 11 Sep 2017 08:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: jit
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mcree at orcon dot net.nz
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82174-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00794.txt.bz2
Content-length: 4006

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

            Bug ID: 82174
           Summary: Null name in one entry of the builtin_data array of
                    jit-builtins.c
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: mcree at orcon dot net.nz
  Target Milestone: ---

I see a segmentation violation in some code calling libgccjit.  The backtrace
is:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  pp_format(pretty_printer*, text_info*) () at
../../gcc.git/gcc/pretty-print.c:317
317       output_buffer *buffer = pp_buffer (pp);
(gdb) bt
#0  pp_format(pretty_printer*, text_info*) () at
../../gcc.git/gcc/pretty-print.c:317
#1  0x00007fef3c1fc698 in diagnostic_report_diagnostic(diagnostic_context*,
diagnostic_info*) ()
    at ../../gcc.git/gcc/diagnostic.c:974
#2  0x00007fef3c1fc99e in diagnostic_impl
(richloc=richloc@entry=0x7fff20ffec20, opt=opt@entry=-1, 
    gmsgid=gmsgid@entry=0x7fef3c6e88d7 "in %s, at %s:%d",
ap=ap@entry=0x7fff20ffec08, 
    kind=kind@entry=DK_ICE) at ../../gcc.git/gcc/diagnostic.c:1099
#3  0x00007fef3c1fd63d in internal_error (gmsgid=gmsgid@entry=0x7fef3c6e88d7
"in %s, at %s:%d")
    at ../../gcc.git/gcc/diagnostic.c:1422
#4  0x00007fef3b631a49 in fancy_abort (
    file=file@entry=0x7fef3c29aea0 "../../gcc.git/gcc/jit/jit-builtins.c",
line=line@entry=71, 
    function=function@entry=0x7fef3c29ec80 <gcc::jit::matches_builtin(char
const*, gcc::jit::builtin_data const&)::__FUNCTION__> "matches_builtin") at
../../gcc.git/gcc/diagnostic.c:1488
#5  0x00007fef3b38c6d8 in gcc::jit::matches_builtin (bd=..., bd=..., 
    in_name=0x434b21 "__builtin_ia32_orps256") at
../../gcc.git/gcc/jit/jit-builtins.c:71
#6  gcc::jit::find_builtin_by_name (out_id=<synthetic pointer>,
in_name=0x434b21 "__builtin_ia32_orps256")
    at ../../gcc.git/gcc/jit/jit-builtins.c:118
#7  gcc::jit::builtins_manager::get_builtin_function (this=0x2619850, 
    name=0x434b21 "__builtin_ia32_orps256") at
../../gcc.git/gcc/jit/jit-builtins.c:150
#8  0x00007fef3b644019 in gcc_jit_context_get_builtin_function (ctxt=0x25d2ac0, 
    name=name@entry=0x434b21 "__builtin_ia32_orps256") at
../../gcc.git/gcc/jit/libgccjit.c:917
#9  0x0000000000417bfd in ip_be_avx2_fdecls (be=be@entry=0x643820 <ip_avx2>) at
intel-avx2.c:201
#10 0x00000000004143d7 in ip_init_jit () at jit.c:892
#11 0x000000000040a0ac in time_ip_init_jit () at arith-test.c:231
#12 run_im_ii_tests (operator=operator@entry=0, size=size@entry=...,
chk_flag=112) at arith-test.c:505
#13 0x000000000040594a in main (argc=<optimized out>, argv=<optimized out>) at
arith-test.c:616

Stepping up to #6 find_builtin_by_name() finds that the loop counter i is:

(gdb) print i
$2 = 1092

but the entries about i in the builtin_data array are:

(gdb) print builtin_data[1091]
$5 = {name = 0x7fef3c2a3964 "__builtin__ITM_RfWE", fnclass = BUILT_IN_NORMAL, 
  type = gcc::jit::BT_FN_LDOUBLE_VPTR, both_p = false, fallback_p = true, 
  attr = gcc::jit::ATTR_TM_PURE_TMPURE_NOTHROW_LIST, implicit_p = false}

(gdb) print builtin_data[1092]
$6 = {name = 0x0, fnclass = BUILT_IN_NORMAL, type = gcc::jit::BT_LAST, both_p =
false, fallback_p = false, 
  attr = gcc::jit::ATTR_LAST, implicit_p = false}

(gdb) print builtin_data[1093]
$7 = {name = 0x7fef3c2a3978 "__builtin___asan_init", fnclass = BUILT_IN_NORMAL, 
  type = gcc::jit::BT_FN_VOID, both_p = true, fallback_p = true, attr =
gcc::jit::ATTR_NOTHROW_LEAF_LIST, 
  implicit_p = true}

and it's clear that the name in entry 1092 is NULL, which eventually leads to a
failed insert and the segfault.  The size of the array is 46752 and each entry
has 32 bytes thus the code is expecting 1461 entries in the array.
>From gcc-bugs-return-574766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 09:00:48 2017
Return-Path: <gcc-bugs-return-574766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66166 invoked by alias); 11 Sep 2017 09:00:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66033 invoked by uid 48); 11 Sep 2017 09:00:34 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82168] Parameterized Derived Types, problems with default type parameters
Date: Mon, 11 Sep 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: 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-82168-4-HZXVN40x7S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82168-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82168-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00795.txt.bz2
Content-length: 938

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

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

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

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed. Is the code valid?

module mod
implicit none

integer, parameter :: dp = kind (0.0d0)

type, public :: v(z, k)
   integer, len :: z
   integer, kind :: k
   real(kind = k) :: e(z)
end type v

end module mod

program bug
use mod
implicit none

type (v(2,dp)) :: a

a%e = 1.0
print *, a%e
end program bug

prints

   1.0000000000000000        1.0000000000000000
>From gcc-bugs-return-574767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 09:06:03 2017
Return-Path: <gcc-bugs-return-574767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105339 invoked by alias); 11 Sep 2017 09: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 105292 invoked by uid 48); 11 Sep 2017 09:05:58 -0000
From: "andrewm.roberts at sky dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82175] New: -march=native fails on armv7 big/little system armv7l-unknown-linux-gnueabihf with gcc 8.0.0
Date: Mon, 11 Sep 2017 09:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrewm.roberts at sky 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-82175-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00796.txt.bz2
Content-length: 3752

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

            Bug ID: 82175
           Summary: -march=native fails on armv7 big/little system
                    armv7l-unknown-linux-gnueabihf with gcc 8.0.0
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrewm.roberts at sky dot com
  Target Milestone: ---

gcc-7.2.0 is ok on this target, but gcc-8.0.0 fails to detect native target.

cat > test.c
#include <stdio.h>

int main(void)
{
printf("Hello World\n");
return 0;
}
^D
/usr/local/gcc-8.0.0/bin/gcc -march=native -o test800 test.c
gcc: error: unrecognized -march target: native
gcc: note: valid arguments are: armv2 armv2a armv3 armv3m armv4 armv4t armv5
armv5t armv5e armv5te armv5tej armv6 armv6j armv6k armv6z armv6kz armv6zk
armv6t2 armv6-m armv6s-m armv7 armv7-a armv7ve armv7-r armv7-m armv7e-m armv8-a
armv8.1-a armv8.2-a armv8-m.base armv8-m.main armv8-r iwmmxt iwmmxt2
gcc: error: unrecognized -march target: native
gcc: note: valid arguments are: armv2 armv2a armv3 armv3m armv4 armv4t armv5
armv5t armv5e armv5te armv5tej armv6 armv6j armv6k armv6z armv6kz armv6zk
armv6t2 armv6-m armv6s-m armv7 armv7-a armv7ve armv7-r armv7-m armv7e-m armv8-a
armv8.1-a armv8.2-a armv8-m.base armv8-m.main armv8-r iwmmxt iwmmxt2
gcc: error: missing argument to ‘-march=’

But --help=target gives a result, but seems to use armv8 syntax.
/usr/local/gcc-8.0.0/bin/gcc -Q --help=target  |& grep march
  -march=                               armv7-a+fp

gcc-7.2.0 gives:
/usr/local/gcc-7.2.0/bin/gcc -Q --help=target  |& grep march
  -march=                               armv7-a

Both versions of gcc configured identically apart from --prefix=
/usr/local/gcc-8.0.0/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-8.0.0/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-8.0.0/libexec/gcc/armv7l-unknown-linux-gnueab
ihf/8.0.0/lto-wrapper
Target: armv7l-unknown-linux-gnueabihf
Configured with: ../gcc-8.0.0/configure --prefix=/usr/local/gcc-8.0.0
--program-
suffix= --disable-werror --enable-shared --enable-threads=posix
--enable-checkin
g=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exception
s --enable-gnu-unique-object --enable-linker-build-id
--with-linker-hash-style=g
nu --enable-plugin --enable-gnu-indirect-function --enable-lto --with-isl
--enab
le-languages=c,c++,fortran,lto --disable-libgcj --enable-clocale=gnu
--disable-l
ibstdcxx-pch --enable-install-libiberty --disable-multilib --disable-libssp
--en
able-default-pie --enable-default-ssp --host=armv7l-unknown-linux-gnueabihf
--bu
ild=armv7l-unknown-linux-gnueabihf --with-arch=armv7-a --with-float=hard
--with-
fpu=vfpv3-d16 --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170910 (experimental) (GCC) 


Target/Host system is a ODroid-XU4 with 8 cores:
Cores 0..3: ARM Cortex-A7 rev 3 (0x4100c070)
Cores 4..7: ARM Cortex-A15 rev 3 (0x4100c0f0)
cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 18.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt 
vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 3
...
processor       : 4
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 18.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt 
vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc0f
CPU revision    : 3
...
>From gcc-bugs-return-574768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 09:10:03 2017
Return-Path: <gcc-bugs-return-574768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126890 invoked by alias); 11 Sep 2017 09:10:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126791 invoked by uid 55); 11 Sep 2017 09:09:58 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug hsa/82119] Revision 251264 caused a number of run-time HSA failures
Date: Mon, 11 Sep 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: hsa
X-Bugzilla-Version: 8.0
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-82119-4-yME0YAfDnn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82119-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82119-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00797.txt.bz2
Content-length: 747

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

--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Mon Sep 11 09:09:26 2017
New Revision: 251964

URL: https://gcc.gnu.org/viewcvs?rev=251964&root=gcc&view=rev
Log:
Make HSA resilient to side-effects of split_edge

2017-09-11  Martin Jambor  <mjambor@suse.cz>

        PR hsa/82119
        * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Process ADDR_EXPRs in
        arguments in advance.
        * hsa-regalloc.c (naive_process_phi): New parameter predecessors,
        use it to find predecessor edges.
        (naive_outof_ssa): Collect vector of predecessors.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/hsa-gen.c
    trunk/gcc/hsa-regalloc.c
>From gcc-bugs-return-574769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 09:18:01 2017
Return-Path: <gcc-bugs-return-574769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1563 invoked by alias); 11 Sep 2017 09:18: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 1464 invoked by uid 48); 11 Sep 2017 09:17:57 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug hsa/82119] Revision 251264 caused a number of run-time HSA failures
Date: Mon, 11 Sep 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: hsa
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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: bug_status resolution
Message-ID: <bug-82119-4-Fxj4Mrrtk9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82119-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82119-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00798.txt.bz2
Content-length: 427

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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

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

--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-574770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 09:21:03 2017
Return-Path: <gcc-bugs-return-574770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110585 invoked by alias); 11 Sep 2017 09:21: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 100139 invoked by uid 48); 11 Sep 2017 09:20:57 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82042] signed integer overflow in ao_ref_init_from_ptr_and_size
Date: Mon, 11 Sep 2017 09:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.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 assigned_to everconfirmed
Message-ID: <bug-82042-4-tFh2lIgvRi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82042-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82042-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00799.txt.bz2
Content-length: 2109

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
           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, I've got patch for 3/4 of ubsan errors.

The only one which is remaining is:

   679  void
   680  ao_ref_init_from_ptr_and_size (ao_ref *ref, tree ptr, tree size)
   681  {
   682    HOST_WIDE_INT t, size_hwi, extra_offset = 0;
   683    ref->ref = NULL_TREE;
   684    if (TREE_CODE (ptr) == SSA_NAME)
   685      {
   686        gimple *stmt = SSA_NAME_DEF_STMT (ptr);
   687        if (gimple_assign_single_p (stmt)
   688            && gimple_assign_rhs_code (stmt) == ADDR_EXPR)
   689          ptr = gimple_assign_rhs1 (stmt);
   690        else if (is_gimple_assign (stmt)
   691                 && gimple_assign_rhs_code (stmt) == POINTER_PLUS_EXPR
   692                 && TREE_CODE (gimple_assign_rhs2 (stmt)) == INTEGER_CST)
   693          {
   694            ptr = gimple_assign_rhs1 (stmt);
   695            extra_offset = BITS_PER_UNIT
   696                           * int_cst_value (gimple_assign_rhs2 (stmt));
   697          }
   698      }
   699  
   700    if (TREE_CODE (ptr) == ADDR_EXPR)
   701      {
   702        ref->base = get_addr_base_and_unit_offset (TREE_OPERAND (ptr, 0),
&t);
   703        if (ref->base)
   704          ref->offset = BITS_PER_UNIT * t;
   705        else

Where offset should be probably offset_int type, which is not for free.
Or do we have a special value for such case Richi?
>From gcc-bugs-return-574771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 09:27:48 2017
Return-Path: <gcc-bugs-return-574771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100963 invoked by alias); 11 Sep 2017 09:27: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 98090 invoked by uid 48); 11 Sep 2017 09:27:42 -0000
From: "andrewm.roberts at sky dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82175] -march=native fails on armv7 big/little system armv7l-unknown-linux-gnueabihf with gcc 8.0.0
Date: Mon, 11 Sep 2017 09:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrewm.roberts at sky 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-82175-4-avg2kaUsLN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00800.txt.bz2
Content-length: 1175

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

--- Comment #1 from Andrew Roberts <andrewm.roberts at sky dot com> ---
This also fails on a Raspberry PI 3 running armv7 in the same way.
Looks like the armv8 code has got mixed up with the armv7 code...

The RPI3 has:
4x ARM Cortex-A53 rev 4 (0x4100d030)

cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4
...

It does work ok on a different armv8 (aarch64) system:
Odroid-C2, this uses the same processors as the RPI3, but is running an aarch64
linux OS.
4 x ARM Cortex-A53 rev 4 (0x4100d030)

cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 2.00
Features        : fp asimd crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4
...

On the ODROID-C2 in aarch64 mode:
/usr/local/gcc/bin/gcc -Q --help=target | grep march
  -march=ARCH                           armv8-a
>From gcc-bugs-return-574772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 09:37:09 2017
Return-Path: <gcc-bugs-return-574772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48887 invoked by alias); 11 Sep 2017 09: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 41588 invoked by uid 48); 11 Sep 2017 09:37:05 -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: Mon, 11 Sep 2017 09:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 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:
Message-ID: <bug-56973-4-iVR1WERGbX@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-09/txt/msg00801.txt.bz2
Content-length: 1457

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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Nathan mentioned today that we have the inverse problem as well: after we've
captured i, we should still be able to use its constant value.  Here's an
example of things that ought to work and mostly don't:

int main()
{ 
  const int i = 4;
  [] { constexpr int x = i; };
  [=] { &i; constexpr int x = i; };
  [&] { &i; constexpr int x = i; };
  [i] { &i; constexpr int x = i; };
  [&i] { &i; constexpr int x = i; };
}

"Every id-expression within the compound-statement of a lambda-expression that
is an odr-use (6.2) of an entity captured by copy is transformed into an access
to the corresponding unnamed data member of the closure type. [ Note: An
id-expression that is not an odr-use refers to the original entity, never to a
member of the closure type. Furthermore, such an id-expression does not cause
the implicit capture of the entity. — end note ]"

"A variable x whose name appears as a potentially-evaluated expression ex is
odr-used by ex unless applying the lvalue-to-rvalue conversion (7.1) to x
yields a constant expression (8.20) that does not invoke any non-trivial
functions and, if x is an object, ex is an element of the set of potential
results of an expression e, where either the lvalue-to-rvalue conversion (7.1)
is applied to e, or e is a discarded-value expression (Clause 8)."
>From gcc-bugs-return-574773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 09:46:50 2017
Return-Path: <gcc-bugs-return-574773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123199 invoked by alias); 11 Sep 2017 09:46: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 119993 invoked by uid 48); 11 Sep 2017 09:46:46 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82154] ICE in fold_binary_loc, at fold-const.c:9088 in 32-bit mingw32
Date: Mon, 11 Sep 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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82154-4-exzRLpXdTN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82154-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82154-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00802.txt.bz2
Content-length: 939

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Thanks for pre-processed file, confirmed for following reduced test-case:

$ cat pr82154.ii
namespace a {
int b;
class c
{
};
}
class g
{
public:
  g ();
};
using a::b;
class d
{
public:
  d ();
  e ();
};
class f
{
  d
  i ()
  {
    static d j;
  }
  *k () throw (a::c);
};
*f::k () throw (a::c)
{
  static g h;
  i ();
  int l = 2;
  while (l)
    {
      --l;
      try
        {
          operator new (b);
        }
      catch (a::c)
        {
        }
    }
  i ().e ();
}
>From gcc-bugs-return-574774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 10:39:26 2017
Return-Path: <gcc-bugs-return-574774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129574 invoked by alias); 11 Sep 2017 10:39:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125780 invoked by uid 48); 11 Sep 2017 10:39:19 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82175] -march=native fails on armv7 big/little system armv7l-unknown-linux-gnueabihf with gcc 8.0.0
Date: Mon, 11 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82175-4-U5wojA62jk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00803.txt.bz2
Content-length: 507

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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org,
                   |                            |rearnsha at gcc dot gnu.org

--- Comment #2 from ktkachov at gcc dot gnu.org ---
I think this is related to the option rewrite that Richard did for GCC 8
>From gcc-bugs-return-574775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 10:44:28 2017
Return-Path: <gcc-bugs-return-574775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34070 invoked by alias); 11 Sep 2017 10:44:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34015 invoked by uid 48); 11 Sep 2017 10:44:24 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81852] Feature request: __cpp_threadsafe_static_init
Date: Mon, 11 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: patch
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: redi 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-81852-4-Zpn8LmNANo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00804.txt.bz2
Content-length: 498

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.5

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 5.5, 6.5 and 7.3
>From gcc-bugs-return-574776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 10:44:56 2017
Return-Path: <gcc-bugs-return-574776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53649 invoked by alias); 11 Sep 2017 10: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 43660 invoked by uid 55); 11 Sep 2017 10:44:48 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81852] Feature request: __cpp_threadsafe_static_init
Date: Mon, 11 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: patch
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: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81852-4-spXYJF0hmD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00805.txt.bz2
Content-length: 1118

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

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Sep 11 10:44:11 2017
New Revision: 251975

URL: https://gcc.gnu.org/viewcvs?rev=251975&root=gcc&view=rev
Log:
PR c++/81852 define feature-test macro for -fthreadsafe-statics

gcc/c-family:

        PR c++/81852
        * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.

gcc/testsuite:

        PR c++/81852
        * g++.dg/cpp1y/feat-cxx11.C: Check __cpp_threadsafe_static_init.
        * g++.dg/cpp1y/feat-cxx14.C: Likewise.
        * g++.dg/cpp1y/feat-cxx98.C: Likewise.
        * g++.dg/cpp1y/feat-neg.C: Likewise.

Modified:
    branches/gcc-5-branch/gcc/c-family/ChangeLog
    branches/gcc-5-branch/gcc/c-family/c-cppbuiltin.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
    branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
    branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C
    branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/feat-neg.C
>From gcc-bugs-return-574777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 11:03:22 2017
Return-Path: <gcc-bugs-return-574777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23484 invoked by alias); 11 Sep 2017 11:03: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 118092 invoked by uid 48); 11 Sep 2017 11:02:53 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82154] ICE in fold_binary_loc, at fold-const.c:9088 in 32-bit mingw32
Date: Mon, 11 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82154-4-uaiQJaD4bs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82154-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82154-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00806.txt.bz2
Content-length: 187

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
And as it's started with my patch (r251690), it's really mine.
>From gcc-bugs-return-574778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 11:25:30 2017
Return-Path: <gcc-bugs-return-574778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97537 invoked by alias); 11 Sep 2017 11:25: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 97098 invoked by uid 48); 11 Sep 2017 11:24:39 -0000
From: "f.hollerer at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/82176] New: Feature request: replace __FILE__ with file's basename instead its full name
Date: Mon, 11 Sep 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: preprocessor
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: f.hollerer at gmx dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82176-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00807.txt.bz2
Content-length: 1783

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

            Bug ID: 82176
           Summary: Feature request: replace __FILE__ with file's basename
                    instead its full name
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: f.hollerer at gmx dot net
  Target Milestone: ---

Actually, this is a feature request, not a bug report.

It would be great to have a command line option to tell the
preprocessor to replace __FILE__ with the basename of a file, not the
complete name with relative or absolute path components as passed to
the preprocessor / compiler when invoked.

Reason is to minimise the amount of FLASH / code memory required for
the strings.

Explanation:

I am using arm-none-eabi-gcc version 6.3.1 downloaded from
https://developer.arm.com/ to build fora Cortex-M4 with 32 kB code
memory. Unfortunately, the cmake Build system I am using always passes
the absolute file path to the compiler, furthermore the driver code
provided by the chip vendor uses allot of assert()s.

I don't want to turn off assert()s completely, but with __FILE__ being
replaced with the full file name blows up my firmware image.
Restricting it to the file's basename would bring the image back to
reasonable size, by still providing good error messages.

After consutling google for a while, I found that other compiler toolchains
provide this feature. E.g. IAR:

https://www.iar.com/support/tech-notes/general/avoiding-full-paths-in-the-output-file/

Therefore, I think it is a feature of common interest, especially in the
embedded world.

Thanks & Best regards,

Franz Hollerer
>From gcc-bugs-return-574779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 11:38:17 2017
Return-Path: <gcc-bugs-return-574779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103950 invoked by alias); 11 Sep 2017 11: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 99959 invoked by uid 48); 11 Sep 2017 11:38:12 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81432] Bogus fix-it hints from -Wmissing-braces when there are excess elements
Date: Mon, 11 Sep 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: 8.0
X-Bugzilla-Keywords: diagnostic
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-81432-4-ur9zrUSCGT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00808.txt.bz2
Content-length: 481

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-11
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-574780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 11:39:48 2017
Return-Path: <gcc-bugs-return-574780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74633 invoked by alias); 11 Sep 2017 11:39: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 74590 invoked by uid 48); 11 Sep 2017 11:39:44 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82141] [8 Regression] raised RTSFIND.RE_NOT_AVAILABLE : rtsfind.adb:851 on darwin
Date: Mon, 11 Sep 2017 11:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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:
Message-ID: <bug-82141-4-MXnzAK0GbK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00809.txt.bz2
Content-length: 204

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

--- Comment #12 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I have been able to bootstrap with the commit for ada/sem_ch7.adb reverted.
>From gcc-bugs-return-574781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 12:02:24 2017
Return-Path: <gcc-bugs-return-574781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49726 invoked by alias); 11 Sep 2017 12:02: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 49621 invoked by uid 48); 11 Sep 2017 12:02:13 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template
Date: Mon, 11 Sep 2017 12: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.1.0
X-Bugzilla-Keywords: wrong-code
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: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81525-4-QvnS1yOTSR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81525-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81525-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00810.txt.bz2
Content-length: 545

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 42155
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42155&action=edit
Rejects-valid testcase

This rather complex testcase was auto-reduced and provided on IRC. It fails
with current gcc-7-branch and compiles OK (with warnings) on trunk and
gcc-6-branch.

It was fixed on trunk by r250999, so presumably would be fixed on the
gcc-7-branch by re-applying r251001 now that the branch is unfrozen.
>From gcc-bugs-return-574782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 12:07:06 2017
Return-Path: <gcc-bugs-return-574782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29693 invoked by alias); 11 Sep 2017 12:07:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23379 invoked by uid 48); 11 Sep 2017 12:06:57 -0000
From: "matthew.thompson at nasa dot gov" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/34640] ICE when assigning item of a derived-component to a pointer
Date: Mon, 11 Sep 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: fortran
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthew.thompson at nasa dot gov
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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-34640-4-q1az6IWVpc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
References: <bug-34640-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00811.txt.bz2
Content-length: 216

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

--- Comment #39 from Matt Thompson <matthew.thompson at nasa dot gov> ---
Thanks! I'll keep an eye out for this in an upcoming release so I can test with
GEOS.
>From gcc-bugs-return-574783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 12:43:29 2017
Return-Path: <gcc-bugs-return-574783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56859 invoked by alias); 11 Sep 2017 12:43:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48101 invoked by uid 48); 11 Sep 2017 12:43:18 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82004] [8 Regression] SPEC CPU2017 628.pop2_s miscompare
Date: Mon, 11 Sep 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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82004-4-JnxtWpXDpU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82004-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82004-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00812.txt.bz2
Content-length: 1048

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

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

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

--- Comment #10 from Wilco <wilco at gcc dot gnu.org> ---
Using latest GLIBC, exp(log(10),-3) is only 3ULP different from 0.001. Since
(double)0.001 is rounded up, any <1ULP POW implementation could round down and
fail the test. So yes the first element in chlcnc really needs to be fixed to
0.00099999999999999 to allow for a few ULP of error in POW.

> As a last resort we can always choose to not touch 10**x

Unfortunately almost all useful cases are 10**x... So it would be great if we
can allow use of exp10 and exp2 to get more accurate results. This requires a
real implementation in GLIBC, and a way to disable it. Would it be feasible to
add a exp10 symbol to libgcc/libgfortran in case the math libraries don't
support it?
>From gcc-bugs-return-574784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 12:51:22 2017
Return-Path: <gcc-bugs-return-574784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103117 invoked by alias); 11 Sep 2017 12:51: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 103038 invoked by uid 48); 11 Sep 2017 12:51:18 -0000
From: "nunoplopes at sapo dot pt" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82177] New: Alias analysis too aggressive with integer-to-pointer cast
Date: Mon, 11 Sep 2017 12:51: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nunoplopes at sapo dot pt
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-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-82177-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00813.txt.bz2
Content-length: 2098

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

            Bug ID: 82177
           Summary: Alias analysis too aggressive with integer-to-pointer
                    cast
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nunoplopes at sapo dot pt
                CC: gil.hur at sf dot snu.ac.kr, jeehoon.kang at sf dot snu.ac.kr,
                    regehr at cs dot utah.edu, sanjoy at playingwithpointers dot com
  Target Milestone: ---

The following code gets miscompiled with gcc:

#include <stdio.h>
#include <stdint.h>

void f(int*, int*);

int main()
{
  int a=0, y[1], x = 0;
  uintptr_t pi = (uintptr_t) &x;
  uintptr_t yi = (uintptr_t) (y+1);
  uintptr_t n = pi != yi;

  if (n) {
    a = 100;
    pi = yi;
  }

  if (n) {
    a = 100;
    pi = (uintptr_t) y;
  }

  *(int *)pi = 15;

  printf("a=%d x=%d\n", a, x);

  f(&x,y);

  return 0;
}


$ gcc -O2 c.c b.c -o foo

$ ./foo
a=0 x=0

This result is wrong.  The two possible outcomes are: a=0 x=15, and a=100 x=0.

The bug seems to be in the alias analysis, which is not conservative enough in
handling integer-to-pointer casts. The wrong transformation happens at this
point (dump with -fdump-tree-all):

$ cat c.c.123t.pre
yi_8 = { y }
y = { ESCAPED NONLOCAL }
pi_4 = { y } same as yi_8
pi_9 = { y } same as yi_8
pi.0_10 = { y } same as yi_8

(...)

  pi_7 = (uintptr_t) &x;
  yi_8 = (uintptr_t) &MEM[(void *)&y + 4B];
  if (pi_7 != yi_8)
    goto <bb 4>;
  else
    goto <bb 3>;

  <bb 3>:
  # a_2 = PHI <0(2), 100(4)>
  # pi_4 = PHI <yi_8(2), pi_9(4)>
  pi.0_10 = (int *) pi_4;
  *pi.0_10 = 15;
  printf ("a=%d x=%d\n", a_2, 0);   // <-- constant folded across the *pi store
                                    // because it was incorrectly proven to not
                                    // alias with x

Test case by Gil Hur.
>From gcc-bugs-return-574785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 12:55:54 2017
Return-Path: <gcc-bugs-return-574785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106222 invoked by alias); 11 Sep 2017 12: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 106177 invoked by uid 48); 11 Sep 2017 12:55:50 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82177] Alias analysis too aggressive with integer-to-pointer cast
Date: Mon, 11 Sep 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: middle-end
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82177-4-IyqYxtGXBK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82177-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82177-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00814.txt.bz2
Content-length: 232

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I don't see how this can ever be defined code.

By definition yi will never be equal to pi unless by accident.
>From gcc-bugs-return-574786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 12:58:45 2017
Return-Path: <gcc-bugs-return-574786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11438 invoked by alias); 11 Sep 2017 12:58:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9624 invoked by uid 48); 11 Sep 2017 12:58:41 -0000
From: "nunoplopes at sapo dot pt" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82177] Alias analysis too aggressive with integer-to-pointer cast
Date: Mon, 11 Sep 2017 12: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nunoplopes at sapo dot pt
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82177-4-U8yxAVDZ4H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82177-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82177-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00815.txt.bz2
Content-length: 431

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

--- Comment #2 from Nuno Lopes <nunoplopes at sapo dot pt> ---
(In reply to Andrew Pinski from comment #1)
> I don't see how this can ever be defined code.
> 
> By definition yi will never be equal to pi unless by accident.

Sure, that's ok, but then pi = &x, and so the store '*(int*)pi = 15' should
write to x.
Right now it's printing x=0, which cannot be correct.
>From gcc-bugs-return-574787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 13:10:20 2017
Return-Path: <gcc-bugs-return-574787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128114 invoked by alias); 11 Sep 2017 13:10:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128059 invoked by uid 48); 11 Sep 2017 13:10:17 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82170] gcc optimizes int range-checking poorly on x86-64
Date: Mon, 11 Sep 2017 13:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.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-82170-4-EVMCrxDeW3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00816.txt.bz2
Content-length: 395

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

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

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'll have a look.
>From gcc-bugs-return-574788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 13:31:09 2017
Return-Path: <gcc-bugs-return-574788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34090 invoked by alias); 11 Sep 2017 13:31: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 33937 invoked by uid 48); 11 Sep 2017 13:30:56 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82178] New: bootstrap fails on ppc64 for --enable-symvers=gnu-versioned-namespace
Date: Mon, 11 Sep 2017 13:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build
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 cf_gcctarget
Message-ID: <bug-82178-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00817.txt.bz2
Content-length: 6708

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

            Bug ID: 82178
           Summary: bootstrap fails on ppc64 for
                    --enable-symvers=gnu-versioned-namespace
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc*-*-linux*

Making all in include
make[4]: Entering directory
`/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include'
mkdir -p ./powerpc64le-unknown-linux-gnu/bits/stdc++.h.gch
/home/jwakely/build-v8/./gcc/xgcc -shared-libgcc -B/home/jwakely/build-v8/./gcc
-nostdinc++
-L/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/src
-L/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/local/powerpc64le-unknown-linux-gnu/bin/
-B/usr/local/powerpc64le-unknown-linux-gnu/lib/ -isystem
/usr/local/powerpc64le-unknown-linux-gnu/include -isystem
/usr/local/powerpc64le-unknown-linux-gnu/sys-include    -x c++-header
-nostdinc++ -g -O2 -D_GNU_SOURCE 
-I/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu
-I/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include
-I/home/jwakely/src/gcc/libstdc++-v3/libsupc++  -O2 -g -std=gnu++0x
/home/jwakely/src/gcc/libstdc++-v3/include/precompiled/stdc++.h \
-o powerpc64le-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.h:2651:0,
                 from
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/basic_ios.h:37,
                 from
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/ios:44,
                 from
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/istream:38,
                 from
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/sstream:38,
                 from
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/complex:45,
                 from
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/ccomplex:39,
                 from
/home/jwakely/src/gcc/libstdc++-v3/include/precompiled/stdc++.h:52:
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1310:11:
error: ‘num_put’ is not a template function
     const num_put<char>&
           ^~~~~~~
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1310:18:
error: expected ‘;’ before ‘<’ token
     const num_put<char>&
                  ^
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1314:11:
error: ‘num_get’ is not a template function
     const num_get<char>&
           ^~~~~~~
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1314:18:
error: expected ‘;’ before ‘<’ token
     const num_get<char>&
                  ^
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1327:15:
error: ‘num_put’ was not declared in this scope
     has_facet<num_put<char> >(const locale&);
               ^~~~~~~
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1327:15:
note: suggested alternative: ‘time_put’
     has_facet<num_put<char> >(const locale&);
               ^~~~~~~
               time_put
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1327:5:
error: parse error in template argument list
     has_facet<num_put<char> >(const locale&);
     ^~~~~~~~~~~~~~~~~~~~~~~
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1327:5:
error: template-id ‘has_facet<<expression error> >’ used as a declarator
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1327:5:
error: ‘std::__8::has_facet(const std::__8::locale&)’ is not a variable
template
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1327:29:
error: expected ‘;’ before ‘>’ token
     has_facet<num_put<char> >(const locale&);
                             ^
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1331:15:
error: ‘num_get’ was not declared in this scope
     has_facet<num_get<char> >(const locale&);
               ^~~~~~~
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1331:15:
note: suggested alternative: ‘time_get’
     has_facet<num_get<char> >(const locale&);
               ^~~~~~~
               time_get
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1331:5:
error: parse error in template argument list
     has_facet<num_get<char> >(const locale&);
     ^~~~~~~~~~~~~~~~~~~~~~~
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1331:5:
error: template-id ‘has_facet<<expression error> >’ used as a declarator
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1331:5:
error: ‘std::__8::has_facet(const std::__8::locale&)’ is not a variable
template
/home/jwakely/build-v8/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:1331:29:
error: expected ‘;’ before ‘>’ token
     has_facet<num_get<char> >(const locale&);
                             ^

(and lots more errors for money_get and money_put as well).

This fails as far back as gcc 4.8 (I didn't try earlier) so doesn't seem to be
a regression. I didn't check, but based on configure.ac it probably also fails
on 64-bit {sparc,s390,alpha}*-*-linux* targets too.

Rather than fixing it on trunk, I think we can just drop the ldbl compat
symbols for the versioned namespace build, since backwards compatibility is an
explicit non-goal of that configuration.
>From gcc-bugs-return-574789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 13:44:42 2017
Return-Path: <gcc-bugs-return-574789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102021 invoked by alias); 11 Sep 2017 13: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 92597 invoked by uid 48); 11 Sep 2017 13:44:34 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81325] -fcompare-debug failure on ppc64le
Date: Mon, 11 Sep 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: target
X-Bugzilla-Version: 8.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-81325-4-jsyKdClNlG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81325-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81325-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00818.txt.bz2
Content-length: 2964

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

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

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Unfortunately confirmed, caused by (probably) in RTL expansion:

try_optimize_cfg iteration 1

Merging block 3 into block 2...
Merged blocks 2 and 3.
Merged 2 and 3 without moving.
Forwarding edge 17->18 to 19 failed.

Where w/o -g there's no forwarding failure. The CFG diverges here:

  <bb 9> [53.47%] [count: INV]:
  # DEBUG D#8 => &g
  # DEBUG D#9 => D#8
  # DEBUG this => D#9
  # DEBUG a => 0B
  # DEBUG this => 0B
  # DEBUG D#2 => &MEM[(struct F *)0B].RefCount.D.2982
  # DEBUG this => D#2
  _77 = &MEM[(struct C *)0B]._M_i;
  __atomic_fetch_add_4 (_77, 0, 0);
  # DEBUG this => NULL
[some # DEBUG...]
  # DEBUG this => D#2
  __atomic_fetch_add_4 (_77, 0, 0);
  # DEBUG this => NULL

Because __atomic_fetch_add_4 is eventually expanded as:


(code_label 93 92 436 8 5 (nil) [1 uses])
(note 436 93 94 8 [bb 8] NOTE_INSN_BASIC_BLOCK)
(insn 94 436 95 8 (set (reg:SI 152)
        (unspec_volatile:SI [
                (mem/v:SI (reg/f:DI 131 [ _76 ]) [-1  S4 A128])
            ] UNSPECV_LL)) "/home/marxin/Programming/testcases/pr82325.cpp":7
-1
     (nil))
(insn 95 94 96 8 (set (reg:SI 153)
        (plus:SI (reg:SI 152)
            (const_int 0 [0])))
"/home/marxin/Programming/testcases/pr82325.cpp":7 -1
     (nil))
(insn 96 95 97 8 (parallel [
            (set (reg:CC 154)
                (unspec_volatile:CC [
                        (const_int 0 [0])
                    ] UNSPECV_SC))
            (set (mem/v:SI (reg/f:DI 131 [ _76 ]) [-1  S4 A128])
                (reg:SI 153))
        ]) "/home/marxin/Programming/testcases/pr82325.cpp":7 -1
     (nil))
(jump_insn 97 96 437 8 (set (pc)
        (if_then_else (ne (reg:CC 154)
                (const_int 0 [0]))
            (label_ref 93)
            (pc))) "/home/marxin/Programming/testcases/pr82325.cpp":7 -1
     (int_list:REG_BR_PROB 18 (nil))
 -> 93)

which is a loop. Due to that a different CFG is created. And the failure
'Forwarding edge 17->18 to 19 failed.' is attempt
to skip from first atomic fetch loop to another. Fails due to existence of
bunch of debug statements in between.
Huh, still not sure where is error, can we have one __atomic_fetch_add_4
following another? GIMPLE representation does
not represent fact that's a loop code.

Advice welcomed.
>From gcc-bugs-return-574790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 14:13:09 2017
Return-Path: <gcc-bugs-return-574790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33615 invoked by alias); 11 Sep 2017 14:13: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 33547 invoked by uid 48); 11 Sep 2017 14:13:00 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81800] [8 regression] on aarch64 ilp32 lrint should not be inlined as two instructions
Date: Mon, 11 Sep 2017 14:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81800-4-nwkMJ59XH6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00819.txt.bz2
Content-length: 246

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

--- Comment #4 from Qing Zhao <qing.zhao at oracle dot com> ---
since I cannot change the Assignee field, in order to avoid redundant work:
I am currently studying this bug and try to fix it.
>From gcc-bugs-return-574791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 14:32:00 2017
Return-Path: <gcc-bugs-return-574791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83876 invoked by alias); 11 Sep 2017 14:32:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 83792 invoked by uid 48); 11 Sep 2017 14:31:56 -0000
From: "up201407890 at fc dot up.pt" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82179] New: Use-after-free / double-free exploit mitigation request
Date: Mon, 11 Sep 2017 14: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: up201407890 at fc dot up.pt
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-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-82179-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00820.txt.bz2
Content-length: 454

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

            Bug ID: 82179
           Summary: Use-after-free / double-free exploit mitigation
                    request
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: up201407890 at fc dot up.pt
  Target Milestone: ---
>From gcc-bugs-return-574792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 14:42:00 2017
Return-Path: <gcc-bugs-return-574792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16396 invoked by alias); 11 Sep 2017 14:42: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 16348 invoked by uid 48); 11 Sep 2017 14:41:55 -0000
From: "up201407890 at fc dot up.pt" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82179] Use-after-free / double-free exploit mitigation request
Date: Mon, 11 Sep 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: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: up201407890 at fc dot up.pt
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82179-4-oKXVMUrtf7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82179-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82179-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00821.txt.bz2
Content-length: 2730

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

--- Comment #1 from Federico Bento <up201407890 at fc dot up.pt> ---
Hello,

This a request for an exploit mitigation to be added to the compiler, possibly
when making use of FORTIFY_SOURCE.

Something like the below, but at the compiler level:

#define SAFE_FREE(x) do { if((x) != 0x0) { free(x); (x) = (void *)0x1; } }
while(0)

After free(x), we set x to an address that will crash when dereferenced
(use-after-free), and will also crash when it's an argument to free().
Note that NULL isn't used, because free(NULL) does nothing, which might
hide potential double-free bugs.

This will detect use-after-free and double-free bugs by having the program
crash instead of allowing various heap grooms and further exploitation.

After discussion with Martin Sebor and Florian Weimer in the libc-alpha list,
it was pointed out to me to post the request here for further interest.

https://sourceware.org/ml/libc-alpha/2017-09/msg00238.html
https://sourceware.org/ml/libc-alpha/2017-09/msg00423.html

Below are some examples of how it works,

Crashes when use-after-free:

$ cat test.c
#include <unistd.h>
#include <stdlib.h>

#define SAFE_FREE(x) do { if((x) != 0x0) { free(x); (x)=(void *)0x1; } }
while(0)

struct unicorn_counter { int num; };

int main() {
    struct unicorn_counter* p_unicorn_counter;
    int* run_calc = malloc(sizeof(int));
    *run_calc = 0;
    SAFE_FREE(run_calc);
    //SAFE_FREE(run_calc);
    p_unicorn_counter = malloc(sizeof(struct unicorn_counter));
    p_unicorn_counter->num = 42;
    if (*run_calc) // use-after-free
       execlp("/usr/bin/id", "id", 0);
}

$ gcc test.c
$ ./a.out
Segmentation fault
$ gdb ./a.out
gdb$ r

...

0x4005ed <main+87>:     mov    eax,DWORD PTR [rax]

Stopped reason: SIGSEGV
0x00000000004005ed in main ()
gdb$ print /x $rax
$1 = 0x1



Crashes when double-free, by uncommenting 2nd SAFE_FREE(run_calc):

$ cat test.c
#include <unistd.h>
#include <stdlib.h>

#define SAFE_FREE(x) do { if((x) != 0x0) { free(x); (x)=(void *)0x1; } }
while(0)

struct unicorn_counter { int num; };

int main() {
    struct unicorn_counter* p_unicorn_counter;
    int* run_calc = malloc(sizeof(int));
    *run_calc = 0;
    SAFE_FREE(run_calc);
    SAFE_FREE(run_calc); // double-free
    p_unicorn_counter = malloc(sizeof(struct unicorn_counter));
    p_unicorn_counter->num = 42;
    if (*run_calc) execlp("/usr/bin/id", "id", 0);
}

$ gcc test.c
$ gdb ./a.out
gdb$ r

...

0x7ffff7aad614 <__GI___libc_free+20>:   mov    rax,QWORD PTR [rdi-0x8]

Stopped reason: SIGSEGV
__GI___libc_free (mem=0x1) at malloc.c:2929
warning: Source file is more recent than executable.
$ print /x $rdi
$1 = 0x1
>From gcc-bugs-return-574794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 14:45:48 2017
Return-Path: <gcc-bugs-return-574794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54433 invoked by alias); 11 Sep 2017 14:45:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 54383 invoked by uid 48); 11 Sep 2017 14:45:45 -0000
From: "up201407890 at fc dot up.pt" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82179] Use-after-free / double-free exploit mitigation request
Date: Mon, 11 Sep 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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: up201407890 at fc dot up.pt
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82179-4-t4ehYn24oW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82179-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82179-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00823.txt.bz2
Content-length: 243

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

--- Comment #2 from Federico Bento <up201407890 at fc dot up.pt> ---
I pressed enter before entering a description, so the actual description is
comment 1. Sorry for that.

Federico Bento.
>From gcc-bugs-return-574793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 14:45:30 2017
Return-Path: <gcc-bugs-return-574793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53539 invoked by alias); 11 Sep 2017 14: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 53250 invoked by uid 48); 11 Sep 2017 14:45:00 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81800] [8 regression] on aarch64 ilp32 lrint should not be inlined as two instructions
Date: Mon, 11 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tnfchris at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-81800-4-GQC3R0UjsM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00822.txt.bz2
Content-length: 450

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |tnfchris at gcc dot gnu.org

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00522.html
>From gcc-bugs-return-574795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 14:46:32 2017
Return-Path: <gcc-bugs-return-574795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82054 invoked by alias); 11 Sep 2017 14:46:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77101 invoked by uid 48); 11 Sep 2017 14:46:29 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81800] [8 regression] on aarch64 ilp32 lrint should not be inlined as two instructions
Date: Mon, 11 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tnfchris at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81800-4-KUdmXK2dyr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81800-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00824.txt.bz2
Content-length: 463

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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Qing Zhao from comment #4)
> since I cannot change the Assignee field, in order to avoid redundant work:
> I am currently studying this bug and try to fix it.

Tamar is already working on it and has since August.
https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00782.html
https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00522.html
>From gcc-bugs-return-574796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 14:49:22 2017
Return-Path: <gcc-bugs-return-574796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102065 invoked by alias); 11 Sep 2017 14:49: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 102003 invoked by uid 48); 11 Sep 2017 14:49:18 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81325] -fcompare-debug failure on ppc64le
Date: Mon, 11 Sep 2017 14: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: 8.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-81325-4-ClELG3tyQV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81325-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81325-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00825.txt.bz2
Content-length: 137

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'll have a look.
>From gcc-bugs-return-574797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 15:03:52 2017
Return-Path: <gcc-bugs-return-574797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111499 invoked by alias); 11 Sep 2017 15:03: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 111469 invoked by uid 48); 11 Sep 2017 15:03:47 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82180] New: assign_spill_hard_regs spills to unaligned register pair
Date: Mon, 11 Sep 2017 15:03: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: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82180-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00826.txt.bz2
Content-length: 2842

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

            Bug ID: 82180
           Summary: assign_spill_hard_regs spills to unaligned register
                    pair
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Consider the gcn target (currently only available upstream on the gcn branch).
For SGPR regs, it requires aligned register pairs, in other words (r0, r1) is
ok, but (r1, r2) is not ok, and gcn_hard_regno_mode_ok is setup accordingly.

However, I'm running into spills being generated by lra using an unaligned
register pair (in this case, it's (r67, r77)):
...
;(insn 53501 58177 3793 633 (set (reg:DI 67 s67)
;        (reg:DI 42 s42 [4460])) "minlocval_3.f90":59 16 {*movdi_insn}
;     (nil))
...
The compiler finishes without problems, but the assembler complains.

I've traced the introduction of the unaligned register pair back to
assign_spill_hard_regs. Using this patch, I can detect the problem at runtime:
...
diff --git a/gcc/lra-spills.c b/gcc/lra-spills.c
index 492fc18..476ce3d 100644
--- a/gcc/lra-spills.c
+++ b/gcc/lra-spills.c
@@ -71,6 +71,7 @@ along with GCC; see the file COPYING3.        If not see
 #include "cfgrtl.h"
 #include "lra.h"
 #include "lra-int.h"
+#include "tm_p.h"


 /* Max regno at the start of the pass. */
@@ -292,6 +293,7 @@ assign_spill_hard_regs (int *pseudo_regnos, int n)
        for (p = r->start; p <= r->finish; p++)
          add_to_hard_reg_set (&reserved_hard_regs[p],
                               lra_reg_info[regno].biggest_mode, hard_regno);
+      gcc_assert (HARD_REGNO_MODE_OK (hard_regno, PSEUDO_REGNO_MODE (regno)));
       spill_hard_reg[regno]
        = gen_raw_REG (PSEUDO_REGNO_MODE (regno), hard_regno);
       for (nr = 0;
...

Trying a bit harder, I can fix the problem by skipping over the unaligned
register here:
...
diff --git a/gcc/lra-spills.c b/gcc/lra-spills.c
index 492fc18..6ecfad2 100644
--- a/gcc/lra-spills.c
+++ b/gcc/lra-spills.c
@@ -276,7 +276,10 @@ assign_spill_hard_regs (int *pseudo_regnos, int n)
       for (k = 0; k < spill_class_size; k++)
        {
          hard_regno = ira_class_hard_regs[spill_class][k];
-         if (! overlaps_hard_reg_set_p (conflict_hard_regs, mode, hard_regno))
+         if (! ira_prohibited_class_mode_regs[spill_class][PSEUDO_REGNO_MODE
(regno)]
+             && ! overlaps_hard_reg_set_p (conflict_hard_regs, mode,
+                                           hard_regno))
            break;
        }
       if (k >= spill_class_size)
...

Unfortunately, I've not yet managed to reproduce this problem on an upstream
branch.
>From gcc-bugs-return-574798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 15:21:18 2017
Return-Path: <gcc-bugs-return-574798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43317 invoked by alias); 11 Sep 2017 15:21:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 43234 invoked by uid 48); 11 Sep 2017 15:21:14 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82168] Parameterized Derived Types, problems with default type parameters
Date: Mon, 11 Sep 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: fortran
X-Bugzilla-Version: 8.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 assigned_to
Message-ID: <bug-82168-4-Y4UwWuxXq7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82168-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82168-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00827.txt.bz2
Content-length: 1092

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

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

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

--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #1)
> Confirmed. Is the code valid?
> 
> module mod
> implicit none
> 
> integer, parameter :: dp = kind (0.0d0)
> 
> type, public :: v(z, k)
>    integer, len :: z
>    integer, kind :: k
>    real(kind = k) :: e(z)
> end type v
> 
> end module mod
> 
> program bug
> use mod
> implicit none
> 
> type (v(2,dp)) :: a
> 
> a%e = 1.0
> print *, a%e
> end program bug
> 
> prints
> 
>    1.0000000000000000        1.0000000000000000

Dear Dominique,

Your example is legal.

Thanks for following this.

The original contains two bugs and so I have confirmed this PR as NEW.

Cheers

Paul
>From gcc-bugs-return-574799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 15:21:29 2017
Return-Path: <gcc-bugs-return-574799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44064 invoked by alias); 11 Sep 2017 15:21:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 43983 invoked by uid 48); 11 Sep 2017 15:21:24 -0000
From: "benni.buch at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/72752] [6 Regression] ICE: in retrieve_specialization, at cp/pt.c:1183
Date: Mon, 11 Sep 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: 6.1.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: benni.buch 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.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-72752-4-22PfkoopUt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72752-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72752-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00828.txt.bz2
Content-length: 2363

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

Benjamin Buch <benni.buch at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |benni.buch at gmail dot com

--- Comment #11 from Benjamin Buch <benni.buch at gmail dot com> ---
template< typename >
struct Outer
{
  template< typename >
  struct Inner;
};

template<>
template< typename _T_ >
class Outer< _T_ >::Inner< _T_ >
{};

template struct Outer< int >::Inner< int >;


This test case still fails in Trunk:

$ g++ gcc-test.cpp                                                              
gcc-test.cpp:10:21: internal compiler error: in retrieve_specialization, at
cp/pt.c:1189
 class Outer< _T_ >::Inner< _T_ >
                     ^~~~~~~~~~~~
0x63457f retrieve_specialization
        ../../gcc/gcc/cp/pt.c:1186
0xa6445e tsubst_template_decl
        ../../gcc/gcc/cp/pt.c:12477
0xa5fe7e tsubst_decl
        ../../gcc/gcc/cp/pt.c:12646
0xa5a097 tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/gcc/cp/pt.c:13538
0xa4edad most_specialized_partial_spec
        ../../gcc/gcc/cp/pt.c:22160
0xa77278 instantiate_class_template_1
        ../../gcc/gcc/cp/pt.c:10330
0xa77278 instantiate_class_template(tree_node*)
        ../../gcc/gcc/cp/pt.c:10898
0xabc5ad complete_type(tree_node*)
        ../../gcc/gcc/cp/typeck.c:136
0xa72c0e do_type_instantiation(tree_node*, tree_node*, int)
        ../../gcc/gcc/cp/pt.c:22425
0xa280fb cp_parser_explicit_instantiation
        ../../gcc/gcc/cp/parser.c:16430
0xa2f181 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:12655
0xa2f56b cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:12579
0xa2f89a cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4387
0xa2f89a c_parse_file()
        ../../gcc/gcc/cp/parser.c:38799
0xb29786 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1106
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.

$ g++ --version
g++ (GCC) 8.0.0 20170911 (experimental)
>From gcc-bugs-return-574800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 15:22:56 2017
Return-Path: <gcc-bugs-return-574800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45535 invoked by alias); 11 Sep 2017 15:22: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 45486 invoked by uid 48); 11 Sep 2017 15:22:52 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82173] [meta-bug] Parameterized derived type errors
Date: Mon, 11 Sep 2017 15: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: 8.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: assigned_to
Message-ID: <bug-82173-4-AhiGxesniG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82173-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82173-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00829.txt.bz2
Content-length: 433

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |pault at gcc dot gnu.org

--- Comment #1 from Paul Thomas <pault at gcc dot gnu.org> ---
Dear Thomas,

Thanks for doing that.

Cheers

Paul
>From gcc-bugs-return-574801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 15:42:40 2017
Return-Path: <gcc-bugs-return-574801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75426 invoked by alias); 11 Sep 2017 15:42: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 75360 invoked by uid 48); 11 Sep 2017 15:42:36 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82179] Use-after-free / double-free exploit mitigation request
Date: Mon, 11 Sep 2017 15:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc see_also
Message-ID: <bug-82179-4-HQhy2OBZhs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82179-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82179-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00830.txt.bz2
Content-length: 562

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Related: bug 80532
>From gcc-bugs-return-574802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 15:47:21 2017
Return-Path: <gcc-bugs-return-574802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75287 invoked by alias); 11 Sep 2017 15:47: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 68070 invoked by uid 48); 11 Sep 2017 15:47:16 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80700] [7/8 Regression] ICE: Bus error (on SPE target)
Date: Mon, 11 Sep 2017 15:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80700-4-rU2Jo7CRu9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80700-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80700-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00831.txt.bz2
Content-length: 2408

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

--- Comment #3 from Peter Bergner <bergner at gcc dot gnu.org> ---
I don't think my patch is the cause of the problem, more like it just exposed
more problems in the SPE code.  After RA, we call into LRA to spill a pseudo
that did not get allocated a register:

Breakpoint 5, lra (f=0x0) at
/home/bergner/gcc/gcc-fsf-mainline-pr80700/gcc/lra.c:2319
2319      lra_dump_file = f;
(gdb) prx 398
(insn 398 400 41 4 (set (reg:SI 564 [+4 ])
        (subreg:SI (reg:V2SI 156 [ _2 ]) 4)) "pr80700.i":16 2072
{*mov_siv2si_e500_subreg4_2_be}
     (expr_list:REG_DEAD (reg:V2SI 156 [ _2 ])
        (nil)))

(gdb) p reg_renumber[564]
$1 = 65
(gdb) p reg_renumber[156]
$2 = -1

Then during LRA, insn 398 gets copied into a simple reg copy, which causes use
to SEGV (or trapped by rtl checking) because the subreg isn't there anymore:


(gdb) c
Continuing.
during RTL pass: reload
pr80700.i: In function ‘i5’:
pr80700.i:21:1: internal compiler error: RTL check: expected elt 0 type 'e' or
'u', have 'r' (rtx reg) in insn_extract, at insn-extract.c:3776
 }
 ^
0x10cdc60b rtl_check_failed_type2(rtx_def const*, int, int, int, char const*,
int, char const*)
        /home/bergner/gcc/gcc-fsf-mainline-pr80700/gcc/rtl.c:820
0x1177ce83 insn_extract(rtx_insn*)
       
/home/bergner/gcc/build/gcc-fsf-mainline-pr80700-rtl-debug/gcc/insn-extract.c:3776
0x10c25147 extract_insn(rtx_insn*)
        /home/bergner/gcc/gcc-fsf-mainline-pr80700/gcc/recog.c:2317
0x10c246f7 extract_constrain_insn(rtx_insn*)
        /home/bergner/gcc/gcc-fsf-mainline-pr80700/gcc/recog.c:2211
0x10a67653 check_rtl
        /home/bergner/gcc/gcc-fsf-mainline-pr80700/gcc/lra.c:2128
0x10a68e03 lra(_IO_FILE*)
        /home/bergner/gcc/gcc-fsf-mainline-pr80700/gcc/lra.c:2546
0x109dcebf do_reload
        /home/bergner/gcc/gcc-fsf-mainline-pr80700/gcc/ira.c:5440
0x109dd63f execute
        /home/bergner/gcc/gcc-fsf-mainline-pr80700/gcc/ira.c:5624
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.

Breakpoint 4, 0x0fc0be64 in exit () from /lib/power7/libc.so.6
(gdb) prx 398
(insn 398 526 525 4 (set (reg:SI 27 27 [orig:564+4 ] [564])
        (reg:SI 648)) "pr80700.i":16 2072 {*mov_siv2si_e500_subreg4_2_be}
     (nil))
>From gcc-bugs-return-574803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 16:19:11 2017
Return-Path: <gcc-bugs-return-574803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115433 invoked by alias); 11 Sep 2017 16: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 115354 invoked by uid 48); 11 Sep 2017 16:19:07 -0000
From: "nunoplopes at sapo dot pt" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82177] Alias analysis too aggressive with integer-to-pointer cast
Date: Mon, 11 Sep 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: middle-end
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nunoplopes at sapo dot pt
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82177-4-Ocf6uc6vKm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82177-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82177-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00832.txt.bz2
Content-length: 187

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

--- Comment #3 from Nuno Lopes <nunoplopes at sapo dot pt> ---
Sorry, I forgot to include the code for b.c:

void f(int*x, int*y) {}
>From gcc-bugs-return-574804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 16:53:46 2017
Return-Path: <gcc-bugs-return-574804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35725 invoked by alias); 11 Sep 2017 16: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 35688 invoked by uid 55); 11 Sep 2017 16:53:41 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82158] _Noreturn functions that do return clobber caller's registers on ARM32 (but not other arches)
Date: Mon, 11 Sep 2017 16:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery 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-82158-4-jwMCNQG5DC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82158-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82158-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00833.txt.bz2
Content-length: 294

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

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Falling off a noreturn function sounds like it could be another case to 
insert __builtin_trap (), as we do in various cases of undefined behavior.
>From gcc-bugs-return-574805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 17:14:55 2017
Return-Path: <gcc-bugs-return-574805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81604 invoked by alias); 11 Sep 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 79625 invoked by uid 48); 11 Sep 2017 17:14:49 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/42579] [PATCH] support for obtaining file basename
Date: Mon, 11 Sep 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: 4.5.0
X-Bugzilla-Keywords: patch
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-42579-4-rsqScFePwV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42579-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42579-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00834.txt.bz2
Content-length: 277

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Please send patches to the gcc-patches mailing list for review. Patches in
bugzilla are easily overlooked or forgotten.

https://gcc.gnu.org/contribute.html
>From gcc-bugs-return-574806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 17:15:38 2017
Return-Path: <gcc-bugs-return-574806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8585 invoked by alias); 11 Sep 2017 17:15: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 5242 invoked by uid 48); 11 Sep 2017 17:15:33 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/82176] Feature request: replace __FILE__ with file's basename instead its full name
Date: Mon, 11 Sep 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: preprocessor
X-Bugzilla-Version: 6.3.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: see_also bug_severity
Message-ID: <bug-82176-4-bWRVLOC8kV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82176-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82176-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00835.txt.bz2
Content-length: 592

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

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

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
See PR 42579 which has a patch to add __FILE_BASENAME__ for this purpose.
>From gcc-bugs-return-574807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 17:26:01 2017
Return-Path: <gcc-bugs-return-574807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53978 invoked by alias); 11 Sep 2017 17:26: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 53495 invoked by uid 48); 11 Sep 2017 17:25:56 -0000
From: "f.hollerer at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/82176] Feature request: replace __FILE__ with file's basename instead its full name
Date: Mon, 11 Sep 2017 17:26: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: f.hollerer at gmx dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82176-4-QNZak0gAC1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82176-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82176-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg00836.txt.bz2
Content-length: 322

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

--- Comment #2 from f.hollerer at gmx dot net ---
> See PR 42579 which has a patch to add __FILE_BASENAME__ for this purpose.

Unfortunately this does not solve the problem when __FILE__ is used indirectly
via the assert() macro shipped with the compiler toolchain.
>From gcc-bugs-return-574808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 11 17:49:58 2017
Return-Path: <gcc-bugs-return-574808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4673 invoked by alias); 11 Sep 2017 17: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 2122 invoked by uid 89); 11 Sep 2017 17:49:56 -0000
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.3 required=5.0 testsºYES_50,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=H*r:4.80.1, H*r:UNKNOWN, HTo:U*bug-gcc, H*r:bug-gcc@gnu.org
X-HELO: fencepost.gnu.org
Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Sep 2017 17:49:55 +0000
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41837)	by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256)	(Exim 4.82)	(envelope-from <w.d.dolorita@xmsnet.nl>)	id 1drSqG-0006Mr-VV	for bug-gcc@gnu.org; Mon, 11 Sep 2017 13:49:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)	(envelope-from <w.d.dolorita@xmsnet.nl>)	id 1drSqB-0008FO-UX	for bug-gcc@gnu.org; Mon, 11 Sep 2017 13:49:52 -0400
Received: from smtp-3.concepts.nl ([213.197.30.127]:47623)	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)	(Exim 4.71)	(envelope-from <w.d.dolorita@xmsnet.nl>)	id 1drSqB-0008D4-Ni	for bug-gcc@gnu.org; Mon, 11 Sep 2017 13:49:47 -0400
Received: from [14.185.205.147] (helo=WIN-8V9V5HU5TD5)	by smtp-3.concepts.nl with esmtpsa (UNKNOWN:DHE-RSA-AES256-GCM-SHA384:256)	(Exim 4.80.1)	(envelope-from <w.d.dolorita@xmsnet.nl>)	id 1drSpw-000AaC-1o	for bug-gcc@gnu.org; Mon, 11 Sep 2017 19:49:32 +0200
From: "Isaiah C Money" <w.d.dolorita@xmsnet.nl>
To: bug-gcc@gnu.org
Subject: =?UTF-8?Q?52703620146:403?Date: Mon, 11 Sep 2017 17:49:00 -0000
MIME-Version: 1.0
Content-type: Multipart/mixed; boundary="------------639104295112935885384879"
Content-Description: Multipart message
X-Concepts-MailScanner-Information: Please contact abuse@concepts.nl for more information
X-Concepts-MailScanner-ID: 1drSpw-000AaC-1o
X-Concepts-MailScanner: Found to be clean
X-Concepts-MailScanner-SpamCheck:
X-Concepts-MailScanner-From: w.d.dolorita@xmsnet.nl
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
Message-ID: <E1drSqB-0008D4-Ni@eggs.gnu.org>
X-Received-From: 213.197.30.127
X-SW-Source: 2017-09/txt/msg00837.txt.bz2


--------------639104295112935885384879
Content-type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Description: Message text
Content-length: 597

This notification has been automatically generated and sent to you because Better Business Bureau has received an abuse, claiming that your company is violating the The Safety and Health Act.

You can download the text file with the explication of compliant by following the link https://bit.ly/2jhSMKP

We also request that you send a response in 24 hours to us. This response should contain info about what you plan to do with it.

Important notice:
When replying to us, leave the abuse ID "52703620146:403" native in the subject  line.

Better Business Bureau
Abuse Department
Isaiah C Money



--------------639104295112935885384879--


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

* [Bug c++/64867] split warning for passing non-POD to varargs function from -Wconditionally-supported into new warning flag, -Wnon-pod-varargs
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2017-09-05 14:11 ` rsandifo at gcc dot gnu.org
@ 2021-09-03 18:17 ` dcb314 at hotmail dot com
  2022-12-05 15:05 ` jason at gcc dot gnu.org
  2022-12-19 15:56 ` cvs-commit at gcc dot gnu.org
  14 siblings, 0 replies; 16+ messages in thread
From: dcb314 at hotmail dot com @ 2021-09-03 18:17 UTC (permalink / raw)
  To: gcc-bugs

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

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #30 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Trass3r from comment #27)
> This should really be enabled by -Wall or -Wextra as it generates code that
> may easily crash or corrupt something.

+1.

Clang errors, intel warns and for gcc you have to enable the somewhat
obscure flag -Wconditionally-supported to see anything at all.

gcc looks to be a trailer on this issue. It's not about standards conformance,
its about making it easy for users to find bugs.

Source code I used is:

struct S
{
        S();
        S( const S &);
        ~S();

        char * p;
};

void f( int, ...);

void g()
{
        S s1;

        f( 3, s1);
};

$ /home/dcb/llvm/results/bin/clang++   sep3f.cc
sep3f.cc:19:8: error: cannot pass object of non-trivial type 'S' through
variadic function; call will abort at runtime [-Wnon-pod-varargs]
        f( 3, s1);
              ^
1 error generated.

$ /home/dcb34/intel/oneapi/compiler/2021.3.0/linux/bin/intel64/icpc  sep3f.cc
sep3f.cc(19): warning #1595: a class type that is not trivially copyable passed
through ellipsis
        f( 3, s1);
              ^

$ /home/dcb/gcc/results/bin/g++ -c -g -O2 -Wall -Wextra  sep3f.cc
$ /home/dcb/gcc/results/bin/g++ -c -g -O2 -Wall -Wextra
-Wconditionally-supported sep3f.cc
sep3f.cc: In function ‘void g()’:
sep3f.cc:19:10: warning: passing objects of non-trivially-copyable type ‘struct
S’ through ‘...’ is conditionally supported [-Wconditionally-supported]
   19 |         f( 3, s1);
      |         ~^~~~~~~~


I'll add flag -Wconditionally-supported to a build of Fedora and see
what happens.

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

* [Bug c++/64867] split warning for passing non-POD to varargs function from -Wconditionally-supported into new warning flag, -Wnon-pod-varargs
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (12 preceding siblings ...)
  2021-09-03 18:17 ` [Bug c++/64867] split warning for passing non-POD to varargs function from -Wconditionally-supported into new warning flag, -Wnon-pod-varargs dcb314 at hotmail dot com
@ 2022-12-05 15:05 ` jason at gcc dot gnu.org
  2022-12-19 15:56 ` cvs-commit at gcc dot gnu.org
  14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2022-12-05 15:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #31 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to David Binderman from comment #30)
> gcc looks to be a trailer on this issue. It's not about standards conformance,
> its about making it easy for users to find bugs.

But under GCC it's not a bug, it just works.  Clang is welcome to adopt the
same semantics.  But I'm also happy to accept the patch in comment #17 once it
includes testing.

And GCC should build with -Wconditionally-supported so we support bootstrapping
with compilers that make different choices.

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

* [Bug c++/64867] split warning for passing non-POD to varargs function from -Wconditionally-supported into new warning flag, -Wnon-pod-varargs
  2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
                   ` (13 preceding siblings ...)
  2022-12-05 15:05 ` jason at gcc dot gnu.org
@ 2022-12-19 15:56 ` cvs-commit at gcc dot gnu.org
  14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-12-19 15:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #32 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:263c22a95bc9a0d80c4873c0291b0f938cea7310

commit r13-4795-g263c22a95bc9a0d80c4873c0291b0f938cea7310
Author: Jason Merrill <jason@redhat.com>
Date:   Mon Dec 5 10:00:31 2022 -0500

    build: add -Wconditionally-supported to strict_warn [PR64867]

    The PR (which isn't resolved by this commit) pointed out to me that GCC
    should build with -Wconditionally-supported to support bootstrapping with a
    C++11 compiler that makes different choices.

            PR c++/64867

    gcc/ChangeLog:

            * configure.ac (strict_warn): Add -Wconditionally-supported.
            * configure: Regenerate.

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

end of thread, other threads:[~2022-12-19 15:56 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-29 17:38 [Bug c++/64867] New: warning for passing non-POD to varargs function tromey at gcc dot gnu.org
2015-01-29 18:28 ` [Bug c++/64867] " pinskia at gcc dot gnu.org
2015-01-29 18:30 ` redi at gcc dot gnu.org
2015-01-29 18:31 ` jason at gcc dot gnu.org
2015-01-29 20:45 ` tromey at gcc dot gnu.org
2015-01-30 17:04 ` tromey at gcc dot gnu.org
2015-01-30 17:12 ` tromey at gcc dot gnu.org
2015-01-30 17:23 ` pinskia at gcc dot gnu.org
2015-01-30 17:26 ` pinskia at gcc dot gnu.org
2015-01-30 17:40 ` tromey at gcc dot gnu.org
2015-01-31  2:37 ` redi at gcc dot gnu.org
2015-02-02 19:38 ` tromey at gcc dot gnu.org
2017-09-05 14:11 ` rsandifo at gcc dot gnu.org
2021-09-03 18:17 ` [Bug c++/64867] split warning for passing non-POD to varargs function from -Wconditionally-supported into new warning flag, -Wnon-pod-varargs dcb314 at hotmail dot com
2022-12-05 15:05 ` jason at gcc dot gnu.org
2022-12-19 15:56 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).