public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65870] New: Explicit function instantiation with default valued lambda causes duplicate symbol
@ 2015-04-23 22:26 w.shane.grant at gmail dot com
  2015-04-24 10:04 ` [Bug c++/65870] " redi at gcc dot gnu.org
  2017-08-17 18:44 ` jj at stusta dot net
  0 siblings, 2 replies; 3+ messages in thread
From: w.shane.grant at gmail dot com @ 2015-04-23 22:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65870
           Summary: Explicit function instantiation with default valued
                    lambda causes duplicate symbol
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: w.shane.grant at gmail dot com

When explicitly instantiating functions with default lambda parameters, g++
generates multiple versions of the lambda with the same symbol names.

I've created a minimal example:

struct Any
{
  template <class T>
  Any( T const & ){}
};

template <class T>
void func( T t, Any a = [](){} ){}

template void func<int>( int, Any );
template void func<double>( double, Any );

int main()
{
  func( 3 );
  func( 3.0 );

  return 0;
}

Compiled with g++ -std=c++11 (4.7.4, 4.8.3, and 4.9.1) , this causes the error:

/tmp/ccND7XlM.s:104: Error: symbol `_ZN3AnyC2IUlvE_EERKT_' is already defined

If this is indeed incorrect behavior (I don't know enough about the spec to
confirm this), I believe the problem is that the name mangling for the lambda
is not taking the parent template into account.


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

* [Bug c++/65870] Explicit function instantiation with default valued lambda causes duplicate symbol
  2015-04-23 22:26 [Bug c++/65870] New: Explicit function instantiation with default valued lambda causes duplicate symbol w.shane.grant at gmail dot com
@ 2015-04-24 10:04 ` redi at gcc dot gnu.org
  2017-08-17 18:44 ` jj at stusta dot net
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-04-24 10:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-04-24
     Ever confirmed|0                           |1


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

* [Bug c++/65870] Explicit function instantiation with default valued lambda causes duplicate symbol
  2015-04-23 22:26 [Bug c++/65870] New: Explicit function instantiation with default valued lambda causes duplicate symbol w.shane.grant at gmail dot com
  2015-04-24 10:04 ` [Bug c++/65870] " redi at gcc dot gnu.org
@ 2017-08-17 18:44 ` jj at stusta dot net
  1 sibling, 0 replies; 3+ messages in thread
From: jj at stusta dot net @ 2017-08-17 18:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jonas Jelten <jj at stusta dot net> ---
This is probably the same as bug 59949, and still present in 6.4.0.
>From gcc-bugs-return-572518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 16:37:07 2017
Return-Path: <gcc-bugs-return-572518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115057 invoked by alias); 17 Aug 2017 16:37:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 114744 invoked by uid 48); 17 Aug 2017 16:37:01 -0000
From: "james410 at cowgill dot org.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81803] [7/8 regression] miscompilation at -O1 on mips64el
Date: Thu, 17 Aug 2017 18: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: james410 at cowgill dot org.uk
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-81803-4-FkwGpoZhKK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81803-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81803-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02077.txt.bz2
Content-length: 2023

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

--- Comment #5 from James Cowgill <james410 at cowgill dot org.uk> ---
I have just noticed this which seems curious. Is the 39 -> 40 combine really a
valid transformation? It seems we've lost the sign extension and we're just
putting a 32-bit value into a 64-bit register without trying to clear the upper
bits anymore?

Before
-----
(insn 38 37 39 3 (set (reg:SI 235)
        (ne:SI (reg:SI 234 [ h ])
            (const_int 0 [0]))) "reduced.c":16 500 {*sne_zero_sisi}
     (expr_list:REG_DEAD (reg:SI 234 [ h ])
        (nil)))
(insn 39 38 40 3 (set (reg:HI 233)
        (subreg:HI (reg:SI 235) 0)) "reduced.c":16 358 {*movhi_internal}
     (expr_list:REG_DEAD (reg:SI 235)
        (nil)))
(insn 40 39 133 3 (set (reg:DI 207 [ iftmp.3_18 ])
        (sign_extend:DI (reg:HI 233))) "reduced.c":16 244 {*extendhidi2_seh}
     (expr_list:REG_DEAD (reg:HI 233)
        (nil)))

combine
-----
Trying 39 -> 40:
Successfully matched this instruction:
(set (reg:DI 207 [ iftmp.3_18 ])
    (subreg:DI (reg:SI 235) 0))
allowing combination of insns 39 and 40
original costs 4 + 4 = 8
replacement cost 4
deferring deletion of insn with uid = 39.
modifying insn i3    40: r207:DI=r235:SI#0
      REG_DEAD r235:SI
deferring rescan insn with uid = 40.

Trying 38 -> 40:
Successfully matched this instruction:
(set (subreg:SI (reg:DI 207 [ iftmp.3_18 ]) 0)
    (ne:SI (reg:SI 234 [ h ])
        (const_int 0 [0])))
allowing combination of insns 38 and 40
original costs 4 + 4 = 8
replacement cost 4
deferring deletion of insn with uid = 38.
modifying insn i3    40: r207:DI#0=r234:SI!=0
      REG_DEAD r234:SI
deferring rescan insn with uid = 40.

After
------
(note 38 37 39 3 NOTE_INSN_DELETED)
(note 39 38 40 3 NOTE_INSN_DELETED)
(insn 40 39 133 3 (set (subreg:SI (reg:DI 207 [ iftmp.3_18 ]) 0)
        (ne:SI (reg:SI 234 [ h ])
            (const_int 0 [0]))) "reduced.c":16 500 {*sne_zero_sisi}
     (expr_list:REG_DEAD (reg:SI 234 [ h ])
        (nil)))
>From gcc-bugs-return-572519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 16:50:45 2017
Return-Path: <gcc-bugs-return-572519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68032 invoked by alias); 17 Aug 2017 16:50:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 60122 invoked by uid 55); 17 Aug 2017 16:50:39 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81859] [8 Regression] valgrind error from warn_about_normalization
Date: Thu, 17 Aug 2017 19:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81859-4-fu7h111d3O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81859-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81859-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02078.txt.bz2
Content-length: 585

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

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Thu Aug 17 16:50:06 2017
New Revision: 251157

URL: https://gcc.gnu.org/viewcvs?rev=251157&root=gcc&view=rev
Log:
PR c/81859 - [8 Regression] valgrind error from warn_about_normalization

gcc/ChangeLog:

        PR c/81859
        * pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
        past the end of an array.
        (test_pp_format): Add test cases.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/pretty-print.c
>From gcc-bugs-return-572520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 16:51:19 2017
Return-Path: <gcc-bugs-return-572520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103892 invoked by alias); 17 Aug 2017 16: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 98804 invoked by uid 48); 17 Aug 2017 16:51:10 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81859] [8 Regression] valgrind error from warn_about_normalization
Date: Thu, 17 Aug 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: patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status resolution
Message-ID: <bug-81859-4-i2JL9ES2xW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81859-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81859-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02079.txt.bz2
Content-length: 497

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

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

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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fix committed in r251157.
>From gcc-bugs-return-572521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 17:10:08 2017
Return-Path: <gcc-bugs-return-572521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34730 invoked by alias); 17 Aug 2017 17: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 34606 invoked by uid 48); 17 Aug 2017 17:10:03 -0000
From: "jj at stusta dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78919] Lambdas, default parameters and std::function cause assembly error
Date: Thu, 17 Aug 2017 19:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jj at stusta 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-78919-4-BoYYSll178@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78919-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78919-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02080.txt.bz2
Content-length: 247

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

--- Comment #1 from Jonas Jelten <jj at stusta dot net> ---
Probably the same as bug 59949, if the default value is always created for a
template even if the call overwrites the default value.
>From gcc-bugs-return-572522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 17:16:12 2017
Return-Path: <gcc-bugs-return-572522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58547 invoked by alias); 17 Aug 2017 17:16:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53774 invoked by uid 48); 17 Aug 2017 17:16:02 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/78804] [RX] -m64bit-doubles does not work
Date: Thu, 17 Aug 2017 19:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78804-4-RXaPVDd9kc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78804-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78804-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02081.txt.bz2
Content-length: 556

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

--- Comment #15 from Ian Lance Taylor <ian at airs dot com> ---
I mean simply to build the compiler on a couple of little-endian systems using
fp-bit and make sure that the floating point code works correctly.  I don't
mean test fp-bit separately, though that's not a bad idea.  But if we are going
to change something that has been around for more than ten years, we need to
check that the generated code will continue to work.  I have no reason to think
that it won't work, but we must try it.
>From gcc-bugs-return-572523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 17:19:16 2017
Return-Path: <gcc-bugs-return-572523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114101 invoked by alias); 17 Aug 2017 17:19:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 113984 invoked by uid 48); 17 Aug 2017 17:19:09 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/81877] [7/8 Regression] Incorrect results with lto and -fipa-cp and -fipa-cp-clone
Date: Thu, 17 Aug 2017 19:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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:
Message-ID: <bug-81877-4-reHQbSItjJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02082.txt.bz2
Content-length: 681

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

--- Comment #9 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
I don't understand how LIM may deduce that store sinking is safe without
considering may-alias relations. If it is UB to write the same object from
different declared-independent iterations, then I think the correct deduction
would be "iteration count is at most 1", not "store sinking is safe"?


A C++ variation of the test, doesn't need -fno-tree-sra or asm() shenanigans:

void g(int p, int *out)
{
  int x = 0, y;
#pragma GCC ivdep
  for (int i = 0; i < 100; i++)
    {
      int &r = p ? x : y;
      r = 42;
      out[i] = x;
    }
}
>From gcc-bugs-return-572525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 17:34:26 2017
Return-Path: <gcc-bugs-return-572525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57809 invoked by alias); 17 Aug 2017 17:34:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55252 invoked by uid 48); 17 Aug 2017 17:34:20 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81882] attribute ifunc documentation uses invalid code
Date: Thu, 17 Aug 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: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-81882-4-sAa1qwSryJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81882-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81882-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02084.txt.bz2
Content-length: 2323

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

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

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

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
I believe the documentation should be changed like so:

Index: gcc/doc/extend.texi
===================================================================
--- gcc/doc/extend.texi (revision 251156)
+++ gcc/doc/extend.texi (working copy)
@@ -2783,21 +2783,24 @@ The @code{ifunc} attribute is used to mark a funct
 function using the STT_GNU_IFUNC symbol type extension to the ELF
 standard.  This allows the resolution of the symbol value to be
 determined dynamically at load time, and an optimized version of the
-routine can be selected for the particular processor or other system
+routine to be selected for the particular processor or other system
 characteristics determined then.  To use this attribute, first define
 the implementation functions available, and a resolver function that
 returns a pointer to the selected implementation function.  The
 implementation functions' declarations must match the API of the
-function being implemented, the resolver's declaration is be a
-function returning pointer to void function returning void:
+function being implemented.  The resolver should be declared to
+be a function returning a pointer to a function taking no arguments
+and returning a pointer to a function of the same type as the
+implementation.  For example:

 @smallexample
 void *my_memcpy (void *dst, const void *src, size_t len)
 @{
   @dots{}
+  return dst;
 @}

-static void (*resolve_memcpy (void)) (void)
+static void* (*resolve_memcpy (void))(void *, const void *, size_t)
 @{
   return my_memcpy; // we'll just always select this routine
 @}
>From gcc-bugs-return-572524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 17:33:46 2017
Return-Path: <gcc-bugs-return-572524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39542 invoked by alias); 17 Aug 2017 17:33:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 37134 invoked by uid 48); 17 Aug 2017 17:33:40 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81882] New: attribute ifunc documentation uses invalid code
Date: Thu, 17 Aug 2017 19:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81882-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02083.txt.bz2
Content-length: 1750

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

            Bug ID: 81882
           Summary: attribute ifunc documentation uses invalid code
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

The documentation of the ifunc ("resolver") attribute in the GCC manual isn't
quite correct.  It advises users to declare the resolver to return a pointer to
a void function returning void, and shows an example of how to do that, like
so:

typedef __SIZE_TYPE__  size_t;

void* my_memcpy (void *dst, const void *src, size_t len)
{
  // ...
  return dst;
}

static void (*resolve_memcpy (void)) (void)
{
  return my_memcpy; // we'll just always select this routine
}

But the example returns the address of a function of incompatible type, which
then causes compilation warnings in C and errors in C++ (see below).

Instead, the resolver should be declared to return a pointer to the a function
of the same type as whose address it returns.

x.c: In function ‘resolve_memcpy’:
x.c:10:10: warning: returning ‘void * (*)(void *, const void *, size_t) {aka
void * (*)(void *, const void *, long unsigned int)}’ from a function with
incompatible return type ‘void (*)(void)’ [-Wincompatible-pointer-types]
   return my_memcpy; // we'll just always select this routine
          ^~~~~~~~~
At top level:
x.c:8:15: warning: ‘resolve_memcpy’ defined but not used [-Wunused-function]
 static void (*resolve_memcpy (void)) (void)
               ^~~~~~~~~~~~~~
>From gcc-bugs-return-572526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 17:42:16 2017
Return-Path: <gcc-bugs-return-572526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116254 invoked by alias); 17 Aug 2017 17:42:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 111177 invoked by uid 48); 17 Aug 2017 17:42:10 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81882] attribute ifunc documentation uses invalid code
Date: Thu, 17 Aug 2017 20: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: documentation, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-81882-4-tT2h0hlCQQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81882-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81882-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02085.txt.bz2
Content-length: 422

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch: https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01090.html
>From gcc-bugs-return-572527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 17:42:22 2017
Return-Path: <gcc-bugs-return-572527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120279 invoked by alias); 17 Aug 2017 17:42: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 118941 invoked by uid 48); 17 Aug 2017 17:42:16 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81803] [7/8 regression] miscompilation at -O1 on mips64el
Date: Thu, 17 Aug 2017 20:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.1
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-81803-4-hFBv1W4w4w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81803-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81803-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02086.txt.bz2
Content-length: 519

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

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> I have just noticed this which seems curious. Is the 39 -> 40 combine really
> a valid transformation? It seems we've lost the sign extension and we're
> just putting a 32-bit value into a 64-bit register without trying to clear
> the upper bits anymore?

Yes, for WORD_REGISTER_OPERATIONS architectures the combiner can do things like
that, although there might be bugs lurking of course.
>From gcc-bugs-return-572528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 17:55:49 2017
Return-Path: <gcc-bugs-return-572528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82899 invoked by alias); 17 Aug 2017 17:55: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 79902 invoked by uid 48); 17 Aug 2017 17:55:42 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81874] internal compiler error: in do_SUBST, at combine.c:725
Date: Thu, 17 Aug 2017 21:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.4.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81874-4-NPnKvjzMQW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81874-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81874-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02087.txt.bz2
Content-length: 948

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-17
                 CC|                            |clm at codesourcery dot com,
                   |                            |marxin at gcc dot gnu.org,
                   |                            |mfortune at gmail dot com
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, on trunk it hides with r239421 (and -fcode-hoisting).

The problematic do_SUBST is:

(gdb) p debug_rtx(*into)
(reg:SI 202)
$1 = void
(gdb) p debug_rtx(newval)
(const_int 2147418112 [0x7fff0000])

Adding port maintainers to CC.
>From gcc-bugs-return-572530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 18:13:10 2017
Return-Path: <gcc-bugs-return-572530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108154 invoked by alias); 17 Aug 2017 18: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 100379 invoked by uid 48); 17 Aug 2017 18:12:54 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/26426] Type layout bug
Date: Thu, 17 Aug 2017 21:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-26426-4-hLRcN8aC9Z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-26426-4@http.gcc.gnu.org/bugzilla/>
References: <bug-26426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02089.txt.bz2
Content-length: 2606

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-17
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing lost https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01612.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-14
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
How are you getting the byte values? I compiled the testcase but I don't know
what I'm supposed to be looking for in the output...

$ /usr/local/bin/g++ -Wall -Wextra -Wreorder -Wpacked -Wpadded -c 26426.cc
$ size 26426.o
__TEXT  __DATA  __OBJC  others  dec     hex
1237    232     0       16      1485    5cd
$ nm 26426.o
0000041c s EH_frame1
0000012c S __ZN1AC2Ev
         U __ZN1AD2Ev
00000148 S __ZN1BC2Ev
         U __ZN1BD2Ev
00000164 S __ZN1XC2Ev
000001ac S __ZN1XD2Ev
000001f4 S __ZN1YC2Ev
         U __ZN1YD2Ev
0000007a T __ZN1ZC1Ev
00000000 T __ZN1ZC2Ev
000002e6 S __ZN1ZD0Ev
00000222 S __ZN1ZD1Ev
0000038c S __ZTC1Z0_1Y
000003a4 S __ZTC1Z4_1X
         U __ZTI1A
         U __ZTI1B
000003f4 S __ZTI1X
         U __ZTI1Y
000003d4 S __ZTI1Z
00000417 S __ZTS1X
00000414 S __ZTS1Z
00000368 S __ZTT1Z
         U __ZTV1A
         U __ZTV1B
0000032c S __ZTV1Z
         U __ZTVN10__cxxabiv121__vmi_class_type_infoE
00000311 S __ZTv0_n12_N1ZD0Ev
000002d4 S __ZTv0_n12_N1ZD1Ev
         U __ZdlPvm
00000323 S ___x86.get_pc_thunk.ax
00000327 S ___x86.get_pc_thunk.bx
000005c4 s l__ZTT1Z$non_lazy_ptr
000005c8 s l__ZTV1A$non_lazy_ptr
000005cc s l__ZTV1B$non_lazy_ptr
000005c0 s l__ZTV1Z$non_lazy_ptr
$

--- New Comment ---

Jonathan Wakely also had a comment that got lost in the Bugzilla outage, but my
browser doesn't seem to want to load my email or the archived copy, so he'll
have to re-add it himself... (I think he said something like this wasn't
actually a bug...)
>From gcc-bugs-return-572529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 17:59:17 2017
Return-Path: <gcc-bugs-return-572529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118735 invoked by alias); 17 Aug 2017 17:59:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112239 invoked by uid 48); 17 Aug 2017 17:59:11 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81874] internal compiler error: in do_SUBST, at combine.c:725
Date: Thu, 17 Aug 2017 21:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.4.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:
Message-ID: <bug-81874-4-bBRhlBx2UV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81874-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81874-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02088.txt.bz2
Content-length: 280

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:

int a, c;
int
d (int f, int g)
{
  return g ?: f;
}
void
h ()
{
  int b = a > 0 && 1 > 2147483647 - a, e = b;
  c = d (++a, e);
}
>From gcc-bugs-return-572531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 18:21:09 2017
Return-Path: <gcc-bugs-return-572531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106300 invoked by alias); 17 Aug 2017 18:21: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 102730 invoked by uid 48); 17 Aug 2017 18:21:03 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81827] Large compile time with derived-type rrays
Date: Thu, 17 Aug 2017 21:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: compile-time-hog, memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-81827-4-gvKrM3rzBQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81827-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81827-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02090.txt.bz2
Content-length: 710

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

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

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

--- Comment #7 from Paul Thomas <pault at gcc dot gnu.org> ---
Hi Richi,

This is not right - only the first level should be nullified. Oddly, GNU
Fortran (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4) did the right thing. It seems to
have been fixed and the unfixed!

I have reopened it.

Paul
>From gcc-bugs-return-572532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 18:31:40 2017
Return-Path: <gcc-bugs-return-572532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91052 invoked by alias); 17 Aug 2017 18:31:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81710 invoked by uid 48); 17 Aug 2017 18:31:20 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/72804] Poor code gen with -mvsx-timode
Date: Thu, 17 Aug 2017 21:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status bug_file_loc resolution
Message-ID: <bug-72804-4-kKwnuURyBc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72804-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72804-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02091.txt.bz2
Content-length: 763

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

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                URL|                            |https://gcc.gnu.org/ml/gcc-
                   |                            |patches/2017-08/msg00910.ht
                   |                            |ml
         Resolution|---                         |FIXED

--- Comment #7 from Peter Bergner <bergner at gcc dot gnu.org> ---
Fixed on trunk.  The issue still exists in GCC 7.  I will let it sit on trunk a
week or two and then will see how the back port looks.
>From gcc-bugs-return-572533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 18:42:06 2017
Return-Path: <gcc-bugs-return-572533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42654 invoked by alias); 17 Aug 2017 18:42: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 34410 invoked by uid 48); 17 Aug 2017 18:42:00 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/26426] Type layout bug
Date: Thu, 17 Aug 2017 21:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-26426-4-V8MaPedakx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-26426-4@http.gcc.gnu.org/bugzilla/>
References: <bug-26426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02092.txt.bz2
Content-length: 472

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
See https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01667.html where I said:

I don't think this is a bug. B is the primary base class for Z so has already
been allocated (as part of the Y subobject, in I-2b), and so the B base class
of the X subobject is not allocated as part of the X (in III).

https://itanium-cxx-abi.github.io/cxx-abi/abi.html#a17
>From gcc-bugs-return-572534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 18:44:47 2017
Return-Path: <gcc-bugs-return-572534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39878 invoked by alias); 17 Aug 2017 18:44:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34127 invoked by uid 48); 17 Aug 2017 18:44:43 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81835] cxxabi.h has invalid link in comment.
Date: Thu, 17 Aug 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: 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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on component assigned_to everconfirmed
Message-ID: <bug-81835-4-AbnrrpOBCY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81835-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81835-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02093.txt.bz2
Content-length: 1164

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-17
          Component|demangler                   |libstdc++
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Chris Johns from comment #0)
> Tiny issue.
> 
> Looking over cxxabi.h I noticed a link in a comment about __cxa_demangle is
> not valid anymore:
> 
>    *  See http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt12ch39.html
>    *  for other examples of use.

I'll fix the link.

> I am looking for the implementation of the demangler code we have on our
> mebedded targets in RTEMS. A pointer to that location would be most welcomed.

https://gcc.gnu.org/onlinedocs/libstdc++/manual/ext_demangling.html is the new
location.
>From gcc-bugs-return-572535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 18:53:38 2017
Return-Path: <gcc-bugs-return-572535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42049 invoked by alias); 17 Aug 2017 18:53: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 35420 invoked by uid 48); 17 Aug 2017 18:53:32 -0000
From: "apushkin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79242] ICE in simplify_subreg, at simplify-rtx.c:6029
Date: Thu, 17 Aug 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: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: apushkin 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-79242-4-QbzPeCWGog@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79242-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79242-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02094.txt.bz2
Content-length: 455

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

Andrei Pushkin <apushkin at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apushkin at gmail dot com

--- Comment #6 from Andrei Pushkin <apushkin at gmail dot com> ---
Still broken in 7.2

What are the chances of this bug getting some love?
>From gcc-bugs-return-572536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 19:10:32 2017
Return-Path: <gcc-bugs-return-572536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66133 invoked by alias); 17 Aug 2017 19:10: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 55345 invoked by uid 48); 17 Aug 2017 19:10:26 -0000
From: "ard.biesheuvel at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81863] [7 regression] -mword-relocations is unreliable
Date: Thu, 17 Aug 2017 21:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ard.biesheuvel 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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81863-4-ivhChd9zYG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02095.txt.bz2
Content-length: 840

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

--- Comment #6 from ard.biesheuvel at linaro dot org ---
FWIW, the following makes the issue go away (tested on 4.9.4)

@@ -6196,7 +6210,9 @@
   [(set (match_operand:SI 0 "nonimmediate_operand" "=r")
        (lo_sum:SI (match_operand:SI 1 "nonimmediate_operand" "0")
                   (match_operand:SI 2 "general_operand"      "i")))]
-  "arm_arch_thumb2 && arm_valid_symbolic_address_p (operands[2])"
+  "arm_arch_thumb2 && arm_valid_symbolic_address_p (operands[2])
+   && (   GET_CODE (operands[2]) != SYMBOL_REF
+       || !target_word_relocations)"
   "movt%?\t%0, #:upper16:%c2"
   [(set_attr "predicable" "yes")
    (set_attr "predicable_short_it" "no")

I have no idea whether this is a suitable fix: I will leave that to the
experts. Just providing this as a data point.
>From gcc-bugs-return-572537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 19:37:48 2017
Return-Path: <gcc-bugs-return-572537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71367 invoked by alias); 17 Aug 2017 19:37:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 67249 invoked by uid 55); 17 Aug 2017 19:37:39 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81861] [8.0 Regression] ASan pr64820.c testcase segfaults with LTO and -fstack-protector-strong
Date: Thu, 17 Aug 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: normal
X-Bugzilla-Who: uros 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-81861-4-fAzlJ3HTJD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02096.txt.bz2
Content-length: 611

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

--- Comment #10 from uros at gcc dot gnu.org ---
Author: uros
Date: Thu Aug 17 19:37:06 2017
New Revision: 251162

URL: https://gcc.gnu.org/viewcvs?rev=251162&root=gcc&view=rev
Log:
        Backport from mainline
        2017-08-17  Maxim Ostapenko  <m.ostapenko@samsung.com>

        PR target/81861
        * config/i386/i386.c (ix86_option_override_internal): Save target
        specific options after ix86_stack_protector_guard_reg was changed.


Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/i386/i386.c
>From gcc-bugs-return-572538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 19:38:34 2017
Return-Path: <gcc-bugs-return-572538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92589 invoked by alias); 17 Aug 2017 19:38: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 89839 invoked by uid 48); 17 Aug 2017 19:38:28 -0000
From: "jeffrey.armstrong at approximatrix dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80467] Function Without Arguments Fails to Generate Error When Declared Later
Date: Thu, 17 Aug 2017 22:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: jeffrey.armstrong at approximatrix dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80467-4-gGFwvMVe25@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02097.txt.bz2
Content-length: 225

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

--- Comment #7 from Jeffrey Armstrong <jeffrey.armstrong at approximatrix dot com> ---
Any update on this Internal Compiler Error?  Has anyone looked into it further?
>From gcc-bugs-return-572539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 19:38:57 2017
Return-Path: <gcc-bugs-return-572539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116375 invoked by alias); 17 Aug 2017 19:38:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 110541 invoked by uid 55); 17 Aug 2017 19:38:52 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81861] [8.0 Regression] ASan pr64820.c testcase segfaults with LTO and -fstack-protector-strong
Date: Thu, 17 Aug 2017 22:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros 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-81861-4-zJUqDuKxNu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02098.txt.bz2
Content-length: 657

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

--- Comment #11 from uros at gcc dot gnu.org ---
Author: uros
Date: Thu Aug 17 19:38:20 2017
New Revision: 251163

URL: https://gcc.gnu.org/viewcvs?rev=251163&root=gcc&view=rev
Log:
2017-08-17  Uros Bizjak  <ubizjak@gmail.com>

        Backport from mainline
        2017-08-17  Maxim Ostapenko  <m.ostapenko@samsung.com>

        PR target/81861
        * config/i386/i386.c (ix86_option_override_internal): Save target
        specific options after ix86_stack_protector_guard_reg was changed.


Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/i386/i386.c
>From gcc-bugs-return-572540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 19:39:56 2017
Return-Path: <gcc-bugs-return-572540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55982 invoked by alias); 17 Aug 2017 19:39:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 54027 invoked by uid 55); 17 Aug 2017 19:39:51 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81861] [8.0 Regression] ASan pr64820.c testcase segfaults with LTO and -fstack-protector-strong
Date: Thu, 17 Aug 2017 22:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros 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-81861-4-L4EwpDhNIo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02099.txt.bz2
Content-length: 611

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

--- Comment #12 from uros at gcc dot gnu.org ---
Author: uros
Date: Thu Aug 17 19:39:20 2017
New Revision: 251164

URL: https://gcc.gnu.org/viewcvs?rev=251164&root=gcc&view=rev
Log:
        Backport from mainline
        2017-08-17  Maxim Ostapenko  <m.ostapenko@samsung.com>

        PR target/81861
        * config/i386/i386.c (ix86_option_override_internal): Save target
        specific options after ix86_stack_protector_guard_reg was changed.


Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/i386/i386.c
>From gcc-bugs-return-572541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 19:57:25 2017
Return-Path: <gcc-bugs-return-572541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95746 invoked by alias); 17 Aug 2017 19:57: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 93500 invoked by uid 55); 17 Aug 2017 19:57:21 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81864] building gcc 8 with --enable-gather-detailed-mem-stats fails on x86-64, arm and aarch64 under gnu linux
Date: Thu, 17 Aug 2017 22:07: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: build
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:
Message-ID: <bug-81864-4-WnU1kcCpKZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81864-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81864-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02100.txt.bz2
Content-length: 659

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

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Thu Aug 17 19:56:46 2017
New Revision: 251165

URL: https://gcc.gnu.org/viewcvs?rev=251165&root=gcc&view=rev
Log:
Fix build of --enable-gather-detailed-mem-stats (PR bootstrap/81864).

2017-08-17  Martin Liska  <mliska@suse.cz>

        PR bootstrap/81864
        * tree-loop-distribution.c (ddrs_table): Change type to pointer
        type.
        (get_data_dependence): Use it as pointer type.
        (distribute_loop): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-loop-distribution.c
>From gcc-bugs-return-572542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 19:57:54 2017
Return-Path: <gcc-bugs-return-572542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109414 invoked by alias); 17 Aug 2017 19:57: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 106659 invoked by uid 48); 17 Aug 2017 19:57:48 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81864] building gcc 8 with --enable-gather-detailed-mem-stats fails on x86-64, arm and aarch64 under gnu linux
Date: Thu, 17 Aug 2017 22: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: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81864-4-LhPm5PT595@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81864-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81864-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02101.txt.bz2
Content-length: 434

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

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

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

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-572543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 20:04:20 2017
Return-Path: <gcc-bugs-return-572543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109748 invoked by alias); 17 Aug 2017 20:04: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 106871 invoked by uid 48); 17 Aug 2017 20:04:14 -0000
From: "t at sharklasers dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81883] New: bootstrap-lto build fails with undefined reference to `_Unwind_Resume'
Date: Thu, 17 Aug 2017 22:14: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: lto
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: t at sharklasers dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-81883-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02102.txt.bz2
Content-length: 3626

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

            Bug ID: 81883
           Summary: bootstrap-lto build fails with undefined reference to
                    `_Unwind_Resume'
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: t at sharklasers dot com
  Target Milestone: ---

Created attachment 41999
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41999&action=edit
Output of a sequential make run for context

I compiled gcc-7.2 without LTO optimizations and tried to compile it again with
bootstrap-lto using the new gcc-7.2 compiler.

System:
Linux 4.4.0-91-generic #114-Ubuntu SMP x86_64 GNU/Linux

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=gcc-7.2.0/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: gcc-7.2.0/configure --prefix=gcc-7.2.0
--enable-languages=c,c++,fortran --enable-gold=yes --enable-ld=yes
--enable-bootstrap --disable-multilib
Thread model: posix
gcc version 7.2.0 (GCC) 

$ env | grep -i flags
LDFLAGS=-O3 -flto=4 -fuse-linker-plugin
CXXFLAGS=-march=native -O3 -flto -fno-fat-lto-objects -fuse-linker-plugin
CFLAGS=-march=native -O3 -flto -fno-fat-lto-objects -fuse-linker-plugin

$ ld -v
GNU ld (GNU Binutils) 2.29

GCC tools were used
export AR=gcc-ar
export NM=gcc-nm
export RANLIB=gcc-ranlib

The bootstrap-lto build was configured with:
gcc-7.2.0/configure --prefix=gcc-7.2.0 --enable-languages=c,c++,fortran
--enable-gold=yes --enable-ld=yes --enable-bootstrap
--with-build-config=bootstrap-lto --disable-multilib


make[3]: Entering directory 'gccbuild/gcc'
gccbuild/./prev-gcc/xg++ -Bgccbuild/./prev-gcc/
-Bgcc-7.2.0/x86_64-pc-linux-gnu/bin/ -nostdinc++
-Bgccbuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-Bgccbuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs 
-Igccbuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu 
-Igccbuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/include 
-Igcc-7.2.0/libstdc++-v3/libsupc++
-Lgccbuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-Lgccbuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs   -g -O2
-flto=jobserver -frandom-seed=1 -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
-DGENERATOR_FILE -fno-PIE -static-libstdc++ -static-libgcc  -no-pie -o
build/genmddeps \
    build/genmddeps.o build/read-md.o build/errors.o .././libiberty/libiberty.a
binutils-2.29/x86_64-pc-linux-gnu/bin/ld: error in
/tmp/ccK67upk.ltrans0.ltrans.o(.eh_frame); no .eh_frame_hdr table will be
created.
/tmp/ccK67upk.ltrans0.ltrans.o: In function `__verbose_terminate_handler':
gcc-7.2.0/libstdc++-v3/libsupc++/vterminate.cc:82: undefined reference to
`_Unwind_Resume'
collect2: error: ld returned 1 exit status
Makefile:2791: recipe for target 'build/genmddeps' failed
make[3]: *** [build/genmddeps] Error 1
make[3]: Leaving directory 'gccbuild/gcc'
Makefile:4596: recipe for target 'all-stage2-gcc' failed
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory 'gccbuild'
Makefile:26888: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory 'gccbuild'
Makefile:941: recipe for target 'all' failed
make: *** [all] Error 2
>From gcc-bugs-return-572544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 20:14:40 2017
Return-Path: <gcc-bugs-return-572544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122526 invoked by alias); 17 Aug 2017 20:14:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 114728 invoked by uid 48); 17 Aug 2017 20:14:31 -0000
From: "t at sharklasers dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81883] bootstrap-lto build fails with undefined reference to `_Unwind_Resume'
Date: Thu, 17 Aug 2017 22:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: lto
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: t at sharklasers dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget cf_gcchost
Message-ID: <bug-81883-4-sZQEShcrRo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81883-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02103.txt.bz2
Content-length: 5105

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

JD <t at sharklasers dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64
               Host|                            |x86_64

--- Comment #1 from JD <t at sharklasers dot com> ---
This part of the output may be relevant:
The build was configured with --disable-multilib

Checking multilib configuration for libgcc...
make[3]: Entering directory 'gccbuild/x86_64-pc-linux-gnu/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
# Early copyback; see "all" above for the rationale.  The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/bash gcc-7.2.0/libgcc/../mkinstalldirs ../.././gcc
parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtprec32.o
crtprec64.o crtprec80.o crtfastmath.o";                                       
\
for file in $parts; do                                  \
  rm -f ../.././gcc/$file;              \
  /usr/bin/install -c -m 644 $file ../.././gcc/;        \
  case $file in                                         \
    *.a)                                                \
      gcc-ranlib ../.././gcc/$file ;;   \
  esac;                                                 \
done
# @multilib_flags@ is still needed because this may use
# gccbuild/./gcc/xgcc -Bgccbuild/./gcc/ -Bgcc-7.2.0/x86_64-pc-linux-gnu/bin/
-Bgcc-7.2.0/x86_64-pc-linux-gnu/lib/ -isystem
gcc-7.2.0/x86_64-pc-linux-gnu/include -isystem
gcc-7.2.0/x86_64-pc-linux-gnu/sys-include    and -O2  -g -O2 -march=native -O3
-flto -fno-fat-lto-objects -fuse-linker-plugin -DIN_GCC    -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic
-mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector  directly.
# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/bin/bash gcc-7.2.0/libgcc/../mkinstalldirs .
gccbuild/./gcc/xgcc -Bgccbuild/./gcc/ -Bgcc-7.2.0/x86_64-pc-linux-gnu/bin/
-Bgcc-7.2.0/x86_64-pc-linux-gnu/lib/ -isystem
gcc-7.2.0/x86_64-pc-linux-gnu/include -isystem
gcc-7.2.0/x86_64-pc-linux-gnu/sys-include    -O2  -g -O2 -march=native -O3
-flto -fno-fat-lto-objects -fuse-linker-plugin -DIN_GCC    -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic
-mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1
-Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -march=native -O3
-flto -fno-fat-lto-objects -fuse-linker-plugin -B./ _muldi3_s.o _negdi2_s.o
_lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o
_clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o
_addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o
_negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o
_clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o
_popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o
_powidf2_s.o _powixf2_s.o _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o
_divhc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _bswapsi2_s.o _bswapdi2_s.o
_clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o
_fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o
_fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o
_floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _divmoddi4_s.o
_udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_s.o cpuinfo_s.o
sfp-exceptions_s.o addtf3_s.o divtf3_s.o multf3_s.o negtf2_s.o subtf3_s.o
unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o
fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o
fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o
extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o getf2_s.o
letf2_s.o eqtf2_s.o _divtc3_s.o _multc3_s.o _powitf2_s.o
enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o
unwind-c_s.o emutls_s.o libgcc.a -lc && rm -f ./libgcc_s.so && if [ -f
./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else
true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && (echo "/* GNU ld script";
echo "   Use the shared library, but some functions are only in"; echo "   the
static library.  */"; echo "GROUP ( libgcc_s.so.1 -lgcc )" ) > ./libgcc_s.so
binutils-2.29/x86_64-pc-linux-gnu/bin/ld: error in
/tmp/ccYY0W1A.ltrans0.ltrans.o(.eh_frame); no .eh_frame_hdr table will be
created.

I don't know what's happening there but it seems to have failed and the build
continued.
>From gcc-bugs-return-572545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:16:59 2017
Return-Path: <gcc-bugs-return-572545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57599 invoked by alias); 17 Aug 2017 21:16:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 57518 invoked by uid 48); 17 Aug 2017 21:16:51 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81881] [8 Regression] bootstrap failed on x86
Date: Thu, 17 Aug 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: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81881-4-VC7yChoSAB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81881-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81881-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02104.txt.bz2
Content-length: 426

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

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

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
False alarm.
>From gcc-bugs-return-572546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:41:06 2017
Return-Path: <gcc-bugs-return-572546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13904 invoked by alias); 17 Aug 2017 21:41: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 13784 invoked by uid 48); 17 Aug 2017 21:41:01 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/30257] static initializers are attributed to bogus line number in coverage.
Date: Thu, 17 Aug 2017 22:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: 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-30257-4-xJI4mWtQsj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-30257-4@http.gcc.gnu.org/bugzilla/>
References: <bug-30257-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02105.txt.bz2
Content-length: 1297

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01613.html

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Seongbae Park from comment #2)
> Yes, it looks like duplicate, although PR 15369 is against 3.4.

Still duplicate-ish enough. Closing.

*** This bug has been marked as a duplicate of bug 15369 ***

*** This bug has been marked as a duplicate of bug 15369 ***
>From gcc-bugs-return-572547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:41:07 2017
Return-Path: <gcc-bugs-return-572547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13962 invoked by alias); 17 Aug 2017 21:41: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 13839 invoked by uid 48); 17 Aug 2017 21:41:03 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/15369] "Wrong" line number for static constructor function
Date: Thu, 17 Aug 2017 23:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 3.4.0
X-Bugzilla-Keywords: wrong-debug
X-Bugzilla-Severity: minor
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-15369-4-ouRFSR5y9v@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-15369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-15369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02106.txt.bz2
Content-length: 456

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |seongbae.park at gmail dot com

--- Comment #10 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 30257 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-572548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:42:59 2017
Return-Path: <gcc-bugs-return-572548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20266 invoked by alias); 17 Aug 2017 21: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 20199 invoked by uid 48); 17 Aug 2017 21:42:54 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51277] Feature request: C++ diagnostic for ambiguous overloads
Date: Fri, 18 Aug 2017 00:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-51277-4-pL9galHndM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51277-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51277-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02107.txt.bz2
Content-length: 1270

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01619.html except actually
confirming it this time:

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |egallager at gcc dot gnu.org
           Severity|normal                      |enhancement

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirming as an enhancement.
>From gcc-bugs-return-572549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:46:11 2017
Return-Path: <gcc-bugs-return-572549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28972 invoked by alias); 17 Aug 2017 21:46: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 28462 invoked by uid 48); 17 Aug 2017 21:46:03 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/30812] enhancement: exception specification in __PRETTY_FUNCTION__
Date: Fri, 18 Aug 2017 01:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-30812-4-oveXK6B5h2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-30812-4@http.gcc.gnu.org/bugzilla/>
References: <bug-30812-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02108.txt.bz2
Content-length: 1360

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-17
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01620.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-14
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirming as an enhancement, although maybe a new identifier so as not to
break existing code? __PRETTIER_FUNCTION__?
>From gcc-bugs-return-572550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:48:01 2017
Return-Path: <gcc-bugs-return-572550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36653 invoked by alias); 17 Aug 2017 21:48: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 36388 invoked by uid 48); 17 Aug 2017 21:47:57 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/36685] clarify/diagnose use of weak constant
Date: Fri, 18 Aug 2017 03: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: 4.2.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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-36685-4-KAn61uImwc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-36685-4@http.gcc.gnu.org/bugzilla/>
References: <bug-36685-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02109.txt.bz2
Content-length: 1250

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01622.html

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-572551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:51:17 2017
Return-Path: <gcc-bugs-return-572551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40028 invoked by alias); 17 Aug 2017 21:51: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 39921 invoked by uid 48); 17 Aug 2017 21:51:07 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/40897] g++ error on valid syntax (call of templated object method via this pointer)
Date: Fri, 18 Aug 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: c++
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-40897-4-NcoKl8a8sh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-40897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-40897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02110.txt.bz2
Content-length: 2144

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

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

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

--- Comment #8 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing lost comments:

https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01623.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-14
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #8 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #5)
> If it is getting you an internal error, then it is usually it is because the
> attachments are too big.
> 
> As for the other issue, there is a C++ defect report about this case, which
> consider this as dependent but a member as non dependent and all confusing
> happens with namelookup and such.

Link to the C++ DR? Is it still open?

https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01625.html

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

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

--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Roger Leigh from comment #6)
> Created attachment 18264 [details]
> Preprocessed source for g++-4.5.0 (svn 149777)

This compiles successfully without error for me with g++-8 (svn 250985), so I
guess I can close it.
>From gcc-bugs-return-572552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:53:41 2017
Return-Path: <gcc-bugs-return-572552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42439 invoked by alias); 17 Aug 2017 21:53: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 42354 invoked by uid 48); 17 Aug 2017 21:53:36 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/38087] Pseudo destructor call
Date: Fri, 18 Aug 2017 07:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.0
X-Bugzilla-Keywords: accepts-invalid
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-38087-4-uUoRqwiUkZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-38087-4@http.gcc.gnu.org/bugzilla/>
References: <bug-38087-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02111.txt.bz2
Content-length: 2291

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-17
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing lost comments:

https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01624.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-14
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> I still think this is valid code ...  There are defect reports against this
> area too.

Which ones do you mean?

https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01637.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|WAITING                     |NEW

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
There's https://wg21.link/cwg555 but I don't think it changes anything here.

[expr.pseudo] definitely doesn't apply, as that only applies to non-class
types. (The bug title is wrong for the same reason, this is a destructor call,
not a pseudo destructor call.)

The current wording in [basic.lookup.classref] says "At least one of the
lookups shall find a name that refers to cv T." The object expression has type
C, but the lookup result for B does not find that type, so the code is invalid.
>From gcc-bugs-return-572553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:56:11 2017
Return-Path: <gcc-bugs-return-572553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61821 invoked by alias); 17 Aug 2017 21:56:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61690 invoked by uid 48); 17 Aug 2017 21:55:58 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/43454] warning with -Wall despite __attribute__ ((__unused__))
Date: Fri, 18 Aug 2017 08: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: 4.4.3
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 cf_known_to_work everconfirmed cf_known_to_fail
Message-ID: <bug-43454-4-IkiupncNr8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43454-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02112.txt.bz2
Content-length: 1858

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-17
                 CC|                            |egallager at gcc dot gnu.org
      Known to work|                            |4.0.2
     Ever confirmed|0                           |1
      Known to fail|                            |4.0.4, 4.1.2, 4.2.4, 4.3.4,
                   |                            |4.4.3, 8.0

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01627.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-14
                 CC|                            |egallager at gcc dot gnu.org
      Known to work|                            |4.0.2
     Ever confirmed|0                           |1
      Known to fail|                            |4.0.4, 4.1.2, 4.2.4, 4.3.4,
                   |                            |4.4.3, 8.0

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, output now looks like this now that there's underlining and stuff:

$ /usr/local/bin/g++ -c -Wall -S 43454.cc
43454.cc:7:44: warning: ‘check_moo’ defined but not used [-Wunused-variable]
 static int (* __attribute__ ((__unused__)) check_moo) (void) = gnulib::moo;
                                            ^~~~~~~~~
$
>From gcc-bugs-return-572554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 21:57:46 2017
Return-Path: <gcc-bugs-return-572554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67468 invoked by alias); 17 Aug 2017 21:57: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 67414 invoked by uid 48); 17 Aug 2017 21:57:41 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/43105] Document restrictions on mixing -fno-rtti and -frtti
Date: Fri, 18 Aug 2017 08:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.1
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-43105-4-Shu8whlPWd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43105-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43105-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02113.txt.bz2
Content-length: 1207

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01628.html

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, text in the current docs is still pretty much the same as it was in
4.4.3.
>From gcc-bugs-return-572555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 22:03:00 2017
Return-Path: <gcc-bugs-return-572555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121784 invoked by alias); 17 Aug 2017 22:03: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 121719 invoked by uid 48); 17 Aug 2017 22:02:54 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/44400] GCC allows declaring a function having the name of the class using a typedef
Date: Fri, 18 Aug 2017 08:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: accepts-invalid
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-44400-4-4lib6Ojs9O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44400-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44400-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02114.txt.bz2
Content-length: 1684

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-17
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01629.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-14
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, g++ accepts it with neither warning nor error, while clang++ rejects
it like this:

$ /usr/local/bin/g++ -Wall -Wextra -pedantic -c 44400.cc
$ /sw/opt/llvm-3.1/bin/clang++ -Wall -Wextra -pedantic -c 44400.cc
44400.cc:2:14: error: member 'X' has the same name as its class
struct X { F X; };
             ^
44400.cc:2:14: error: constructor cannot have a return type
struct X { F X; };
           ~ ^
2 errors generated.
$
>From gcc-bugs-return-572556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 22:04:31 2017
Return-Path: <gcc-bugs-return-572556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123735 invoked by alias); 17 Aug 2017 22:04:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 123680 invoked by uid 48); 17 Aug 2017 22:04:27 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/44520] improve diagnostic for ambiguous lookup
Date: Fri, 18 Aug 2017 09:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: 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-44520-4-xM9B0BGku2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44520-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44520-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02115.txt.bz2
Content-length: 1381

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01630.html

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, the g++ diagnostic is now:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 44520.cc
44520.cc: In member function ‘void D::g()’:
44520.cc:10:5: error: ‘B1’ is an ambiguous base of ‘D’
   f();
     ^
$
>From gcc-bugs-return-572557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 22:05:43 2017
Return-Path: <gcc-bugs-return-572557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127382 invoked by alias); 17 Aug 2017 22:05: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 127301 invoked by uid 48); 17 Aug 2017 22:05:38 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/44580] inconsistent "right-hand operand of comma has no effect"
Date: Fri, 18 Aug 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: c++
X-Bugzilla-Version: 4.6.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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-44580-4-ZpWaLHhwwC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44580-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44580-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02116.txt.bz2
Content-length: 1250

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01632.html

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-572558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 22:07:55 2017
Return-Path: <gcc-bugs-return-572558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12297 invoked by alias); 17 Aug 2017 22:07: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 12195 invoked by uid 48); 17 Aug 2017 22:07:49 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79997] simple-ssa-sprintf i18n: wrong plural form in maybe_warn
Date: Fri, 18 Aug 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: translation
X-Bugzilla-Version: 7.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: keywords bug_status cf_reconfirmed_on cc component dependson everconfirmed
Message-ID: <bug-79997-4-3oWQkMxmgL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79997-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79997-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02117.txt.bz2
Content-length: 2249

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-17
                 CC|                            |egallager at gcc dot gnu.org,
                   |                            |msebor at gcc dot gnu.org
          Component|tree-optimization           |translation
         Depends on|                            |77810
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01634.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-14
                 CC|                            |msebor at gcc dot gnu.org
          Component|tree-optimization           |translation
         Depends on|                            |77810
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  There are a few instances of this idiom in the file and elsewhere
in GCC.  The pass makes use of the format_warning_at_substring() function to do
the formatting and that function only comes in one form, and doesn't provide an
"overload" similar to warning_n or warning_at_rich_loc_n to format plural forms
of diagnostics (this enhancement request is being tracked in pr77810).


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77810
[Bug 77810] provide format_inform_at_substring to go with
format_warning_at_substring


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77810
[Bug 77810] provide format_inform_at_substring to go with
format_warning_at_substring
>From gcc-bugs-return-572559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 22:11:59 2017
Return-Path: <gcc-bugs-return-572559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16437 invoked by alias); 17 Aug 2017 22:11:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16377 invoked by uid 48); 17 Aug 2017 22:11:54 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79998] typo in diagnostic "specified bound %wu"
Date: Fri, 18 Aug 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: translation
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: trivial
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: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cc component resolution assigned_to bug_severity
Message-ID: <bug-79998-4-Owdjk4ZzkY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79998-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79998-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02118.txt.bz2
Content-length: 2688

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org,
                   |                            |msebor at gcc dot gnu.org
          Component|tree-optimization           |translation
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
           Severity|normal                      |trivial

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing lost comments, which seem to be in reverse order:

https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01640.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|ASSIGNED                    |RESOLVED
          Component|tree-optimization           |translation
         Resolution|---                         |FIXED

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed in r251096.

https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01641.html

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Mon Aug 14 16:47:40 2017
New Revision: 251096

URL: https://gcc.gnu.org/viewcvs?rev=251096&root=gcc&view=rev
Log:
PR translation/79998 - typo in diagnostic "specified bound %wu"

gcc/ChangeLog:
        * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
        Remove a stray space.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-sprintf.c

https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01635.html

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-14
                 CC|                            |msebor at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot
gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |trivial

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  Let me fix it.
>From gcc-bugs-return-572560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 22:14:06 2017
Return-Path: <gcc-bugs-return-572560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19166 invoked by alias); 17 Aug 2017 22:14:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18976 invoked by uid 48); 17 Aug 2017 22:14:00 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/77810] provide format_inform_at_substring to go with format_warning_at_substring
Date: Fri, 18 Aug 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: preprocessor
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
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-77810-4-Mtnc5bxRMR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77810-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77810-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02119.txt.bz2
Content-length: 614

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

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

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

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01655.html

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Patch looks reasonable, and I can approve it.

CC me on it when you post it to gcc-patches.
>From gcc-bugs-return-572561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 22:16:34 2017
Return-Path: <gcc-bugs-return-572561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23191 invoked by alias); 17 Aug 2017 22:16:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23124 invoked by uid 48); 17 Aug 2017 22:16:29 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/45113] absent or confusing diagnostics of invalid template argument list in implicit template class instantiation
Date: Fri, 18 Aug 2017 09:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-45113-4-VpUoUtptBg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45113-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45113-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02120.txt.bz2
Content-length: 3346

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01665.html

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Roman Kononov from comment #0)
> $cat test1.cpp
> template<typename X,typename Y> struct is_same { static bool const
> value=false; };
> template<typename X> struct is_same<X,X> { static bool const value=true; };
> template<typename... X> struct U {};
> struct Q { typedef U<int x,int y> C; };
> typedef char check[is_same<int,Q::C>::value ? 1 : -1];
> 
> $g++ -std=gnu++0x -c test1.cpp && echo $?
> 0
> 
> In 14.3.1, the Standard says: "A template-argument for a template-parameter
> which is a type shall be a type-id." The test must fail compilation, and
> Q::C can not be int.

This now fails with:
$ /usr/local/bin/g++ -c -std=gnu++0x 45113.cc
45113.cc:4:33: error: template argument 1 is invalid
 struct Q { typedef U<int x,int y> C; };
                                 ^
$

> 
> $cat test2.cpp
> template<typename... X> struct U {};
> typedef U<int x,int y> B;
> 
> $g++ -std=gnu++0x -c test2.cpp 
> test2.cpp:2:25: error: invalid type in declaration before ';' token
> 
> This message is confusing.

This message is now:
$ /usr/local/bin/g++ -c -std=gnu++0x 45113_2.cc
45113_2.cc:2:22: error: template argument 1 is invalid
 typedef U<int x,int y> B;
                      ^
$

> 
> $cat test3.cpp 
> template<typename X,typename Y> struct U {};
> typedef U<int x,int y> A;
> 
> $g++ -c test3.cpp 
> test3.cpp:2:22: error: wrong number of template arguments (1, should be 2)
> test3.cpp:1:40: error: provided for 'template<class X, class Y> struct U'
> test3.cpp:2:25: error: invalid type in declaration before ';' token
> 
> These messages are confusing.

This message is now:
$ /usr/local/bin/g++ -c -std=gnu++0x 45113_3.cc
45113_3.cc:2:22: error: wrong number of template arguments (1, should be 2)
 typedef U<int x,int y> A;
                      ^
45113_3.cc:1:40: note: provided for ‘template<class X, class Y> struct U’
 template<typename X,typename Y> struct U {};
                                        ^
$

Which I guess is still kinda confusing. So test1.cpp and test2.cpp are fixed,
but confirming for test3.cpp.
>From gcc-bugs-return-572562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 22:17:59 2017
Return-Path: <gcc-bugs-return-572562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25292 invoked by alias); 17 Aug 2017 22:17:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25019 invoked by uid 48); 17 Aug 2017 22:17:53 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81117] Improve buffer overflow checking in strncpy
Date: Fri, 18 Aug 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: c
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81117-4-bZI7yKOzmx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81117-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02121.txt.bz2
Content-length: 1270

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

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> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01672.html

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Mon Aug 14 20:21:44 2017
New Revision: 251100

URL: https://gcc.gnu.org/viewcvs?rev=251100&root=gcc&view=rev
Log:
PR c/81117 - Improve buffer overflow checking in strncpy - part 2

gcc/ChangeLog:

        PR c/81117
        * doc/extend.texi (attribute nonstring): Document new attribute.

gcc/c-family/ChangeLog:

        PR c/81117
        * c-attribs.c (c_common_attribute_table): Add nonstring entry.
        (handle_nonstring_attribute): New function.

gcc/testsuite/ChangeLog:

        PR c/81117
        * c-c++-common/attr-nonstring-1.c: New test.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-attribs.c
    trunk/gcc/doc/extend.texi
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 22:19:42 2017
Return-Path: <gcc-bugs-return-572563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37886 invoked by alias); 17 Aug 2017 22:19: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 37778 invoked by uid 48); 17 Aug 2017 22:19:36 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81268] [avr] Support __gcc_isr pseudo-instruction for more efficient ISR prologues
Date: Fri, 18 Aug 2017 09:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: gjl at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81268-4-tflv6ysnqh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81268-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81268-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02122.txt.bz2
Content-length: 1130

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01469.html

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Mon Aug 14 09:14:16 2017
New Revision: 251085

URL: https://gcc.gnu.org/viewcvs?rev=251085&root=gcc&view=rev
Log:
gcc/
        PR target/81754
        PR target/81268
        * config/avr/avr.opt (mgas-isr-prologues): New Var
        avr_gasisr_prologues.
        * config/avr/avr.md (gasisr, *gasisr): Use it instead of
        TARGET_GASISR_PROLOGUES.
        * config/avr/avr.c (avr_option_override): Same.
        (avr_pass_pre_proep::execute): Same.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr.c
    trunk/gcc/config/avr/avr.md
    trunk/gcc/config/avr/avr.opt
>From gcc-bugs-return-572564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 17 23:39:00 2017
Return-Path: <gcc-bugs-return-572564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57627 invoked by alias); 17 Aug 2017 23:38:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 57539 invoked by uid 48); 17 Aug 2017 23:38:53 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80210] ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow
Date: Fri, 18 Aug 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: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-80210-4-wW9Trw3Brp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02123.txt.bz2
Content-length: 1035

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

Peter Bergner <bergner at gcc dot gnu.org> changed:

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

--- Comment #6 from Peter Bergner <bergner at gcc dot gnu.org> ---
I have a patch I'm testing.  The problem is that rs6000_set_current_function()
is not clearing the rs6000_previous_fndecl cache correctly when it needs to. 
With the test case, we notice that rs6000_previous_fndecl is set (when it
shouldn't be) and we end up restoring options from it which incorrectly disable
HW sqrt leading to the ICE.

The current code is also a rats nest and hard to read/understand, so the patch
I'm testing is modeled on s390's version of the same function which is much
cleaner and correctly clears out the rs6000_previous_fndecl when it needs to.
>From gcc-bugs-return-572565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 00:24:46 2017
Return-Path: <gcc-bugs-return-572565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11173 invoked by alias); 18 Aug 2017 00:24:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10521 invoked by uid 48); 18 Aug 2017 00:24:04 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81702] [7/8 Regression] ICE in gimple_get_virt_method_for_vtable
Date: Fri, 18 Aug 2017 09:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81702-4-jxLXI3rYmr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02124.txt.bz2
Content-length: 795

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

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

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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #4)
> The ICE is about vtable:
> which is constructed without any DECL_INITIAL. Is this intended? If so, we
> could just remove the assert and silently ignore it, but I see no point in
> having vtable attached without actually knowning the contents.

Hmm, I'm not sure either why we need to have a VAR_DECL before we get to
initialize_vtable.  Nathan, I think this was your code?
>From gcc-bugs-return-572566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 01:04:29 2017
Return-Path: <gcc-bugs-return-572566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129240 invoked by alias); 18 Aug 2017 01:04: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 129095 invoked by uid 48); 18 Aug 2017 01:04:23 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77579] Missed multiple add (int) for CSEd case
Date: Fri, 18 Aug 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: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-77579-4-iig4kWnc9I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77579-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77579-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02125.txt.bz2
Content-length: 2253

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-18
     Ever confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With that patch there are a few regressions:
+FAIL: gcc.dg/tree-ssa/pr40921.c scan-tree-dump-times optimized "_* = -y_" 0
+FAIL: gcc.dg/tree-ssa/slsr-10.c scan-tree-dump-times optimized " \\\\* " 1
+FAIL: gcc.dg/tree-ssa/slsr-14.c scan-tree-dump-times optimized " \\\\* " 1
+FAIL: gcc.dg/tree-ssa/slsr-15.c scan-tree-dump-times optimized " \\\\* " 1
+FAIL: gcc.dg/tree-ssa/slsr-19.c scan-tree-dump-times optimized " \\\\* " 2
+FAIL: gcc.dg/tree-ssa/slsr-20.c scan-tree-dump-times optimized " \\\\* s" 1
+FAIL: gcc.dg/tree-ssa/slsr-21.c scan-tree-dump-times optimized " \\\\* stride"
1
+FAIL: gcc.dg/tree-ssa/slsr-22.c scan-tree-dump-times optimized " \\\\* 3" 1
+FAIL: gcc.dg/tree-ssa/slsr-23.c scan-tree-dump-times optimized " \\\\* stride"
1
+FAIL: gcc.dg/tree-ssa/slsr-24.c scan-tree-dump-times optimized " \\\\* " 1
+FAIL: gcc.dg/tree-ssa/slsr-25.c scan-tree-dump-times optimized " \\\\* " 1
+FAIL: gcc.dg/tree-ssa/slsr-26.c scan-tree-dump-times optimized " \\\\* stride"
1
+FAIL: gcc.dg/tree-ssa/slsr-31.c scan-tree-dump-times optimized " \\\\* 2" 1
+FAIL: gcc.dg/tree-ssa/slsr-32.c scan-tree-dump-times optimized " \\\\* s" 1
+FAIL: gcc.dg/tree-ssa/slsr-37.c scan-tree-dump-times optimized " \\\\* s" 1
+FAIL: gcc.dg/tree-ssa/slsr-5.c scan-tree-dump-times optimized " \\\\* " 1
+FAIL: gcc.dg/tree-ssa/slsr-7.c scan-tree-dump-times optimized " \\\\* " 1
+FAIL: gcc.dg/tree-ssa/slsr-9.c scan-tree-dump-times optimized " \\\\* " 1

Though most are not really worse code.
slsr-21.c, slsr-22.c, slsr-23.c, slsr-24.c, slsr-25.c, slsr-26.c, slsr-31.c,
slsr-32.c, slsr-37.c.

Basically if the one of the operand is a constant, we want to optimize this to:
add DST, SRC, SRC1 lsl #N .  But if it is not constant we don't want to do
madd.  Let me see if I can do that.
>From gcc-bugs-return-572567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 03:23:54 2017
Return-Path: <gcc-bugs-return-572567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47817 invoked by alias); 18 Aug 2017 03: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 47726 invoked by uid 48); 18 Aug 2017 03:23:48 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81854] weak alias of an incompatible symbol accepted
Date: Fri, 18 Aug 2017 11:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: accepts-invalid, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-81854-4-kvMwhnbVgJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81854-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81854-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02126.txt.bz2
Content-length: 693

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

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

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

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch posted for review:
https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01103.html
>From gcc-bugs-return-572568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 07:40:32 2017
Return-Path: <gcc-bugs-return-572568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99271 invoked by alias); 18 Aug 2017 07:40:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 98970 invoked by uid 48); 18 Aug 2017 07:40:19 -0000
From: "chrisj at rtems dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81835] cxxabi.h has invalid link in comment.
Date: Fri, 18 Aug 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: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: chrisj at rtems dot org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81835-4-1qqMUYYVIB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81835-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81835-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02127.txt.bz2
Content-length: 1161

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

--- Comment #3 from Chris Johns <chrisj at rtems dot org> ---
(In reply to Jonathan Wakely from comment #2)
> (In reply to Chris Johns from comment #0)
> > Tiny issue.
> > 
> > Looking over cxxabi.h I noticed a link in a comment about __cxa_demangle is
> > not valid anymore:
> > 
> >    *  See http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt12ch39.html
> >    *  for other examples of use.
> 
> I'll fix the link.

Thank you.

> > I am looking for the implementation of the demangler code we have on our
> > mebedded targets in RTEMS. A pointer to that location would be most welcomed.
> 
> https://gcc.gnu.org/onlinedocs/libstdc++/manual/ext_demangling.html is the
> new location.

I clicked on the link and that page states:

 "If you have read the [source documentation for namespace abi] then you are
aware .."

I clicked on that link and the page is titled:

 bin_search_tree_/debug_fn_imps.hpp File Reference

This does not seem to correct or point me to the demangler code. 

I have located the code in libiberty however I am unsure if this is the code in
the RTEMS targets.
>From gcc-bugs-return-572569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 07:47:13 2017
Return-Path: <gcc-bugs-return-572569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117127 invoked by alias); 18 Aug 2017 07:47:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 116756 invoked by uid 48); 18 Aug 2017 07:47:04 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81835] cxxabi.h has invalid link in comment.
Date: Fri, 18 Aug 2017 11:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81835-4-aVs0ZxOsbV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81835-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81835-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02128.txt.bz2
Content-length: 184

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That should point back to the cxxabi.h file, where you started.
>From gcc-bugs-return-572570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 08:29:40 2017
Return-Path: <gcc-bugs-return-572570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69309 invoked by alias); 18 Aug 2017 08:29: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 50228 invoked by uid 48); 18 Aug 2017 08:29:28 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/81877] [7/8 Regression] Incorrect results with lto and -fipa-cp and -fipa-cp-clone
Date: Fri, 18 Aug 2017 11:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 7.1.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:
Message-ID: <bug-81877-4-Mf2qbBB0gQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02129.txt.bz2
Content-length: 1320

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

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
So I think what safelen > 1 (and thus ivdep) guarantees is that (even if the
loop doesn't iterate) we can peel any iteration before or after the loop which
effectively means all references in one iteration are independent of all refs
in another iteration.  It also allows unrolling and interleaving the unrolled
iterations arbitrarily.  But we have to preserve ordering of stmts in a single
iteration.

Now - for refs that have an invariant address in such loop the interleaving
effectively means that they are independent even in the same iteration.  Which
of course raises the question of whether ivdep or safelen specifications say
anything about must-aliases or if they really allow

 # safele = 2 / ivdep
 for (i = 0; i < 2; ++i)
  {
   tem = c;
   c = tem + 1;
  }

to be re-written as (unroll, interleave):

  tem0 = c;
  tem1 = c;
  c = tem1 + 1;
  c = tem0 + 1;

for example.  I suppose it's not their intent.  So maybe there's an additional
restriction on the interleaving?  Preserve iteration order of individual
stmts?  That would prevent autopar in face of just ivdep for example.

Note that any "handle must-defs 'correctly'" writing is inherently fishy.
>From gcc-bugs-return-572571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 08:32:00 2017
Return-Path: <gcc-bugs-return-572571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119771 invoked by alias); 18 Aug 2017 08: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 119615 invoked by uid 48); 18 Aug 2017 08:31:55 -0000
From: "v at vsamko dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81884] New: Invalid code generation with zero size arrays or flexible array members
Date: Fri, 18 Aug 2017 11: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: v at vsamko 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-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02130.txt.bz2
Content-length: 1730

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

            Bug ID: 81884
           Summary: Invalid code generation with zero size arrays or
                    flexible array members
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: v at vsamko dot com
  Target Milestone: ---

Code below prints 
    1 2 13 14
    BUG DETECTED
when compiled with "-Wfatal-errors -O3 bug2.cpp -o bug2 --save-temps -Wall",
but outputs correct results when compiled with -O0, or if we comment out "   
x->eventTime = value_t(10);", or typedef "value_t" to uint64_t.

Same problem if we use flexible array member (e.g. "uint64_t arr[]") instead of
the zero length array.

===
typedef unsigned long uint64_t;

struct value_t {
    uint64_t _count;
    value_t(uint64_t c) : _count(c) {}
};

struct X {
    value_t eventTime;
    uint64_t arr[0];
};

X* x;

__attribute__((noclone, noinline))
void initialize() {
    x->arr[0] = 11;
    x->arr[1] = 12;
    x->eventTime = value_t(10);
    x->arr[2] = 13;
    x->arr[3] = 14;
}

int main() {
    char buffer[sizeof(X) + sizeof(uint64_t)*4];
    x = (X*)buffer;
    x->eventTime = value_t(999);
    x->arr[0] = 1;
    x->arr[1] = 2;
    x->arr[2] = 3;
    x->arr[3] = 4;
    initialize();
    __builtin_printf("%lu %lu %lu %lu\n", x->arr[0], x->arr[1], x->arr[2],
x->arr[3]);
    if (x->arr[0] != 11 || x->arr[1] != 12 || x->arr[2] != 13 || x->arr[3] !=
14) {
        __builtin_printf("BUG DETECTED\n");
    }
    else {
        __builtin_printf("NO BUG\n");
    }
}
>From gcc-bugs-return-572572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 08:37:29 2017
Return-Path: <gcc-bugs-return-572572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127250 invoked by alias); 18 Aug 2017 08:37: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 126973 invoked by uid 48); 18 Aug 2017 08:37:24 -0000
From: "joerg.richter@pdv-fs.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81885] New: operator-> not checked by -D_GLIBCXX_ASSERTIONS
Date: Fri, 18 Aug 2017 11:32: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: joerg.richter@pdv-fs.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-81885-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02131.txt.bz2
Content-length: 635

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

            Bug ID: 81885
           Summary: operator-> not checked by -D_GLIBCXX_ASSERTIONS
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: joerg.richter@pdv-fs.de
  Target Milestone: ---

unique_ptr::operator* is checked with __glibcxx_assert. But
unique_ptr::operator-> uses only _GLIBCXX_DEBUG_PEDASSERT. I think the later
can use __glibcxx_assert too.

Same for the other pointer templates.
>From gcc-bugs-return-572573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:04:39 2017
Return-Path: <gcc-bugs-return-572573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47630 invoked by alias); 18 Aug 2017 09:04: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 47557 invoked by uid 48); 18 Aug 2017 09:04:32 -0000
From: "benni.buch at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66639] declare __func__ , __FUNCTION__ & __PRETTY_FUNCTION__ as constexpr
Date: Fri, 18 Aug 2017 11:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: benni.buch at gmail dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66639-4-m2p8UClnjN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66639-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66639-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02132.txt.bz2
Content-length: 3104

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

--- Comment #11 from Benjamin Buch <benni.buch at gmail dot com> ---
Also test case #3 doesn't work if you declare the function return type auto:

constexpr auto foo ()
{
  static_assert (0 == __builtin_strcmp (__func__, "foo"), "#1");
  static_assert (0 == __builtin_strcmp (__FUNCTION__, "foo"), "#2");
  static_assert (0 == __builtin_strcmp (__PRETTY_FUNCTION__, "constexpr int
foo()"), "#3");

  return 1;
}

static_assert (foo (), "#4");

void bar ()
{
  static_assert (0 == __builtin_strcmp (__func__, "bar"), "#5");
  static_assert (0 == __builtin_strcmp (__FUNCTION__, "bar"), "#6");
  static_assert (0 == __builtin_strcmp (__PRETTY_FUNCTION__, "void bar()"),
"#7");
}


$ g++ -std=c++17 gcc-test.cpp
gcc-test.cpp: In Funktion »constexpr auto foo()«:
gcc-test.cpp:5:3: Fehler: statische Erklärung gescheitert: #3
   static_assert (0 == __builtin_strcmp (__PRETTY_FUNCTION__, "constexpr int
foo()"), "#3");
   ^~~~~~~~~~~~~
bebuch@pcbebuch:~/media/projekte/test$ g++ -std=c++17 gcc-test.cpp              
gcc-test.cpp: In Funktion »constexpr auto foo()«:
gcc-test.cpp:5:3: Fehler: statische Erklärung gescheitert: #3
   static_assert (0 == __builtin_strcmp (__PRETTY_FUNCTION__, "constexpr int
foo()"), "#3");
   ^~~~~~~~~~~~~
gcc-test.cpp: In Funktion »void bar()«:
gcc-test.cpp:14:3: Fehler: Nicht-konstante Bedingung für statische Behauptung
   static_assert (0 == __builtin_strcmp (__func__, "bar"), "#5");
   ^~~~~~~~~~~~~
gcc-test.cpp:14:40: Fehler: »__builtin_strcmp(((const char*)(& __func__)),
((const char*)"bar"))« ist kein Konstantenausdruck
   static_assert (0 == __builtin_strcmp (__func__, "bar"), "#5");
                       ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
gcc-test.cpp:15:3: Fehler: Nicht-konstante Bedingung für statische Behauptung
   static_assert (0 == __builtin_strcmp (__FUNCTION__, "bar"), "#6");
   ^~~~~~~~~~~~~
gcc-test.cpp:15:40: Fehler: »__builtin_strcmp(((const char*)(& __FUNCTION__)),
((const char*)"bar"))« ist kein Konstantenausdruck
   static_assert (0 == __builtin_strcmp (__FUNCTION__, "bar"), "#6");
                       ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
gcc-test.cpp:16:3: Fehler: Nicht-konstante Bedingung für statische Behauptung
   static_assert (0 == __builtin_strcmp (__PRETTY_FUNCTION__, "void bar()"),
"#7");
   ^~~~~~~~~~~~~
gcc-test.cpp:16:40: Fehler: »__builtin_strcmp(((const char*)(&
__PRETTY_FUNCTION__)), ((const char*)"void bar()"))« ist kein
Konstantenausdruck
   static_assert (0 == __builtin_strcmp (__PRETTY_FUNCTION__, "void bar()"),
"#7");
                       ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ g++ --version
g++ (GCC) 8.0.0 20170816 (experimental)
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.
>From gcc-bugs-return-572574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:08:05 2017
Return-Path: <gcc-bugs-return-572574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119071 invoked by alias); 18 Aug 2017 09:08:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 110218 invoked by uid 48); 18 Aug 2017 09:08:01 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81884] Invalid code generation with zero size arrays or flexible array members
Date: Fri, 18 Aug 2017 11:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on component assigned_to everconfirmed
Message-ID: <bug-81884-4-6ptfOoqGdd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02133.txt.bz2
Content-length: 1342

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-18
          Component|c++                         |tree-optimization
           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> ---
Confirmed.  Mine.  DSE is optimizing

void initialize() ()
{
  long unsigned int SR.19;
  struct value_t D.2321;
  struct X * x.0_1;
  struct X * x.3_4;

  <bb 2> [100.00%]:
  x.0_1 = x;
  x.0_1->arr[0] = 11;
  x.0_1->arr[1] = 12;
  MEM[(struct X *)x.0_1] = 10;
  x.3_4 = x;
  x.3_4->arr[2] = 13;
  x.3_4->arr[3] = 14;
  return;

to

__attribute__((noinline, noclone))
void initialize() ()
{
  long unsigned int SR.19;
  struct value_t D.2321;
  struct X * x.0_1;
  struct X * x.3_4;

  <bb 2> [100.00%]:
  x.0_1 = x;
  MEM[(struct X *)x.0_1] = 10;
  x.3_4 = x;
  x.3_4->arr[2] = 13;
  x.3_4->arr[3] = 14;
  return;

so it appears that it treats the "aggregate" assignment as a must-def.
>From gcc-bugs-return-572575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:08:49 2017
Return-Path: <gcc-bugs-return-572575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111908 invoked by alias); 18 Aug 2017 09:08:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 93074 invoked by uid 48); 18 Aug 2017 09:08:44 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81884] [6/7/8 Regression] Invalid code generation with zero size arrays or flexible array members
Date: Fri, 18 Aug 2017 12:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority cf_known_to_work target_milestone short_desc
Message-ID: <bug-81884-4-Waz77GlzPD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02134.txt.bz2
Content-length: 747

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
           Priority|P3                          |P2
      Known to work|                            |5.4.0
   Target Milestone|---                         |6.5
            Summary|Invalid code generation     |[6/7/8 Regression] Invalid
                   |with zero size arrays or    |code generation with zero
                   |flexible array members      |size arrays or flexible
                   |                            |array members
>From gcc-bugs-return-572576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:21:38 2017
Return-Path: <gcc-bugs-return-572576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77781 invoked by alias); 18 Aug 2017 09:21:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77741 invoked by uid 48); 18 Aug 2017 09:21:33 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/81886] New: Means to determine at runtime foffload targets specified at compile time
Date: Fri, 18 Aug 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: libgomp
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02135.txt.bz2
Content-length: 1816

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

            Bug ID: 81886
           Summary: Means to determine at runtime foffload targets
                    specified at compile time
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

https://gcc.gnu.org/ml/gcc-patches/2015-07/msg02670.html :
...
<SNIP> currently, the whole offload machinery will not be
run unless we actually have any offloaded data.  This means that the
configured mkoffload programs (-foffload=[...], defaulting to
configure-time --enable-offload-targets=[...]) will not be invoked unless
we actually have any offloaded data.  This means that we will not
actually generate constructor code to call libgomp's
GOMP_offload_register unless we actually have any offloaded data.  At
runtime, in libgomp, we then cannot reliably tell which -foffload=[...]
targets have been specified during compilation.

But: at runtime, I'd like to know which -foffload=[...] targets have been
specified during compilation, so that we can, for example, reliably
resort to host fallback execution for -foffload=disable instead of
getting error message that an offloaded function is missing.  On the
other hand, for example, for -foffload=nvptx-none, even if user program
code doesn't contain any offloaded data (and thus the offload machinery
has not been run), the user program might still contain any executable
directives or OpenACC runtime library calls, so we'd still like to use
the libgomp nvptx plugin.  However, we currently cannot detect this
situation.
...
>From gcc-bugs-return-572577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:21:55 2017
Return-Path: <gcc-bugs-return-572577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78912 invoked by alias); 18 Aug 2017 09:21:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 78710 invoked by uid 48); 18 Aug 2017 09:21:50 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81884] [6/7/8 Regression] Invalid code generation with zero size arrays or flexible array members
Date: Fri, 18 Aug 2017 12:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: 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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81884-4-flJbaRixQa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02136.txt.bz2
Content-length: 239

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 42000
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42000&action=edit
patch in testing
>From gcc-bugs-return-572578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:30:00 2017
Return-Path: <gcc-bugs-return-572578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93928 invoked by alias); 18 Aug 2017 09:29: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 85447 invoked by uid 48); 18 Aug 2017 09:29:53 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/81886] Means to determine at runtime foffload targets specified at compile time
Date: Fri, 18 Aug 2017 12:46: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:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81886-4-fLqh3ZDzZ9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02137.txt.bz2
Content-length: 225

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
This is the initial commit to gomp-4_0-branch :
https://gcc.gnu.org/ml/gcc-patches/2015-08/msg01264.html .
>From gcc-bugs-return-572579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:39:17 2017
Return-Path: <gcc-bugs-return-572579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65869 invoked by alias); 18 Aug 2017 09:39:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65739 invoked by uid 55); 18 Aug 2017 09:39:12 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Fri, 18 Aug 2017 12:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: hjl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-53037-4-XKqLWsVcX6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02138.txt.bz2
Content-length: 4996

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

--- Comment #24 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Aug 18 09:38:38 2017
New Revision: 251180

URL: https://gcc.gnu.org/viewcvs?rev=251180&root=gcc&view=rev
Log:
Add warn_if_not_aligned attribute

Add warn_if_not_aligned attribute as well as  command line options:
-Wif-not-aligned and -Wpacked-not-aligned.

__attribute__((warn_if_not_aligned(N))) causes compiler to issue a
warning if the field in a struct or union is not aligned to N:

typedef unsigned long long __u64
  __attribute__((aligned(4),warn_if_not_aligned(8)));

struct foo
{
  int i1;
  int i2;
  __u64 x;
};

__u64 is aligned to 4 bytes.  But inside struct foo, __u64 should be
aligned at 8 bytes.  It is used to define struct foo in such a way that
struct foo has the same layout and x has the same alignment when __u64
is aligned at either 4 or 8 bytes.

Since struct foo is normally aligned to 4 bytes, a warning will be issued:

warning: alignment 4 of 'struct foo' is less than 8

Align struct foo to 8 bytes:

struct foo
{
  int i1;
  int i2;
  __u64 x;
} __attribute__((aligned(8)));

silences the warning.  It also warns the field with misaligned offset:

struct foo
{
  int i1;
  int i2;
  int i3;
  __u64 x;
} __attribute__((aligned(8)));

warning: 'x' offset 12 in 'struct foo' isn't aligned to 8

This warning is controlled by -Wif-not-aligned and is enabled by default.

When -Wpacked-not-aligned is used, the same warning is also issued for
the field with explicitly specified alignment in a packed struct or union:

struct __attribute__ ((aligned (8))) S8 { char a[8]; };
struct __attribute__ ((packed)) S {
  struct S8 s8;
};

warning: alignment 1 of 'struct S' is less than 8

This warning is disabled by default and enabled by -Wall.

gcc/

        PR c/53037
        * print-tree.c (print_node): Support DECL_WARN_IF_NOT_ALIGN
        and TYPE_WARN_IF_NOT_ALIGN.
        * stor-layout.c (do_type_align): Merge DECL_WARN_IF_NOT_ALIGN.
        (handle_warn_if_not_align): New.
        (place_union_field): Call handle_warn_if_not_align.
        (place_field): Call handle_warn_if_not_align.  Copy
        TYPE_WARN_IF_NOT_ALIGN.
        (finish_builtin_struct): Copy TYPE_WARN_IF_NOT_ALIGN.
        (layout_type): Likewise.
        * tree-core.h (tree_type_common): Add warn_if_not_align.  Set
        spare to 18.
        (tree_decl_common): Add warn_if_not_align.
        * tree.c (build_range_type_1): Copy TYPE_WARN_IF_NOT_ALIGN.
        * tree.h (TYPE_WARN_IF_NOT_ALIGN): New.
        (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
        (DECL_WARN_IF_NOT_ALIGN): Likewise.
        (SET_DECL_WARN_IF_NOT_ALIGN): Likewise.
        * doc/extend.texi: Document warn_if_not_aligned attribute.
        * doc/invoke.texi: Document -Wif-not-aligned and
        -Wpacked-not-aligned.

gcc/c-family/

        PR c/53037
        * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
        (c_common_attribute_table): Add warn_if_not_aligned.
        (handle_aligned_attribute): Renamed to ...
        (common_handle_aligned_attribute): Remove argument, name, and add
        argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
        (handle_aligned_attribute): New.
        * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.

gcc/c/

        PR c/53037
        * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN.
        (check_bitfield_type_and_width): Don't allow bit-field with
        warn_if_not_aligned type.

gcc/cp/

        PR c/53037
        * decl.c (duplicate_decls): Also merge DECL_WARN_IF_NOT_ALIGN.
        * decl2.c (grokbitfield): Don't allow bit-field with
        warn_if_not_aligned type.

gcc/testsuite/

        PR c/53037
        * c-c++-common/pr53037-5.c: New test.
        * g++.dg/pr53037-1.C: Likewise.
        * g++.dg/pr53037-2.C: Likewise.
        * g++.dg/pr53037-3.C: Likewise.
        * g++.dg/pr53037-4.C: Likewise.
        * gcc.dg/pr53037-1.c: Likewise.
        * gcc.dg/pr53037-2.c: Likewise.
        * gcc.dg/pr53037-3.c: Likewise.
        * gcc.dg/pr53037-4.c: Likewise.

Added:
    trunk/gcc/testsuite/c-c++-common/pr53037-5.c
    trunk/gcc/testsuite/g++.dg/pr53037-1.C
    trunk/gcc/testsuite/g++.dg/pr53037-2.C
    trunk/gcc/testsuite/g++.dg/pr53037-3.C
    trunk/gcc/testsuite/g++.dg/pr53037-4.C
    trunk/gcc/testsuite/gcc.dg/pr53037-1.c
    trunk/gcc/testsuite/gcc.dg/pr53037-2.c
    trunk/gcc/testsuite/gcc.dg/pr53037-3.c
    trunk/gcc/testsuite/gcc.dg/pr53037-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-attribs.c
    trunk/gcc/c-family/c.opt
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl2.c
    trunk/gcc/doc/extend.texi
    trunk/gcc/doc/invoke.texi
    trunk/gcc/print-tree.c
    trunk/gcc/stor-layout.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-core.h
    trunk/gcc/tree.c
    trunk/gcc/tree.h
>From gcc-bugs-return-572580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:40:39 2017
Return-Path: <gcc-bugs-return-572580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97118 invoked by alias); 18 Aug 2017 09:40:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90303 invoked by uid 48); 18 Aug 2017 09:40:34 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Fri, 18 Aug 2017 13:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-53037-4-vFYMDc5tnb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02139.txt.bz2
Content-length: 469

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

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

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

--- Comment #25 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.
>From gcc-bugs-return-572581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:43:20 2017
Return-Path: <gcc-bugs-return-572581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43320 invoked by alias); 18 Aug 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 43266 invoked by uid 48); 18 Aug 2017 09:43:16 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/81886] Means to determine at runtime foffload targets specified at compile time
Date: Fri, 18 Aug 2017 13:03: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:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81886-4-XrFuQpmgak@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02140.txt.bz2
Content-length: 1107

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

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 42001
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42001&action=edit
trunk patch

This is a version of the patch for trunk.

It introduces some failures for c and c++, but that might be due to allowing
more testing:
...
FAIL: libgomp.oacc-c-c++-common/lib-74.c -foffload=nvptx-none  -O0  execution
test
FAIL: libgomp.oacc-c-c++-common/lib-74.c -foffload=nvptx-none  -O2  execution
test
FAIL: libgomp.oacc-c-c++-common/lib-78.c -foffload=nvptx-none  -O0  execution
test
FAIL: libgomp.oacc-c-c++-common/lib-78.c -foffload=nvptx-none  -O2  execution
test
FAIL: libgomp.oacc-c-c++-common/lib-83.c -foffload=nvptx-none  -O0  execution
test
FAIL: libgomp.oacc-c-c++-common/lib-83.c -foffload=nvptx-none  -O2  execution
test
FAIL: libgomp.oacc-c-c++-common/parallel-dims.c -foffload=nvptx-none  -O0 
(test for excess errors)
FAIL: libgomp.oacc-c-c++-common/parallel-dims.c -foffload=nvptx-none  -O2 
(test for excess errors)
...
>From gcc-bugs-return-572582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 09:57:54 2017
Return-Path: <gcc-bugs-return-572582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76778 invoked by alias); 18 Aug 2017 09:57: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 76678 invoked by uid 48); 18 Aug 2017 09:57:49 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/81886] Means to determine at runtime foffload targets specified at compile time
Date: Fri, 18 Aug 2017 13:08: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:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81886-4-Rl23vGyGLj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02141.txt.bz2
Content-length: 1031

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

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #2)

These are all related to timing issues. Maybe not related to the patch.

> FAIL: libgomp.oacc-c-c++-common/lib-74.c -foffload=nvptx-none  -O0 
> execution test
> FAIL: libgomp.oacc-c-c++-common/lib-74.c -foffload=nvptx-none  -O2 
> execution test

'./lib-74.exe'; echo XYZ$?ZYX^M
actual time < delay time^M
Aborted (core dumped)^M

> FAIL: libgomp.oacc-c-c++-common/lib-78.c -foffload=nvptx-none  -O0 
> execution test
> FAIL: libgomp.oacc-c-c++-common/lib-78.c -foffload=nvptx-none  -O2 
> execution test

'./lib-78.exe'; echo XYZ$?ZYX^M
actual time < delay time^M
Aborted (core dumped)^M

> FAIL: libgomp.oacc-c-c++-common/lib-83.c -foffload=nvptx-none  -O0 
> execution test
> FAIL: libgomp.oacc-c-c++-common/lib-83.c -foffload=nvptx-none  -O2 
> execution test

'./lib-83.exe'; echo XYZ$?ZYX^M
actual time too long^M
Aborted (core dumped)^M
>From gcc-bugs-return-572583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 11:04:53 2017
Return-Path: <gcc-bugs-return-572583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75488 invoked by alias); 18 Aug 2017 11:04: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 67018 invoked by uid 48); 18 Aug 2017 11:03:02 -0000
From: "v at vsamko dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81847] ICE with LTO enabled
Date: Fri, 18 Aug 2017 13:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: ice-on-valid-code, lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: v at vsamko dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81847-4-14MnHEr8wL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81847-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81847-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02142.txt.bz2
Content-length: 1523

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

--- Comment #4 from Valentine <v at vsamko dot com> ---
Created attachment 42002
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42002&action=edit
code to reproduce ICE

I reduced (thanks to suggestions above and CReduce) this to the attached
example.

g++ -w -flto -O3  -c gccbug.ii -o gccbug.ii.o

g++ -flto -O3 -Wl,-r gccbug.ii.o -o gccbug.ii.merged.o -nostdlib -Wl,-r
-flto-partition=one

Second command crashes with 

lto1: internal compiler error: in add_symbol_to_partition_1, at
lto/lto-partition.c:203
0x1317e97 add_symbol_to_partition_1
        ../../gcc-7.1.0/gcc/lto/lto-partition.c:203
0x1317723 add_references_to_partition
        ../../gcc-7.1.0/gcc/lto/lto-partition.c:93
0x1317b8e add_symbol_to_partition_1
        ../../gcc-7.1.0/gcc/lto/lto-partition.c:176
0x1317723 add_references_to_partition
        ../../gcc-7.1.0/gcc/lto/lto-partition.c:93
0x1317b8e add_symbol_to_partition_1
        ../../gcc-7.1.0/gcc/lto/lto-partition.c:176
0x1317cab add_symbol_to_partition_1
        ../../gcc-7.1.0/gcc/lto/lto-partition.c:163
0x1318e63 lto_balanced_map(int, int)
        ../../gcc-7.1.0/gcc/lto/lto-partition.c:550
0x1312b8d do_whole_program_analysis
        ../../gcc-7.1.0/gcc/lto/lto.c:3123
0x1312b8d lto_main()
        ../../gcc-7.1.0/gcc/lto/lto.c:3320
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
>From gcc-bugs-return-572584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 11:19:47 2017
Return-Path: <gcc-bugs-return-572584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89404 invoked by alias); 18 Aug 2017 11:19: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 83501 invoked by uid 48); 18 Aug 2017 11:19:40 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/81877] [7/8 Regression] Incorrect results with lto and -fipa-cp and -fipa-cp-clone
Date: Fri, 18 Aug 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: ipa
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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:
Message-ID: <bug-81877-4-6zVBtyauWd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02143.txt.bz2
Content-length: 1592

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

--- Comment #11 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #10)
> Now - for refs that have an invariant address in such loop the interleaving
> effectively means that they are independent even in the same iteration. 

Not if there's no "other iteration", i.e. runtime iteration count is 1.

[...]
> for example.  I suppose it's not their intent.  So maybe there's an
> additional
> restriction on the interleaving?  Preserve iteration order of individual
> stmts?  That would prevent autopar in face of just ivdep for example.
> 
> Note that any "handle must-defs 'correctly'" writing is inherently fishy.

I think you're saying that pragma-ivdep and do-concurrent are too hand-wavy
about how the compiler may or must privatize variables, whether it must detect
and handle reductions/inductions etc. But note that LIM is keying on 'simdlen',
and simdlen is also set by OpenMP-SIMD which is more rigorous in that regard,
i.e. privatization is explicit in GIMPLE. And there I believe LIM does not have
the license to disregard may-alias relations *unless* it verifies that loop
iterates at least twice and repeated writes are UB. On this example:

void g(int p, int *out)
{
  int x, y = 0, *r = p ? &x : &y;
  unsigned n = 0;
  asm("" : "+r" (n));
#pragma omp simd
  for (int i = 0; i <= n; i++)
    {
//#pragma omp ordered simd
      x = 42;
      out[i] = *r;
    }
}

I believe LSM is wrong for n=0, and for any n if the pragma-ordered is
uncommented.
>From gcc-bugs-return-572585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 11:21:21 2017
Return-Path: <gcc-bugs-return-572585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58435 invoked by alias); 18 Aug 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 56524 invoked by uid 48); 18 Aug 2017 11:21:16 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/81886] Means to determine at runtime foffload targets specified at compile time
Date: Fri, 18 Aug 2017 13:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81886-4-ePEQWMJDGR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02144.txt.bz2
Content-length: 1435

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

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #2)
> FAIL: libgomp.oacc-c-c++-common/parallel-dims.c -foffload=nvptx-none  -O0 
> (test for excess errors)
> FAIL: libgomp.oacc-c-c++-common/parallel-dims.c -foffload=nvptx-none  -O2 
> (test for excess errors)

Failure in more detail:
...
FAIL: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/parallel-dims.c
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none  -O0  (test
for excess errors)
Excess errors:
libgomp/testsuite/libgomp.oacc-c++/../libgomp.oacc-c-c++-common/parallel-dims.c:168:9:
warning: using vector_length (32), ignoring 1
...

At line 168, we find:
...
#pragma acc parallel copy (vectors_actual) /* { dg-warning "using vector_length
\\(32\\), ignoring 1" "" { target openacc_nvidia_accel_configured } } */ \
  vector_length (VECTORS) /* { dg-warning "'vector_length' value must be
positive" "" { target c++ } } */
...

AFAICT, openacc_nvidia_accel_configured returns false with the patch because
offload_targets is now nvptx-none instead of nvptx:
...
proc check_effective_target_openacc_nvidia_accel_configured { } {
    global offload_targets
    if { ![string match "*,nvptx,*" ",$offload_targets,"] } {
        return 0
    }
...
Note: the gomp-4_0-branch uses openacc_nvidia_accel_selected instead in the
test-case.
>From gcc-bugs-return-572586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 11:22:52 2017
Return-Path: <gcc-bugs-return-572586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26410 invoked by alias); 18 Aug 2017 11:22:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23317 invoked by uid 48); 18 Aug 2017 11:22:46 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81268] [avr] Support __gcc_isr pseudo-instruction for more efficient ISR prologues
Date: Fri, 18 Aug 2017 13:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: gjl at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81268-4-Vf4QiAvFsm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81268-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81268-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02145.txt.bz2
Content-length: 506

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

--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #3)
> Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01469.html

I guess due to some server crash / glitch?

> New Revision: 251085
> 
> URL: https://gcc.gnu.org/viewcvs?rev=251085&root=gcc&view=rev
> Log:
> gcc/
>         PR target/81754
>         PR target/81268

Shouldn't this also result in a respective auto-comment to PR81754?
>From gcc-bugs-return-572587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 11:25:11 2017
Return-Path: <gcc-bugs-return-572587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11136 invoked by alias); 18 Aug 2017 11:25:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3886 invoked by uid 48); 18 Aug 2017 11:25:07 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81754] Building of cross compiler avr-elf is broken
Date: Fri, 18 Aug 2017 13:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority bug_status cf_gcchost version resolution
Message-ID: <bug-81754-4-eH3kBxXbSn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81754-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81754-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02146.txt.bz2
Content-length: 646

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |RESOLVED
               Host|x86_64-linux-gnu            |
            Version|7.0                         |8.0
         Resolution|---                         |FIXED

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Fixed by r251085.
>From gcc-bugs-return-572588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 11:27:51 2017
Return-Path: <gcc-bugs-return-572588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18732 invoked by alias); 18 Aug 2017 11:27: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 16003 invoked by uid 48); 18 Aug 2017 11:27:44 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81847] ICE with LTO enabled
Date: Fri, 18 Aug 2017 13:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: ice-on-valid-code, lto
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 assigned_to everconfirmed
Message-ID: <bug-81847-4-F5x93Q4yPy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81847-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81847-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02147.txt.bz2
Content-length: 704

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, disappeared on trunk in r248334 which probably only makes it latent.
The revision changes inlining decisions. Let me take a look.
>From gcc-bugs-return-572589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 11:32:32 2017
Return-Path: <gcc-bugs-return-572589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129216 invoked by alias); 18 Aug 2017 11: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 128051 invoked by uid 48); 18 Aug 2017 11:32:27 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81268] [avr] Support __gcc_isr pseudo-instruction for more efficient ISR prologues
Date: Fri, 18 Aug 2017 13:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: gjl at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81268-4-loCQVOW0G5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81268-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81268-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02148.txt.bz2
Content-length: 670

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Georg-Johann Lay from comment #4)
> (In reply to Eric Gallager from comment #3)
> > Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01469.html
> 
> I guess due to some server crash / glitch?
> 

Yeah, see the mailing lists about it.

> > New Revision: 251085
> > 
> > URL: https://gcc.gnu.org/viewcvs?rev=251085&root=gcc&view=rev
> > Log:
> > gcc/
> >         PR target/81754
> >         PR target/81268
> 
> Shouldn't this also result in a respective auto-comment to PR81754?

That one must have gotten lost, too...
>From gcc-bugs-return-572590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 11:56:41 2017
Return-Path: <gcc-bugs-return-572590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81034 invoked by alias); 18 Aug 2017 11:56:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 71417 invoked by uid 48); 18 Aug 2017 11:56:34 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access
Date: Fri, 18 Aug 2017 13:31: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81805-4-Wb2rr31xJX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81805-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81805-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02149.txt.bz2
Content-length: 837

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

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

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

--- Comment #11 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #10)
> [ Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01333.html, using
> PR81875 instead of PR81844, since PR81844 was overwritten ]
> 
> Filed comment 3 as PR81875 - omp for loop optimized away
> 
> This PR remains for the analysis of the test-case from comment 0.

My current hypothesis is that this is a cuda bug.

Filed bug report at nvidia, waiting for confirmation.
>From gcc-bugs-return-572591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 11:57:03 2017
Return-Path: <gcc-bugs-return-572591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125423 invoked by alias); 18 Aug 2017 11:57:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115272 invoked by uid 48); 18 Aug 2017 11:56:58 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access
Date: Fri, 18 Aug 2017 13:34: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries 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 resolution everconfirmed
Message-ID: <bug-81805-4-WK69IY9CMf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81805-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81805-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02150.txt.bz2
Content-length: 457

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |WAITING
   Last reconfirmed|                            |2017-08-18
         Resolution|FIXED                       |---
     Ever confirmed|0                           |1
>From gcc-bugs-return-572592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 12:33:42 2017
Return-Path: <gcc-bugs-return-572592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73369 invoked by alias); 18 Aug 2017 12:33: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 66841 invoked by uid 48); 18 Aug 2017 12:33:37 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/45033] "delete" does overload resolution for class operands, but shouldn't.
Date: Fri, 18 Aug 2017 13:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: accepts-invalid
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-45033-4-NYQYsUlBXU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45033-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45033-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02151.txt.bz2
Content-length: 683

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that g++ accepts the code, while clang++ rejects it.
>From gcc-bugs-return-572593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 12:33:50 2017
Return-Path: <gcc-bugs-return-572593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76619 invoked by alias); 18 Aug 2017 12:33: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 67718 invoked by uid 48); 18 Aug 2017 12:33:37 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81533] g++ pops up a constructor for objects that could be initialized at load-time
Date: Fri, 18 Aug 2017 13:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81533-4-ASboyjZppy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81533-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81533-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02152.txt.bz2
Content-length: 402

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
     Ever confirmed|0                           |1
>From gcc-bugs-return-572594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 12:38:40 2017
Return-Path: <gcc-bugs-return-572594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105404 invoked by alias); 18 Aug 2017 12:38:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 102374 invoked by uid 48); 18 Aug 2017 12:38:34 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81887] New: pragma omp ordered simd ignored under -fopenmp-simd
Date: Fri, 18 Aug 2017 13:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: openmp, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-81887-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02153.txt.bz2
Content-length: 1055

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

            Bug ID: 81887
           Summary: pragma omp ordered simd ignored under -fopenmp-simd
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: openmp, wrong-code
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amonakov at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

Under -fopenmp-simd, OpenMP pragma 'ordered' is not added to IR, but it should
be.

void f(int *out)
{
#pragma omp simd
  for (int i = 0; i < 100; i++)
#pragma omp ordered simd
    out[i/2] = i;
}

$ gcc/cc1 -O2 -fopenmp-simd -fdump-tree-gimple t.c
$ cat t.c.004t.gimple

void f(int*) (int * out)
{
  {
    int i;

    #pragma omp simd linear(i:1)
    for (i = 0; i < 100; i = i + 1)
      {
        _1 = i / 2;
        _2 = (long unsigned int) _1;
        _3 = _2 * 4;
        _4 = out + _3;
        *_4 = i;
      }
  }
}
>From gcc-bugs-return-572596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 12:53:39 2017
Return-Path: <gcc-bugs-return-572596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100878 invoked by alias); 18 Aug 2017 12:53: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 93526 invoked by uid 48); 18 Aug 2017 12:53:25 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/50445] Rejects use of constant expression using a pointer non-type template parameter
Date: Fri, 18 Aug 2017 13:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-50445-4-gCsZTspQR4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02155.txt.bz2
Content-length: 1485

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-18
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
The error message is now:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 50445.cc
50445.cc: In instantiation of ‘const int X<(& values)>::val0’:
50445.cc:7:22:   required from here
50445.cc:4:19: error: the value of ‘values’ is not usable in a constant
expression
  static int const val0 = values[0];
                   ^~~~
50445.cc:1:18: note: ‘values’ was not declared ‘constexpr’
 extern int const values[] = { 1, 2, 3 };
                  ^~~~~~
50445.cc:7:26: error: size of array ‘array’ is not an integral
constant-expression
 int array[X<values>::val0];
                          ^
$

...which I think clears things up. Although maybe the note saying 'values' was
not declared 'constexpr' could have a fix-it hint added to it showing where to
insert the 'constexpr'? Putting in WAITING to see what the reporter thinks.
>From gcc-bugs-return-572595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 12:46:29 2017
Return-Path: <gcc-bugs-return-572595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99618 invoked by alias); 18 Aug 2017 12:46:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87983 invoked by uid 48); 18 Aug 2017 12:46:25 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/50169] "new struct X {{}};" incorrectly treated as an invalid struct-definition
Date: Fri, 18 Aug 2017 13:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.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: cc
Message-ID: <bug-50169-4-1zMuiCYA4L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50169-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50169-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02154.txt.bz2
Content-length: 2119

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Johannes Schaub from comment #0)
> The following looks like valid code:
> 
>  struct A { int a; }; 
>  int main() { 
>    new struct A {{ }}; 
>  }
> 
> The type-specifier-seq "struct A" is followed by a braced-init-list "{{}}".
> But GCC says:
> 
> main1.cpp: In function 'int main()':
> main1.cpp:3:16: error: types may not be defined in a new-type-id
> main1.cpp:3:17: error: expected unqualified-id before '{' token
> 
> As far as I can see, I would only define a new type if I would say:
> 
>     new struct A { };
> 
> But the two-braces disambiguates it.

Confirmed that g++ rejects it, but clang++ rejects it too:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 50169.cc
50169.cc: In function ‘int main()’:
50169.cc:3:15: error: types may not be defined in a new-type-id
  new struct A {{ }};
               ^
50169.cc:3:16: error: expected unqualified-id before ‘{’ token
  new struct A {{ }};
                ^
$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic 50169.cc
50169.cc:3:16: error: expected member name or ';' after declaration specifiers
        new struct A {{ }}; 
                      ^
50169.cc:3:13: error: 'A' can not be defined in a type specifier
        new struct A {{ }}; 
                   ^
2 errors generated.
$

...so I'm not sure if it's an incorrect treatment or not...

(In reply to Ville Voutilainen from comment #1)
> Trying
> 
> struct A { int a; }; 
>  int main() { 
>    new (struct A) {{ }}; 
>  }
> 
> gives
> 
> internal compiler error: in cxx_eval_bare_aggregate, at cp/semantics.c:6601
> 

I can't reproduce this ICE with gcc8...

I guess I'll leave this in UNCONFIRMED for now.
>From gcc-bugs-return-572597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:01:15 2017
Return-Path: <gcc-bugs-return-572597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128780 invoked by alias); 18 Aug 2017 13:01: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 119217 invoked by uid 48); 18 Aug 2017 13:01:09 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81885] operator-> not checked by -D_GLIBCXX_ASSERTIONS
Date: Fri, 18 Aug 2017 13:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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-81885-4-f3Hm0chZZ2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81885-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81885-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02156.txt.bz2
Content-length: 625

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

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

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
No, because there's nothing wrong with calling operator-> on a null unique_ptr:

std::unique_ptr<int> p;
int* pp = p.operator->();

I'd be more inclined to remove the pedantic assertion in debug mode.
>From gcc-bugs-return-572598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:03:55 2017
Return-Path: <gcc-bugs-return-572598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59519 invoked by alias); 18 Aug 2017 13:03:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 49623 invoked by uid 48); 18 Aug 2017 13:03:50 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/45033] "delete" does overload resolution for class operands, but shouldn't.
Date: Fri, 18 Aug 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: 4.5.0
X-Bugzilla-Keywords: accepts-invalid
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-45033-4-MySrRzypqS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45033-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45033-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02157.txt.bz2
Content-length: 224

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Clang only rejects it in C++98 or C++11 mode, it accepts it for C++14.

EDG accepts it unconditionally.
>From gcc-bugs-return-572599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:08:47 2017
Return-Path: <gcc-bugs-return-572599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61106 invoked by alias); 18 Aug 2017 13:08:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 57839 invoked by uid 48); 18 Aug 2017 13:08:40 -0000
From: "joerg.richter@pdv-fs.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81885] operator-> not checked by -D_GLIBCXX_ASSERTIONS
Date: Fri, 18 Aug 2017 14:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joerg.richter@pdv-fs.de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81885-4-wKLO7jexR0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81885-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81885-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02158.txt.bz2
Content-length: 290

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

--- Comment #2 from Jörg Richter <joerg.richter@pdv-fs.de> ---
Okay, I see your point. But I think calling operator->() to get the pointer is
not a very common use-case. Its more like get() is the right function for this
task.
>From gcc-bugs-return-572600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:09:41 2017
Return-Path: <gcc-bugs-return-572600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90426 invoked by alias); 18 Aug 2017 13:09: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 84093 invoked by uid 48); 18 Aug 2017 13:09:35 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81888] New: Structured bindings stopped working
Date: Fri, 18 Aug 2017 14:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81888-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02159.txt.bz2
Content-length: 975

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

            Bug ID: 81888
           Summary: Structured bindings stopped working
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

The following code worked well on GCC-7.1, but fails on GCC-7.2 with
-std=c++17:



struct do_not_define_std_tuple_size_for_me {
  bool test1 = true;
};

template <class T>
bool is_structured_bindings_work() noexcept {
  auto [a] = T{};
  return a;
}

const bool do_not_use =
is_structured_bindings_work<do_not_define_std_tuple_size_for_me>();



Error message:
error: invalid initializer for structured binding declaration
   auto [a] = T{};
        ^~~

Fix from Bug 78939 does not resolves the issue. Clang-4.0 and GCC-7.1 compile
the code well.
>From gcc-bugs-return-572601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:14:23 2017
Return-Path: <gcc-bugs-return-572601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71429 invoked by alias); 18 Aug 2017 13: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 67466 invoked by uid 48); 18 Aug 2017 13:14:18 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81884] [6/7/8 Regression] Invalid code generation with zero size arrays or flexible array members
Date: Fri, 18 Aug 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: tree-optimization
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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81884-4-FUlXmESZlS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02160.txt.bz2
Content-length: 669

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Regresses gfortran.dg/reassoc_4.f because we no longer DSE

@@ -207,6 +207,7 @@
   _28 = *weight_94(D);
   _29 = _27 * _28;
   _30 = _10 + _29;
+  *s_91(D)[_9] = _30;
   _173 = _12 + 9;
   _174 = _17 + _173;
   _175 = _19 + _174;
@@ -226,6 +227,7 @@
   _193 = _189 * _192;
   _194 = _28 * _193;
   _195 = _185 + _194;
+  *s_91(D)[_9] = _195;
...

so the restriction is too broad.  Now the question is if we want to allow

struct S { int a[0]; };
struct S (*p)[1];

and (*p)[0].a[4].  Or array of size n and (*p)[n-1].a[4]...
>From gcc-bugs-return-572602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:16:36 2017
Return-Path: <gcc-bugs-return-572602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45187 invoked by alias); 18 Aug 2017 13:16:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24740 invoked by uid 48); 18 Aug 2017 13:16:20 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81884] [6/7/8 Regression] Invalid code generation with zero size arrays or flexible array members
Date: Fri, 18 Aug 2017 14:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-81884-4-pZre62mWu9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02161.txt.bz2
Content-length: 524

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

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

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 42003
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42003&action=edit
updated patch
>From gcc-bugs-return-572603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:18:52 2017
Return-Path: <gcc-bugs-return-572603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8051 invoked by alias); 18 Aug 2017 13:18: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 128933 invoked by uid 48); 18 Aug 2017 13:18:46 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/50169] "new struct X {{}};" incorrectly treated as an invalid struct-definition
Date: Fri, 18 Aug 2017 14:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-50169-4-k5Uo47F1Pm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50169-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50169-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02162.txt.bz2
Content-length: 454

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
EDG rejects it too:

"gr.cc", line 3: error: expected a declaration
     new struct A {{ }}; 
                   ^

"gr.cc", line 3: error: type definition is not allowed
     new struct A {{ }}; 
         ^

2 errors detected in the compilation of "gr.cc".


VC++ accepts it though.

I suggest taking it to WG21 as a core issue.
>From gcc-bugs-return-572604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:22:40 2017
Return-Path: <gcc-bugs-return-572604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121426 invoked by alias); 18 Aug 2017 13:22:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 111242 invoked by uid 48); 18 Aug 2017 13:22:31 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81885] operator-> not checked by -D_GLIBCXX_ASSERTIONS
Date: Fri, 18 Aug 2017 14:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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-81885-4-OccfY8k6eR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81885-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81885-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02163.txt.bz2
Content-length: 692

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
In fact it's the idiomatic way to get a real pointer from any kind of smart
pointer, e.g. fancy pointers used by allocators (which don't necessarily have a
get member function).

There's even a proposal to standardize a helper utility for doing it, see
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0653r1.html

It might not be so common for unique_ptr but it's still not dangerous, or
deserving of an assertion. If the returned pointer is dereferenced you'll get a
segfault anyway, so the benefit of an assertion is minimal. It doesn't prevent
any bugs.
>From gcc-bugs-return-572605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:27:08 2017
Return-Path: <gcc-bugs-return-572605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54140 invoked by alias); 18 Aug 2017 13:27:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 39687 invoked by uid 55); 18 Aug 2017 13:27:02 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/81877] [7/8 Regression] Incorrect results with lto and -fipa-cp and -fipa-cp-clone
Date: Fri, 18 Aug 2017 14:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
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:
Message-ID: <bug-81877-4-8JVP5koQD2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02164.txt.bz2
Content-length: 2872

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

--- Comment #12 from rguenther at suse dot de <rguenther at suse dot de> ---
On Fri, 18 Aug 2017, amonakov at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81877
> 
> --- Comment #11 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
> (In reply to Richard Biener from comment #10)
> > Now - for refs that have an invariant address in such loop the interleaving
> > effectively means that they are independent even in the same iteration. 
> 
> Not if there's no "other iteration", i.e. runtime iteration count is 1.

Not sure about this, I interpret 'ivdep' as there's no dependence for
any number of iterations.

> [...]
> > for example.  I suppose it's not their intent.  So maybe there's an
> > additional
> > restriction on the interleaving?  Preserve iteration order of individual
> > stmts?  That would prevent autopar in face of just ivdep for example.
> > 
> > Note that any "handle must-defs 'correctly'" writing is inherently fishy.
> 
> I think you're saying that pragma-ivdep and do-concurrent are too hand-wavy
> about how the compiler may or must privatize variables, whether it must detect
> and handle reductions/inductions etc. But note that LIM is keying on 'simdlen',
> and simdlen is also set by OpenMP-SIMD which is more rigorous in that regard,
> i.e. privatization is explicit in GIMPLE. And there I believe LIM does not have
> the license to disregard may-alias relations *unless* it verifies that loop
> iterates at least twice and repeated writes are UB. On this example:

Yeah, the middle-end uses safelen which is also used for simdlen.  It has
to adhere to the most conservative definition.

> void g(int p, int *out)
> {
>   int x, y = 0, *r = p ? &x : &y;
>   unsigned n = 0;
>   asm("" : "+r" (n));
> #pragma omp simd
>   for (int i = 0; i <= n; i++)
>     {
> //#pragma omp ordered simd
>       x = 42;
>       out[i] = *r;
>     }
> }
> 
> I believe LSM is wrong for n=0, and for any n if the pragma-ordered is
> uncommented.

I see.  I wonder if we handle pramga-ordered correctly in vectorization
for say

#pragma omp simd
  for (int i = 0; i <= n; i++)
    {
#pragma omp ordered simd
      out[i+2] = 0;
      out[i+1] = 1;
      out[i] = 2;
    }

I believe we vectorize this with SLP and unrolling with VF 12 as

   out[i..i+3] = {2, 1, 0, 2};
   out[i+4..i+7] = {1, 0, 2, 1};
   out[i+8..i+11] = {0, 2, 1, 0};

I guess "at the same time" fulfils 'ordered' but does splitting
like above do?  That moves out[i+3] store before out[i+5].

The safest thing would be to remove safelen handling from invariant
motion.

More rigorously defining the semantic of loop->safelen (the
middle-end term) is necessary nevertheless.  I believe omp ordered
doesn't have any middle-end representation?
>From gcc-bugs-return-572606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:29:19 2017
Return-Path: <gcc-bugs-return-572606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79765 invoked by alias); 18 Aug 2017 13:29:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 72589 invoked by uid 48); 18 Aug 2017 13:29:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81888] [7/8 Regression] Structured bindings stopped working
Date: Fri, 18 Aug 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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 bug_status cf_known_to_work keywords cf_reconfirmed_on everconfirmed short_desc target_milestone cf_known_to_fail
Message-ID: <bug-81888-4-XYdovLuzfb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81888-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81888-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02165.txt.bz2
Content-length: 944

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |7.1.0
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2017-08-18
     Ever confirmed|0                           |1
            Summary|Structured bindings stopped |[7/8 Regression] Structured
                   |working                     |bindings stopped working
   Target Milestone|---                         |7.3
      Known to fail|                            |7.2.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  The feature was new in GCC 7.
>From gcc-bugs-return-572607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:31:07 2017
Return-Path: <gcc-bugs-return-572607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46792 invoked by alias); 18 Aug 2017 13:31:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 36791 invoked by uid 48); 18 Aug 2017 13:30:59 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81887] pragma omp ordered simd ignored under -fopenmp-simd
Date: Fri, 18 Aug 2017 14:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: openmp, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81887-4-qLtp4yRzYJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81887-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81887-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02166.txt.bz2
Content-length: 221

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
See also PR81877 for some discussion and an example where SLP vectorization can
break 'ordered'.
>From gcc-bugs-return-572608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:34:21 2017
Return-Path: <gcc-bugs-return-572608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105383 invoked by alias); 18 Aug 2017 13:34: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 103668 invoked by uid 48); 18 Aug 2017 13:34:14 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/50456] attributes ignored on member templates
Date: Fri, 18 Aug 2017 15:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.5.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-50456-4-b75DGbRWMo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50456-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50456-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02167.txt.bz2
Content-length: 1190

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
It errors for me:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -O2 50456.cc
50456.cc: In function ‘int main(int, char**)’:
50456.cc:8:15: warning: unused parameter ‘argc’ [-Wunused-parameter]
 int main (int argc, char *argv[]) {
               ^~~~
50456.cc:8:32: warning: unused parameter ‘argv’ [-Wunused-parameter]
 int main (int argc, char *argv[]) {
                                ^
50456.cc:10:28: error: call to ‘Object<float>::should_error<int>’ declared with
attribute error: Calling this function should trigger a compiler error
  FloatObject::should_error (7);
  ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
$
>From gcc-bugs-return-572609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:39:44 2017
Return-Path: <gcc-bugs-return-572609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95637 invoked by alias); 18 Aug 2017 13:39:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87703 invoked by uid 48); 18 Aug 2017 13:39:39 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/49224] [C++0x] Scoped enumeration instantiated even if not required
Date: Fri, 18 Aug 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: 4.7.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: cc
Message-ID: <bug-49224-4-S9FS0U31yT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02168.txt.bz2
Content-length: 2061

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

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> ---
(In reply to Johannes Schaub from comment #0)
> GCC should not instantiate the definition of the scoped enumeration:
> 
> template<typename T>
> struct A {
>   enum class B {
>     X = T::value
>   };
> };
> 
> int main() {
>   A<int> a;
> }
> 
> GCC error:
> 
> main1.cpp: In instantiation of ‘A<int>’:
> main1.cpp:9:10:   instantiated from here
> main1.cpp:3:14: error: ‘value’ is not a member of ‘int’
> 
> This code looks well-formed. Only if we look into the enumeration, as
> "A<int>::B::X", the definition of the enumeration is required to exist and
> thus implicitly instantiated. This is specified at 14.7.1p1 and p2.

Confirmed that g++ rejects it, but clang rejects it too:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 49224.cc
49224.cc: In instantiation of ‘struct A<int>’:
49224.cc:9:9:   required from here
49224.cc:3:13: error: ‘value’ is not a member of ‘int’
  enum class B {
             ^
49224.cc: In function ‘int main()’:
49224.cc:9:9: warning: unused variable ‘a’ [-Wunused-variable]
  A<int> a;
         ^
$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic 49224.cc
49224.cc:3:7: error: expected identifier or '{'
        enum class B {
             ^
49224.cc:3:2: warning: declaration does not declare anything
[-Wmissing-declarations]
        enum class B {
        ^~~~
49224.cc:9:9: warning: unused variable 'a' [-Wunused-variable]
        A<int> a;
               ^
2 warnings and 1 error generated.
$

Since I'm not sure if this is intentional or not, I'm leaving it UNCONFIRMED.
>From gcc-bugs-return-572610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:44:29 2017
Return-Path: <gcc-bugs-return-572610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123339 invoked by alias); 18 Aug 2017 13: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 117335 invoked by uid 48); 18 Aug 2017 13:44:25 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/49224] [C++0x] Scoped enumeration instantiated even if not required
Date: Fri, 18 Aug 2017 15:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.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: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-49224-4-vrR4zLEQiH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02169.txt.bz2
Content-length: 1378

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Actually scratch that, my version of clang is old so it doesn't default to
c++11. When I manually force -std=c++0x, clang accepts the code, while g++
still rejects it:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -std=c++0x 49224.cc
49224.cc: In instantiation of ‘struct A<int>’:
49224.cc:9:9:   required from here
49224.cc:3:13: error: ‘value’ is not a member of ‘int’
  enum class B {
             ^
49224.cc: In function ‘int main()’:
49224.cc:9:9: warning: unused variable ‘a’ [-Wunused-variable]
  A<int> a;
         ^
$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic -std=c++0x 49224.cc
49224.cc:9:9: warning: unused variable 'a' [-Wunused-variable]
        A<int> a;
               ^
1 warning generated.
$

So confirming then.
>From gcc-bugs-return-572611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:48:55 2017
Return-Path: <gcc-bugs-return-572611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102511 invoked by alias); 18 Aug 2017 13:48: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 78242 invoked by uid 48); 18 Aug 2017 13:48:36 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/26748] gimplify_expr_stmt in cp-gimplifer.c does warnings
Date: Fri, 18 Aug 2017 15:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-26748-4-1ohMTyHAMW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-26748-4@http.gcc.gnu.org/bugzilla/>
References: <bug-26748-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02170.txt.bz2
Content-length: 855

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-18
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #0)
> I don't have a testcase but gimplify_expr_stmt produces warnings:
>             warning (OPT_Wextra, "statement with no effect");
> ...
>       else if (warn_unused_value)
>         warn_if_unused_value (stmt, input_location);

WAITING on a testcase
>From gcc-bugs-return-572612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:50:15 2017
Return-Path: <gcc-bugs-return-572612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39920 invoked by alias); 18 Aug 2017 13:50: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 37601 invoked by uid 48); 18 Aug 2017 13:50:10 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/47256] "--sysroot" option is not passed to COLLECT_GCC_OPTIONS
Date: Fri, 18 Aug 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: c++
X-Bugzilla-Version: 4.5.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-47256-4-uog1R7uegk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47256-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47256-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02171.txt.bz2
Content-length: 668

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-18
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Paolo Carlini from comment #3)
> Patches go to gcc-patches...

WAITING until patch is submitted
>From gcc-bugs-return-572613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:50:21 2017
Return-Path: <gcc-bugs-return-572613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42140 invoked by alias); 18 Aug 2017 13:50:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40420 invoked by uid 48); 18 Aug 2017 13:50:16 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81889] New: [7 Regression] bogus warnings with -Wmaybe-uninitialized -O3
Date: Fri, 18 Aug 2017 15: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.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-81889-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02172.txt.bz2
Content-length: 2851

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

            Bug ID: 81889
           Summary: [7 Regression] bogus warnings with
                    -Wmaybe-uninitialized -O3
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janus at gcc dot gnu.org
  Target Milestone: ---

Please consider this simple Fortran test case:


module m

   type t
      integer, dimension(:), pointer :: list
   end type

contains

   subroutine s(n, p, Y)
      integer, intent(in) :: n
      type(t) :: p
      real, dimension(:) :: Y

      real, dimension(1:16) :: xx

      if (n > 3) then
         xx(1:n) = 0.
         print *, xx(1:n)
      else
         xx(1:n) = Y(p%list(1:n))
         print *, sum(xx(1:n))
      end if

   end subroutine

end module



When compiled with "gfortran-7 -Wmaybe-uninitialized -O3 -c", it yields:

maybe_uninit.f90:21:0:

          print *, sum(xx(1:n))

Warning: ‘xx[3]’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[4]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[5]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[6]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[7]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[8]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[9]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[10]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[11]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[12]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[13]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[14]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
maybe_uninit.f90:21:0: Warning: ‘xx[15]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]


Obviously no value that is used is actually uninitialized. gfortran 6 and
earlier does not show these warnings. Also decreasing the optimization level
makes them disappear.
>From gcc-bugs-return-572614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:53:04 2017
Return-Path: <gcc-bugs-return-572614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103154 invoked by alias); 18 Aug 2017 13:53: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 96701 invoked by uid 48); 18 Aug 2017 13:52:59 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81889] [7 Regression] bogus warnings with -Wmaybe-uninitialized -O3
Date: Fri, 18 Aug 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: middle-end
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: diagnostic
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: see_also
Message-ID: <bug-81889-4-NEtznGRcJV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81889-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02173.txt.bz2
Content-length: 503

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

janus at gcc dot gnu.org changed:

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

--- Comment #1 from janus at gcc dot gnu.org ---
This may be related to other -Wmaybe-uninitialized regressions like PR 67679.
>From gcc-bugs-return-572615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 13:57:51 2017
Return-Path: <gcc-bugs-return-572615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107564 invoked by alias); 18 Aug 2017 13:57: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 98536 invoked by uid 48); 18 Aug 2017 13:57:45 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/49531] Doesn't resolve to conversion function template specialization in expressions
Date: Fri, 18 Aug 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: c++
X-Bugzilla-Version: 4.7.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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-49531-4-Kn0DcmQud0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49531-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49531-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02174.txt.bz2
Content-length: 1681

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, clang accepts it with both standards:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -std=c++03 49531.cc
49531.cc: In function ‘void f()’:
49531.cc:5:12: error: statement cannot resolve address of overloaded function
 void f() { &A::operator int; }
            ^~
$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -std=c++0x 49531.cc
49531.cc: In function ‘void f()’:
49531.cc:5:12: error: statement cannot resolve address of overloaded function
 void f() { &A::operator int; }
            ^~
$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic -std=c++03 49531.cc
49531.cc:5:12: warning: expression result unused [-Wunused-value]
void f() { &A::operator int; }
           ^~~~~~~~~~~~~~~~
1 warning generated.
$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic -std=c++0x 49531.cc
49531.cc:5:12: warning: expression result unused [-Wunused-value]
void f() { &A::operator int; }
           ^~~~~~~~~~~~~~~~
1 warning generated.
$

(although in my opinion the code still just looks weird...)
>From gcc-bugs-return-572616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 14:01:02 2017
Return-Path: <gcc-bugs-return-572616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50020 invoked by alias); 18 Aug 2017 14:01: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 46072 invoked by uid 48); 18 Aug 2017 14:00:54 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51234] ambiguity in mangling function attribute
Date: Fri, 18 Aug 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: c++
X-Bugzilla-Version: 4.6.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-51234-4-DQPPvvTIzJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51234-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51234-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02175.txt.bz2
Content-length: 636

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Compiles successfully for me with no warnings or errors with gcc8.

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 51234.cc
$
>From gcc-bugs-return-572618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 14:16:03 2017
Return-Path: <gcc-bugs-return-572618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18512 invoked by alias); 18 Aug 2017 14:15: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 119221 invoked by uid 48); 18 Aug 2017 14:15:06 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/81877] [7/8 Regression] Incorrect results with lto and -fipa-cp and -fipa-cp-clone
Date: Fri, 18 Aug 2017 16:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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:
Message-ID: <bug-81877-4-re5ZLMSJFe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81877-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02177.txt.bz2
Content-length: 594

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

--- Comment #13 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
> More rigorously defining the semantic of loop->safelen (the
> middle-end term) is necessary nevertheless.  I believe omp ordered
> doesn't have any middle-end representation?

Except on nvptx, 'omp ordered' in omp-simd context becomes a stmt sequence
bracketed with IFN_GOMP_SIMD_ORDERED_{START,END}, which completely disables
cross-iteration vectorization aiui. So your example doesn't get vectorized (not
even with SLP).

(on omp/ptx the approach is different)
>From gcc-bugs-return-572617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 14:03:16 2017
Return-Path: <gcc-bugs-return-572617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43514 invoked by alias); 18 Aug 2017 14:03: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 40964 invoked by uid 48); 18 Aug 2017 14:03:11 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51545] missing -Wparentheses diagnostic  with compound assignment used as condition
Date: Fri, 18 Aug 2017 16:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-51545-4-R1B0PMo2yb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51545-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51545-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02176.txt.bz2
Content-length: 626

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-572619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 14:20:59 2017
Return-Path: <gcc-bugs-return-572619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36180 invoked by alias); 18 Aug 2017 14:20:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27292 invoked by uid 48); 18 Aug 2017 14:20:52 -0000
From: "amodra at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug inline-asm/81890] New: asm memory constraints are difficult and not well documented
Date: Fri, 18 Aug 2017 16:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: inline-asm
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amodra at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81890-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02178.txt.bz2
Content-length: 4337

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

            Bug ID: 81890
           Summary: asm memory constraints are difficult and not well
                    documented
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amodra at gmail dot com
  Target Milestone: ---

gcc doesn't have a simple way to say that a pointer passed to an inline asm is
used to address an array.  "m" (*p) unfortunately only makes the asm depend on
the first element of an array.

The following came about from a discussion starting at
https://gcc.gnu.org/ml/gcc/2017-08/msg00116.html

Compiling with -DTRY=4 or -DTRY=6 give good results, and I believe are
reasonable to extend to types other than char without falling foul of aliasing
rules, but these tricks are a little contrived and not documented.  

-DTRY=5 is no doubt what should be used but this does not appear to be
documented.


/* -O3 */
#include <stdio.h>

#if TRY == 1
int get_string_length (const char *p)
{
  int count;

  /* Unfortunately the "m" here only makes the asm depend on p[0], so
     this is not safe.  The initialization of buff in main can be
     partly moved past the get_string_length call.  */
  __asm__ ("repne scasb"
           : "=c" (count), "+D" (p)
           : "m" (*p), "0" (-1), "a" (0)
           );
  return -2 - count;
}
#elif TRY == 2
/* No better than the above.  */
int get_string_length (const char p[])
{
  int count;

  __asm__ ("repne scasb"
           : "=c" (count), "+D" (p)
           : "m" (*p), "0" (-1), "a" (0)
           );
  return -2 - count;
}
#elif TRY == 3
int get_string_length (const char *p)
{
  int count;

  /* Warns unfortunately, but works, at least on some versions of gcc.  */
  __asm__ ("repne scasb"
           : "=c" (count), "+D" (p)
           : "m" (*(const void *)p), "0" (-1), "a" (0)
           );
  return -2 - count;
}
#elif TRY == 4
int get_string_length (const char *p)
{
  int count;

  /* A way of saying that p points to an array of indeterminate
     length, near enough.  */
  __asm__ ("repne scasb"
           : "=c" (count), "+D" (p)
           : "m" (*(const struct {char a; char x[];} *) p), "0" (-1), "a" (0)
           );
  return -2 - count;
}
#elif TRY == 5
int get_string_length (const char *p)
{
  int count;

  /* The right way to say that p points to an array of char of
     indeterminate length.  */
  __asm__ ("repne scasb"
           : "=c" (count), "+D" (p)
           : "m" (*(const char (*)[]) p), "0" (-1), "a" (0)
           );
  return -2 - count;
}
#elif TRY == 6
int get_string_length (const char *p)
{
  int count;

  /* Make gcc lose detailed information regarding the memory pointed
     to by p.  This, in conjuction with "m" (*p) as an input below
     will act similarly to a "memory" clobber, but is more precise in
     that it doesn't say all memory may be written.  */
  __asm__ ("#%0" : "+X" (p));

  __asm__ ("repne scasb"
           : "=c" (count), "+D" (p)
           : "m" (*p), "0" (-1), "a" (0)
           );
  return -2 - count;
}
#elif TRY == 7
int get_string_length (const char *p)
{
  int count;

  /* As recommended by the gcc info doc.  Suffers from needing to know
     the size of the array.  */
  __asm__ ("repne scasb"
           : "=c" (count), "+D" (p)
           : "m" (*(const struct {char x[48];} *) p), "0" (-1), "a" (0)
           );
  return -2 - count;
}
#else
int get_string_length (const char *p)
{
  int count;

  /* Bog standard, but unfortunately says to gcc that memory might be
     written by the asm.  As can be seen by inspecting the code
     produced, this means "expected" below must be read before calling
     get_string_length, using an extra register.  This may result in
     less optimized code in real-world examples.  */
  __asm__ ("repne scasb"
           : "=c" (count), "+D" (p)
           : "0" (-1), "a" (0)
           : "memory"
           );
  return -2 - count;
}
#endif

int expected = 4;

int
main ()
{
  char buff[48] = "hello world";
  buff[4] = 0;
  int b = expected;
  int a = get_string_length (buff);
  printf ("%s: %d %d\n", buff, a, b);
  return 0;
}
>From gcc-bugs-return-572620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 14:22:14 2017
Return-Path: <gcc-bugs-return-572620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121532 invoked by alias); 18 Aug 2017 14:22: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 117403 invoked by uid 48); 18 Aug 2017 14:22:10 -0000
From: "amodra at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug inline-asm/81890] asm memory constraints are difficult and not well documented
Date: Fri, 18 Aug 2017 16:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: inline-asm
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amodra 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: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81890-4-d9xdd4bT7U@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81890-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81890-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02179.txt.bz2
Content-length: 460

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
     Ever confirmed|0                           |1
>From gcc-bugs-return-572621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 14:31:13 2017
Return-Path: <gcc-bugs-return-572621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95196 invoked by alias); 18 Aug 2017 14:31:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68147 invoked by uid 48); 18 Aug 2017 14:30:48 -0000
From: "benni.buch at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71527] wrong type mismatch while template argument deduction/substitution
Date: Fri, 18 Aug 2017 16:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: benni.buch at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-71527-4-ebkDNL6G3L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71527-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71527-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02180.txt.bz2
Content-length: 669

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

Benjamin Buch <benni.buch at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |benni.buch at gmail dot com

--- Comment #2 from Benjamin Buch <benni.buch at gmail dot com> ---
Bug does still exist in:

$ g++ --version
g++ (GCC) 8.0.0 20170818 (experimental)
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.
>From gcc-bugs-return-572622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 14:31:18 2017
Return-Path: <gcc-bugs-return-572622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97923 invoked by alias); 18 Aug 2017 14: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 94584 invoked by uid 48); 18 Aug 2017 14:31:12 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81847] ICE with LTO enabled
Date: Fri, 18 Aug 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: lto
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: ice-on-valid-code, lto
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: attachments.created
Message-ID: <bug-81847-4-3NffunAVWe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81847-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81847-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02181.txt.bz2
Content-length: 2593

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

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 42004
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42004&action=edit
A bit smaller test-case

Smaller test-cast which needs to add --param lto-min-partition=1.

Problem is following, we create an isra clone and we'll put it into a comdat
group:

_Z11format_packIJiiN1a1b1fIcccEEEEvDpT_.isra.37/2088
(_Z11format_packIJiiN1a1b1fIcccEEEEvDpT_.isra.37) @0x2b2b65795b80
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
comdat_group:_ZN3PigC5IiJiN1a1b1fIcccEEEEET_DpT0_ artificial
  Same comdat group as: _ZN3PigC2IiJiN1a1b1fIcccEEEEET_DpT0_/371
  References: __gxx_personality_v0/1347 (addr)
  Referring: 
  Read from file: gccbug.o
  Availability: local
  First run: 0
  Function flags: local
  Called by: _ZN3PigC2IiJiN1a1b1fIcccEEEEET_DpT0_/371 (1.00 per call) 
  Calls: _ZN1a1b1fIcccE2crEl/1473 _ZN1a5tupleIJiiNS_1b1fIcccEEEED1Ev/607
_ZN1a1b1fIcccE2crEl/1473 (0.37 per call)
_ZN1a5tupleIJiiNS_1b1fIcccEEEED2Ev/2938 (inlined) (1.00 per call)
_Z12format_tupleIN1a5tupleIJiiNS0_1b1fIcccEEEEELi3EEvT_NS0_1lIiXT0_EEE.isra.10/1803
(inlined) (1.00 per call)
_ZN1a5tupleIJiiNS_1b1fIcccEEEEC2IJiiS3_ELj1EEEDpT_/798 (inlined) (1.00 per
call) _ZN1a1b1fIcccE2coC1EPcNS_9allocatorIcEE/1471 (1.00 per call) (can throw
external) _ZN1a1b1fIcccE2csEv/1470 (1.00 per call) (can throw external) 

Then we start partitioning and following symbols are put to a partition:

add_symbol_to_partition: __base_ctor /371
Step 1: added _Z11format_packIJiiN1a1b1fIcccEEEEvDpT_.isra.37/2088, size 931,
cost 3013/1012 best 3013/1012, step 1

the partition is finished and in a next partition:
Symbol node __base_ctor /371 now used in multiple partitions

and then we attempt to add again the isra clone and we fail. That triggers the
assert.
We have:

   113  static bool
   114  add_symbol_to_partition_1 (ltrans_partition part, symtab_node *node)
   115  {
...
   124    /* non-duplicated aliases or tunks of a duplicated symbol needs to be
output
   125       just once.
   126  
   127       Be lax about comdats; they may or may not be duplicated and we may
   128       end up in need to duplicate keyed comdat because it has unkeyed
alias.  */
   129    if (c == SYMBOL_PARTITION && !DECL_COMDAT (node->decl)
   130        && symbol_partitioned_p (node))
   131      return false;

Shouldn't be this place somehow adjusted in order to handle symbols in comdat
group that are actually
not DECL_COMDATs? Honza?
>From gcc-bugs-return-572623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 14:44:18 2017
Return-Path: <gcc-bugs-return-572623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59320 invoked by alias); 18 Aug 2017 14:44: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 53842 invoked by uid 48); 18 Aug 2017 14:44:04 -0000
From: "pdziepak at quarnos dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81891] New: heap-use-after-free if inserting element in std::unordered_map(InputIt, InputIt) throws
Date: Fri, 18 Aug 2017 16:16: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pdziepak at quarnos 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-81891-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02182.txt.bz2
Content-length: 12682

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

            Bug ID: 81891
           Summary: heap-use-after-free if inserting element in
                    std::unordered_map(InputIt, InputIt) throws
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pdziepak at quarnos dot org
  Target Milestone: ---

GCC 7.1.1 from Fedora 26 (gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC))

Reproducer:
--snip--
#include <array>
#include <unordered_map>

struct fails_on_copy {
    fails_on_copy() = default;
    fails_on_copy(const fails_on_copy&) {
        throw 0;
    };
};

int main()
{
    std::array<std::pair<int, fails_on_copy>, 128> range;
    try {
        std::unordered_map<int, fails_on_copy> umap(range.begin(),
range.end());
    } catch(...) { }
}
--snip--

When built with AddressSanitizer:

g++ -fsanitize=address -g test.cc -o test

The following error is reported:

$ ./test
=================================================================
==18550==ERROR: AddressSanitizer: heap-use-after-free on address 0x619000000080
at pc 0x7f3ae4dbca1a bp 0x7ffc9cfc6fc0 sp 0x7ffc9cfc6768
WRITE of size 1096 at 0x619000000080 thread T0
    #0 0x7f3ae4dbca19  (/lib64/libasan.so.4+0x5ea19)
    #1 0x401c62 in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::clear() /usr/include/c++/7/bits/hashtable.h:2039
    #2 0x4019b7 in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::~_Hashtable() /usr/include/c++/7/bits/hashtable.h:1364
    #3 0x40205b in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::_Hashtable<std::pair<int, fails_on_copy>*>(std::pair<int,
fails_on_copy>*, std::pair<int, fails_on_copy>*, unsigned long, std::hash<int>
const&, std::__detail::_Mod_range_hashing const&,
std::__detail::_Default_ranged_hash const&, std::equal_to<int> const&,
std::__detail::_Select1st const&, std::allocator<std::pair<int const,
fails_on_copy> > const&) /usr/include/c++/7/bits/hashtable.h:962
    #4 0x401b27 in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::_Hashtable<std::pair<int, fails_on_copy>*>(std::pair<int,
fails_on_copy>*, std::pair<int, fails_on_copy>*, unsigned long, std::hash<int>
const&, std::equal_to<int> const&, std::allocator<std::pair<int const,
fails_on_copy> > const&) /usr/include/c++/7/bits/hashtable.h:444
    #5 0x401960 in std::unordered_map<int, fails_on_copy, std::hash<int>,
std::equal_to<int>, std::allocator<std::pair<int const, fails_on_copy> >
>::unordered_map<std::pair<int, fails_on_copy>*>(std::pair<int,
fails_on_copy>*, std::pair<int, fails_on_copy>*, unsigned long, std::hash<int>
const&, std::equal_to<int> const&, std::allocator<std::pair<int const,
fails_on_copy> > const&) /usr/include/c++/7/bits/unordered_map.h:176
    #6 0x40138b in main /home/pdziepak/gcc/test.cc:15
    #7 0x7f3ae40f84d9 in __libc_start_main (/lib64/libc.so.6+0x204d9)
    #8 0x401119 in _start (/home/pdziepak/gcc/test+0x401119)

0x619000000080 is located 0 bytes inside of 1096-byte region
[0x619000000080,0x6190000004c8)
freed by thread T0 here:
    #0 0x7f3ae4e3efd0 in operator delete(void*) (/lib64/libasan.so.4+0xe0fd0)
    #1 0x403cfb in
__gnu_cxx::new_allocator<std::__detail::_Hash_node_base*>::deallocate(std::__detail::_Hash_node_base**,
unsigned long) /usr/include/c++/7/ext/new_allocator.h:125
    #2 0x403145 in
std::allocator_traits<std::allocator<std::__detail::_Hash_node_base*>
>::deallocate(std::allocator<std::__detail::_Hash_node_base*>&,
std::__detail::_Hash_node_base**, unsigned long)
/usr/include/c++/7/bits/alloc_traits.h:462
    #3 0x402963 in
std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<int
const, fails_on_copy>, false> >
>::_M_deallocate_buckets(std::__detail::_Hash_node_base**, unsigned long)
/usr/include/c++/7/bits/hashtable_policy.h:2121
    #4 0x40218d in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::_M_deallocate_buckets(std::__detail::_Hash_node_base**,
unsigned long) /usr/include/c++/7/bits/hashtable.h:363
    #5 0x401d37 in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::_M_deallocate_buckets() /usr/include/c++/7/bits/hashtable.h:368
    #6 0x402035 in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::_Hashtable<std::pair<int, fails_on_copy>*>(std::pair<int,
fails_on_copy>*, std::pair<int, fails_on_copy>*, unsigned long, std::hash<int>
const&, std::__detail::_Mod_range_hashing const&,
std::__detail::_Default_ranged_hash const&, std::equal_to<int> const&,
std::__detail::_Select1st const&, std::allocator<std::pair<int const,
fails_on_copy> > const&) /usr/include/c++/7/bits/hashtable.h:984
    #7 0x401b27 in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::_Hashtable<std::pair<int, fails_on_copy>*>(std::pair<int,
fails_on_copy>*, std::pair<int, fails_on_copy>*, unsigned long, std::hash<int>
const&, std::equal_to<int> const&, std::allocator<std::pair<int const,
fails_on_copy> > const&) /usr/include/c++/7/bits/hashtable.h:444
    #8 0x401960 in std::unordered_map<int, fails_on_copy, std::hash<int>,
std::equal_to<int>, std::allocator<std::pair<int const, fails_on_copy> >
>::unordered_map<std::pair<int, fails_on_copy>*>(std::pair<int,
fails_on_copy>*, std::pair<int, fails_on_copy>*, unsigned long, std::hash<int>
const&, std::equal_to<int> const&, std::allocator<std::pair<int const,
fails_on_copy> > const&) /usr/include/c++/7/bits/unordered_map.h:176
    #9 0x40138b in main /home/pdziepak/gcc/test.cc:15
    #10 0x7f3ae40f84d9 in __libc_start_main (/lib64/libc.so.6+0x204d9)

previously allocated by thread T0 here:
    #0 0x7f3ae4e3e158 in operator new(unsigned long)
(/lib64/libasan.so.4+0xe0158)
    #1 0x403e02 in
__gnu_cxx::new_allocator<std::__detail::_Hash_node_base*>::allocate(unsigned
long, void const*) /usr/include/c++/7/ext/new_allocator.h:111
    #2 0x403330 in
std::allocator_traits<std::allocator<std::__detail::_Hash_node_base*>
>::allocate(std::allocator<std::__detail::_Hash_node_base*>&, unsigned long)
/usr/include/c++/7/bits/alloc_traits.h:436
    #3 0x402b74 in
std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<int
const, fails_on_copy>, false> > >::_M_allocate_buckets(unsigned long)
/usr/include/c++/7/bits/hashtable_policy.h:2107
    #4 0x40258d in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::_M_allocate_buckets(unsigned long)
/usr/include/c++/7/bits/hashtable.h:354
    #5 0x401f54 in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::_Hashtable<std::pair<int, fails_on_copy>*>(std::pair<int,
fails_on_copy>*, std::pair<int, fails_on_copy>*, unsigned long, std::hash<int>
const&, std::__detail::_Mod_range_hashing const&,
std::__detail::_Default_ranged_hash const&, std::equal_to<int> const&,
std::__detail::_Select1st const&, std::allocator<std::pair<int const,
fails_on_copy> > const&) /usr/include/c++/7/bits/hashtable.h:972
    #6 0x401b27 in std::_Hashtable<int, std::pair<int const, fails_on_copy>,
std::allocator<std::pair<int const, fails_on_copy> >,
std::__detail::_Select1st, std::equal_to<int>, std::hash<int>,
std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash,
std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false,
false, true> >::_Hashtable<std::pair<int, fails_on_copy>*>(std::pair<int,
fails_on_copy>*, std::pair<int, fails_on_copy>*, unsigned long, std::hash<int>
const&, std::equal_to<int> const&, std::allocator<std::pair<int const,
fails_on_copy> > const&) /usr/include/c++/7/bits/hashtable.h:444
    #7 0x401960 in std::unordered_map<int, fails_on_copy, std::hash<int>,
std::equal_to<int>, std::allocator<std::pair<int const, fails_on_copy> >
>::unordered_map<std::pair<int, fails_on_copy>*>(std::pair<int,
fails_on_copy>*, std::pair<int, fails_on_copy>*, unsigned long, std::hash<int>
const&, std::equal_to<int> const&, std::allocator<std::pair<int const,
fails_on_copy> > const&) /usr/include/c++/7/bits/unordered_map.h:176
    #8 0x40138b in main /home/pdziepak/gcc/test.cc:15
    #9 0x7f3ae40f84d9 in __libc_start_main (/lib64/libc.so.6+0x204d9)

SUMMARY: AddressSanitizer: heap-use-after-free (/lib64/libasan.so.4+0x5ea19) 
Shadow bytes around the buggy address:
  0x0c327fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c327fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c327fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c327fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c327fff8000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c327fff8010:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c327fff8020: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c327fff8030: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c327fff8040: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c327fff8050: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c327fff8060: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==18550==ABORTING
>From gcc-bugs-return-572624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 14:55:08 2017
Return-Path: <gcc-bugs-return-572624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73450 invoked by alias); 18 Aug 2017 14:55:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 72302 invoked by uid 48); 18 Aug 2017 14:55:03 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/50169] "new struct X {{}};" incorrectly treated as an invalid struct-definition
Date: Fri, 18 Aug 2017 16:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-50169-4-F7X9tEmQBl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50169-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50169-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02183.txt.bz2
Content-length: 179

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

--- Comment #4 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
I have sent this to Core for consideration.
>From gcc-bugs-return-572625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 15:02:37 2017
Return-Path: <gcc-bugs-return-572625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43126 invoked by alias); 18 Aug 2017 15:02:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 36882 invoked by uid 48); 18 Aug 2017 15:02:32 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81327] cast to void* does not suppress -Wclass-memaccess
Date: Fri, 18 Aug 2017 16:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: ville.voutilainen at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81327-4-ab4sT1OLS8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81327-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81327-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02184.txt.bz2
Content-length: 328

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

--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Note that this currently blocks building Qt with gcc 8. We could work around it
by turning our void* casts to char* casts, but we have a preference for fixing
this problem in the compiler.
>From gcc-bugs-return-572626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 15:03:53 2017
Return-Path: <gcc-bugs-return-572626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100727 invoked by alias); 18 Aug 2017 15:03: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 98719 invoked by uid 48); 18 Aug 2017 15:03:48 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71003] __extension__ silences pedwarn for "\e" in C but not in C++
Date: Fri, 18 Aug 2017 16:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-71003-4-9LGxmq2Pum@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71003-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71003-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02185.txt.bz2
Content-length: 824

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

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

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

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  The manual says clearly that it should work so this is a G++ bug.

'-Wpedantic' does not cause warning messages for use of the alternate keywords
whose names begin and end with '__'.  Pedantic warnings are also disabled in
the expression that follows __extension__.
>From gcc-bugs-return-572627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 15:36:51 2017
Return-Path: <gcc-bugs-return-572627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59316 invoked by alias); 18 Aug 2017 15:36:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 51778 invoked by uid 48); 18 Aug 2017 15:36:45 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51789] GCC does not consider SFINAE in template parameter list of template parameter pack
Date: Fri, 18 Aug 2017 16:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-51789-4-klp976HeM8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02186.txt.bz2
Content-length: 1646

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-18
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
g++ errors on the code for me:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 51789.cc
51789.cc:4:28: error: ‘enable_if’ in namespace ‘std’ does not name a template
type
     template<typename std::enable_if<
                            ^~~~~~~~~
51789.cc:4:37: error: expected ‘>’ before ‘<’ token
     template<typename std::enable_if<
                                     ^
51789.cc:4:37: error: expected ‘class’ or ‘typename’ before ‘<’ token
51789.cc:4:37: error: expected identifier before ‘<’ token
51789.cc:4:37: error: expected ‘>’ before ‘<’ token
51789.cc:7:12: error: expected identifier before ‘...’ token
     > class...
            ^~~
51789.cc:7:12: error: expected unqualified-id before ‘...’ token
51789.cc:12:17: error: too many initializers for ‘A’
 A a = {1, 2.0, 3};
                 ^
$ 

Is it missing an include of a header or something?
>From gcc-bugs-return-572628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 15:40:54 2017
Return-Path: <gcc-bugs-return-572628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113560 invoked by alias); 18 Aug 2017 15:40: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 113462 invoked by uid 48); 18 Aug 2017 15:40:45 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52130] missing check for matching underlying type during instantiation of enum member of class template
Date: Fri, 18 Aug 2017 16:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-52130-4-ebOhExePmA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52130-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52130-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02187.txt.bz2
Content-length: 883

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-18
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
You can make g++ reject it with -pedantic-errors:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic-errors -std=c++11 52130.cc
52130.cc:2:27: error: ‘enum S<T>::E’ is an enumeration template [-Wpedantic]
 template<typename T> enum S<T>::E : T { e };
                           ^~~~
$

Is that sufficient?
>From gcc-bugs-return-572629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 15:47:45 2017
Return-Path: <gcc-bugs-return-572629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74737 invoked by alias); 18 Aug 2017 15: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 72523 invoked by uid 48); 18 Aug 2017 15:47:40 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51789] GCC does not consider SFINAE in template parameter list of template parameter pack
Date: Fri, 18 Aug 2017 16:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status
Message-ID: <bug-51789-4-mFznkPxfKa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02188.txt.bz2
Content-length: 1058

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|WAITING                     |NEW

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, it is not a complete testcase. It should have #include <type_traits>, or
here's a complete version:

namespace std {
template<typename T, typename U> struct is_same { static const bool value =
false; };
template<typename T> struct is_same<T, T> { static const bool value = true; };
template<bool, typename T = void> struct enable_if { };
template<typename T> struct enable_if<true, T> { using type = T; };
}

struct A {  
  template<
    typename ...T, 
    template<typename std::enable_if<
      std::is_same<T, int>::value, int
      >::type ...
    > class...
  >
  A(T...); 
}; 

A a = {1, 2.0, 3};
>From gcc-bugs-return-572630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 15:51:22 2017
Return-Path: <gcc-bugs-return-572630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93666 invoked by alias); 18 Aug 2017 15:51:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 93546 invoked by uid 48); 18 Aug 2017 15:51:13 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/80528] reimplement gnulib's "useless-if-before-free" script as a compiler warning
Date: Fri, 18 Aug 2017 16:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-80528-4-nhdlzIJ3Bw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80528-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80528-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02189.txt.bz2
Content-length: 1939

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

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

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

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I think a warning like this might be useful, although I probably wouldn't want
to enable under -Wall or -Wextra.   (GCC could also use branch probabilities to
decide whether or not to warn.)

That said, I would expect GCC to get rid of the tests with
-fdelete-null-pointer-checks.  As it is, it eliminates the call to free when
the pointer is known to be null but not the test itself (see below).  That
seems quite suboptimal to me since in the absence of any other information a
pointer being passed to free is far more likely to be non-null than not.  Clang
and ICC both optimize the function below into an unconditional jump to free. 
So while I think implementing the optimization is the better solution here, the
warning could also help improve the efficiency of the emitted code in its
absence.

$ cat b.c && gcc -O2 -S -Wall -Wextra -fdump-tree-optimized=/dev/stdout  b.c
void free (void*);

void g (void *p)
{
  if (p)        // test retained
    free (p);
  else
    free (p);   // eliminated
}


;; Function g (g, funcdef_no=0, decl_uid=1817, cgraph_uid=0, symbol_order=0)

Removing basic block 5
g (void * p)
{
  <bb 2> [100.00%] [count: INV]:
  if (p_2(D) != 0B)
    goto <bb 3>; [53.47%] [count: INV]
  else
    goto <bb 4>; [46.53%] [count: INV]

  <bb 3> [53.47%] [count: INV]:
  free (p_2(D)); [tail call]

  <bb 4> [100.00%] [count: INV]:
  return;

}
>From gcc-bugs-return-572631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 15:52:22 2017
Return-Path: <gcc-bugs-return-572631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98141 invoked by alias); 18 Aug 2017 15:52: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 95632 invoked by uid 48); 18 Aug 2017 15:52:16 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80689] 128 bit loads generated for structure copying with gcc 7.1.0 and leads to STLF stalls in avx2 targets.
Date: Fri, 18 Aug 2017 16:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: missed-optimization
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-80689-4-Ccp3xpmdkL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80689-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80689-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02190.txt.bz2
Content-length: 635

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

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

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

--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> ---
I have a prototype patch and will start testing and benchmarking it soon.
>From gcc-bugs-return-572632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 15:54:46 2017
Return-Path: <gcc-bugs-return-572632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99372 invoked by alias); 18 Aug 2017 15:54: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 75607 invoked by uid 48); 18 Aug 2017 15:54:32 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/48829] g++ no warning initializing a variable using itself
Date: Fri, 18 Aug 2017 16:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.3
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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-48829-4-mitXRXe2C6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-48829-4@http.gcc.gnu.org/bugzilla/>
References: <bug-48829-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02191.txt.bz2
Content-length: 1659

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to matferib from comment #0)
> This code issues a warning:
> 
> g++ -Wall
> int i = 5 + i;
> warning: ‘i’ may be used uninitialized in this function
> 
> This code does not:
> string s = string("str") + s;
> 
> Neither this:
> string s(string("str") + s);
> 
> Shouldnt the 2 last ones issue warnings too?

(In reply to Jonathan Wakely from comment #1)
> The string case calls a function (the overloaded operator+ or std::string)
> so is actually closer to:
> 
>   int f(int);
>   int i = f(i);
> 
> which doesn't warn either (although it should do, ideally)
> 
> This is similar to PR 48483, maybe even a dup.

So, I combined all the snippets into a single testcase, and g++ doesn't even
warn on the first one anymore:

$ cat 48829.cc
#include <string>

using namespace std;

int i = 5 + i;

string s = string("str") + s;

string ss(string("str") + ss);

int f(int);
int ii = f(ii);
$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wuninitialized -Winit-self
-Weffc++ -O2 48829.cc
$ 

Same with all other optimization levels I tried. So, confirmed.
>From gcc-bugs-return-572633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 15:56:30 2017
Return-Path: <gcc-bugs-return-572633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118966 invoked by alias); 18 Aug 2017 15:56:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118888 invoked by uid 48); 18 Aug 2017 15:56:26 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81673] Harmful SLP vectorization
Date: Fri, 18 Aug 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: tree-optimization
X-Bugzilla-Version: 7.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: dependson
Message-ID: <bug-81673-4-gjbfAhdM6q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81673-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81673-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02192.txt.bz2
Content-length: 725

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |80689

--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Benchmarking the patch revealed that without addressing PR 80689
first, it severely harms -Ofast performance of 538.imagick_r.  With PR
80689 addressed, it helps as intended.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80689
[Bug 80689] 128 bit loads generated for structure copying with gcc 7.1.0 and
leads to STLF stalls in avx2 targets.
>From gcc-bugs-return-572634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:01:12 2017
Return-Path: <gcc-bugs-return-572634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125621 invoked by alias); 18 Aug 2017 16:01:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125477 invoked by uid 48); 18 Aug 2017 16:01:07 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81892] New: suboptimal code for a if (p) free(p) else free(p)
Date: Fri, 18 Aug 2017 17:05: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: msebor at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81892-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02193.txt.bz2
Content-length: 1586

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

            Bug ID: 81892
           Summary: suboptimal code for a if (p) free(p) else free(p)
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

As mentioned in bug 80528, comment 2, GCC generates suboptimal code for the
following test case.  It would be more optimal to emit an unconditional jump to
free as Clang and ICC do.

Separately it might also be worth considering eliminating the 'if (p)' test
altogether, even in cases with no else clause.  I.e., using
-fdelete-null-pointer-checks to transform 'if (p) free (p)' to a call to an
unconditional free (p).  Since (in the absence of any information to the
contrary) a pointer passed to free() is far less likely to be null than not,
keeping the test only makes the code bigger and slower.

$ cat b.c && gcc -O2 -S -Wall -Wextra -fdump-tree-optimized=/dev/stdout  b.c
void free (void*);

void g (void *p)
{
  if (p)
    free (p);
  else
    free (p);
}


;; Function g (g, funcdef_no=0, decl_uid=1817, cgraph_uid=0, symbol_order=0)

Removing basic block 5
g (void * p)
{
  <bb 2> [100.00%] [count: INV]:
  if (p_2(D) != 0B)
    goto <bb 3>; [53.47%] [count: INV]
  else
    goto <bb 4>; [46.53%] [count: INV]

  <bb 3> [53.47%] [count: INV]:
  free (p_2(D)); [tail call]

  <bb 4> [100.00%] [count: INV]:
  return;

}
>From gcc-bugs-return-572635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:01:45 2017
Return-Path: <gcc-bugs-return-572635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127284 invoked by alias); 18 Aug 2017 16:01: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 127054 invoked by uid 48); 18 Aug 2017 16:01:41 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81892] suboptimal code for a if (p) free(p) else free(p)
Date: Fri, 18 Aug 2017 17:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords see_also
Message-ID: <bug-81892-4-OLJgPg8w1X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81892-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02194.txt.bz2
Content-length: 561

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

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

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

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
See bug 80528 for a related request.
>From gcc-bugs-return-572636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:02:13 2017
Return-Path: <gcc-bugs-return-572636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128563 invoked by alias); 18 Aug 2017 16:02:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128387 invoked by uid 48); 18 Aug 2017 16:02:08 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52130] missing check for matching underlying type during instantiation of enum member of class template
Date: Fri, 18 Aug 2017 17:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status
Message-ID: <bug-52130-4-B4zFaikFxR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52130-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52130-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02195.txt.bz2
Content-length: 785

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|WAITING                     |NEW

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I don't know what an "enumeration template" is, but I would say no. The code
should be rejected because S<T>::E is declared with an underlying type of int,
then redeclared with an underlying type that depends on the template parameter.

The pedwarn about enumeration types is something unrelated, and predates fixed
underlying types by more than a decade.
>From gcc-bugs-return-572637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:05:14 2017
Return-Path: <gcc-bugs-return-572637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6323 invoked by alias); 18 Aug 2017 16:05:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 6245 invoked by uid 48); 18 Aug 2017 16:05:08 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81892] suboptimal code for a if (p) free(p) else free(p)
Date: Fri, 18 Aug 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
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 see_also everconfirmed
Message-ID: <bug-81892-4-3G0aehyGeE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81892-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02196.txt.bz2
Content-length: 823

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Related to bug 80519 but I'll leave this one separate because this one mentions
the "else" case and 80519 doesn't
>From gcc-bugs-return-572638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:08:28 2017
Return-Path: <gcc-bugs-return-572638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10969 invoked by alias); 18 Aug 2017 16:08: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 10899 invoked by uid 48); 18 Aug 2017 16:08:24 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81891] [5/6/7/8 Regression] heap-use-after-free if inserting element in std::unordered_map(InputIt, InputIt) throws
Date: Fri, 18 Aug 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: libstdc++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81891-4-QAePG5Lxbx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02197.txt.bz2
Content-length: 402

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
     Ever confirmed|0                           |1
>From gcc-bugs-return-572639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:09:54 2017
Return-Path: <gcc-bugs-return-572639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12646 invoked by alias); 18 Aug 2017 16:09:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12600 invoked by uid 48); 18 Aug 2017 16:09:50 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52320] missing destructor call after thrown exception in initializer
Date: Fri, 18 Aug 2017 17:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.5.3
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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-52320-4-ibaivyl8Yy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52320-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52320-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02198.txt.bz2
Content-length: 867

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

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

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

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Daniel Krügler from comment #1)
> Confirmed for 4.7.0 20120218 (experimental).
> 

(In reply to Daniel Krügler from comment #3)
> (In reply to comment #2)
> 
> Agreed. It seems that the fix did not solve some array-related corner cases
> like this one.

Changing status to NEW then.
>From gcc-bugs-return-572640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:17:00 2017
Return-Path: <gcc-bugs-return-572640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1763 invoked by alias); 18 Aug 2017 16:16:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1664 invoked by uid 48); 18 Aug 2017 16:16:53 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52801] improve selective typedef unwrapping
Date: Fri, 18 Aug 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: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic, error-recovery
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-52801-4-pIzvOu7bVX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52801-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52801-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02199.txt.bz2
Content-length: 4052

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, error-recovery
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that the notes could ease up on the template spew; g++ output is now:

$ /usr/local/bin/g++ -fsyntax-only 52801.cc
52801.cc: In function ‘void foo()’:
52801.cc:9:8: error: no match for ‘operator=’ (operand types are
‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ and
‘std::vector<double>’)
  str = vec;
        ^~~
In file included from /usr/local/include/c++/8.0.0/string:52:0,
                 from 52801.cc:2:
/usr/local/include/c++/8.0.0/bits/basic_string.h:627:7: note: candidate:
‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char;
_Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
       operator=(const basic_string& __str)
       ^~~~~~~~
/usr/local/include/c++/8.0.0/bits/basic_string.h:627:7: note:   no known
conversion for argument 1 from ‘std::vector<double>’ to ‘const
std::__cxx11::basic_string<char>&’
/usr/local/include/c++/8.0.0/bits/basic_string.h:666:7: note: candidate:
‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*)
[with _CharT = char; _Traits = std::char_traits<char>; _Alloc =
std::allocator<char>]’
       operator=(const _CharT* __s)
       ^~~~~~~~
/usr/local/include/c++/8.0.0/bits/basic_string.h:666:7: note:   no known
conversion for argument 1 from ‘std::vector<double>’ to ‘const char*’
/usr/local/include/c++/8.0.0/bits/basic_string.h:677:7: note: candidate:
‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with
_CharT = char; _Traits = std::char_traits<char>; _Alloc =
std::allocator<char>]’
       operator=(_CharT __c)
       ^~~~~~~~
/usr/local/include/c++/8.0.0/bits/basic_string.h:677:7: note:   no known
conversion for argument 1 from ‘std::vector<double>’ to ‘char’
/usr/local/include/c++/8.0.0/bits/basic_string.h:695:7: note: candidate:
‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::operator=(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with
_CharT = char; _Traits = std::char_traits<char>; _Alloc =
std::allocator<char>]’
       operator=(basic_string&& __str)
       ^~~~~~~~
/usr/local/include/c++/8.0.0/bits/basic_string.h:695:7: note:   no known
conversion for argument 1 from ‘std::vector<double>’ to
‘std::__cxx11::basic_string<char>&&’
/usr/local/include/c++/8.0.0/bits/basic_string.h:749:7: note: candidate:
‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::operator=(std::initializer_list<_Tp>) [with _CharT = char; _Traits =
std::char_traits<char>; _Alloc = std::allocator<char>]’
       operator=(initializer_list<_CharT> __l)
       ^~~~~~~~
/usr/local/include/c++/8.0.0/bits/basic_string.h:749:7: note:   no known
conversion for argument 1 from ‘std::vector<double>’ to
‘std::initializer_list<char>’
$
>From gcc-bugs-return-572641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:20:23 2017
Return-Path: <gcc-bugs-return-572641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8875 invoked by alias); 18 Aug 2017 16:20: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 8793 invoked by uid 48); 18 Aug 2017 16:20:18 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80763] [7/8 Regression] -O3 causes error: inline clone in same comdat group list
Date: Fri, 18 Aug 2017 17:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80763-4-yxQ8JsEpTa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80763-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80763-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02200.txt.bz2
Content-length: 265

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

--- Comment #8 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to David Binderman from comment #7)
> Still seems to be broken, over a month later.

Still broken, a couple of months even later ...
>From gcc-bugs-return-572642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:23:19 2017
Return-Path: <gcc-bugs-return-572642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27136 invoked by alias); 18 Aug 2017 16:23: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 26183 invoked by uid 48); 18 Aug 2017 16:23:14 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81893] New: [8 regression] compilation error in libgo starting with r251127
Date: Fri, 18 Aug 2017 17:50: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: 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-81893-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02201.txt.bz2
Content-length: 2894

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

            Bug ID: 81893
           Summary: [8 regression] compilation error in libgo starting
                    with r251127
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: seurer at gcc dot gnu.org
                CC: cmang at google dot com
  Target Milestone: ---

I only saw this on powerpc64 big endian.

/home/seurer/gcc/gcc-trunk/libgo/runtime/go-signal.c: In function 'dumpregs':
/home/seurer/gcc/gcc-trunk/libgo/runtime/go-signal.c:349:19: error:
initialization of 'mcontext_t * {aka struct <anonymous> *}' from incompatible
pointer type 'union uc_regs_ptr *' [-Werror=incompatible-pointer-types]
   mcontext_t *m = &((ucontext_t*)(context))->uc_mcontext;
                   ^
/home/seurer/gcc/gcc-trunk/libgo/runtime/go-signal.c:353:37: error: 'mcontext_t
{aka struct <anonymous>}' has no member named 'regs'; did you mean 'gregs'?
    runtime_printf("r%d %X\n", i, m->regs->gpr[i]);
                                     ^~~~
                                     gregs
/home/seurer/gcc/gcc-trunk/libgo/runtime/go-signal.c:354:33: error: 'mcontext_t
{aka struct <anonymous>}' has no member named 'regs'; did you mean 'gregs'?
   runtime_printf("pc  %X\n", m->regs->nip);
                                 ^~~~
                                 gregs
/home/seurer/gcc/gcc-trunk/libgo/runtime/go-signal.c:355:33: error: 'mcontext_t
{aka struct <anonymous>}' has no member named 'regs'; did you mean 'gregs'?
   runtime_printf("msr %X\n", m->regs->msr);
                                 ^~~~
                                 gregs
/home/seurer/gcc/gcc-trunk/libgo/runtime/go-signal.c:356:33: error: 'mcontext_t
{aka struct <anonymous>}' has no member named 'regs'; did you mean 'gregs'?
   runtime_printf("cr  %X\n", m->regs->ccr);
                                 ^~~~
                                 gregs
/home/seurer/gcc/gcc-trunk/libgo/runtime/go-signal.c:357:33: error: 'mcontext_t
{aka struct <anonymous>}' has no member named 'regs'; did you mean 'gregs'?
   runtime_printf("lr  %X\n", m->regs->link);
                                 ^~~~
                                 gregs
/home/seurer/gcc/gcc-trunk/libgo/runtime/go-signal.c:358:33: error: 'mcontext_t
{aka struct <anonymous>}' has no member named 'regs'; did you mean 'gregs'?
   runtime_printf("ctr %X\n", m->regs->ctr);
                                 ^~~~
                                 gregs
/home/seurer/gcc/gcc-trunk/libgo/runtime/go-signal.c:359:33: error: 'mcontext_t
{aka struct <anonymous>}' has no member named 'regs'; did you mean 'gregs'?
   runtime_printf("xer %X\n", m->regs->xer);
                                 ^~~~
                                 gregs
>From gcc-bugs-return-572643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:29:36 2017
Return-Path: <gcc-bugs-return-572643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23321 invoked by alias); 18 Aug 2017 16:29: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 7814 invoked by uid 48); 18 Aug 2017 16:29:30 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/81419] GCC wrongly suggests function-like macro as fixit hint for undefined object-like macro
Date: Fri, 18 Aug 2017 18:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc see_also everconfirmed
Message-ID: <bug-81419-4-6hUnjYQMTQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81419-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02202.txt.bz2
Content-length: 1236

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

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

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

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  There are few other similar bugs for these fix-it hints (e.g.,
pr80567 or pr80684).  I haven't looked at the implementation but from the
symptoms it feels like the problem is that the search doesn't fully consider
the context in which the undeclared is used.   I.e., it doesn't distinguish
between a function call, other kinds of expressions, a type, or even a keyword,
etc.
>From gcc-bugs-return-572644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:41:08 2017
Return-Path: <gcc-bugs-return-572644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89509 invoked by alias); 18 Aug 2017 16:41: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 89344 invoked by uid 48); 18 Aug 2017 16:40:59 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81891] [5/6/7/8 Regression] heap-use-after-free if inserting element in std::unordered_map(InputIt, InputIt) throws
Date: Fri, 18 Aug 2017 18:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.1
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: 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-81891-4-GWskblkkVl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02203.txt.bz2
Content-length: 792

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

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 #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The problem is that the _Hashtable constructor delegates to another
constructor, so if an exception happens in the delegating constructor the
object has been constructed and its destructor will run. The delegating
constructor calls _M_deallocate_buckets() but doesn't zero the _M_buckets
pointer, so the destructor tries to deallocate them again.
>From gcc-bugs-return-572645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:43:27 2017
Return-Path: <gcc-bugs-return-572645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93382 invoked by alias); 18 Aug 2017 16:43: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 93314 invoked by uid 48); 18 Aug 2017 16:43:21 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81891] [5/6/7/8 Regression] heap-use-after-free if inserting element in std::unordered_map(InputIt, InputIt) throws
Date: Fri, 18 Aug 2017 18:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.1
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: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81891-4-undW50i0Pf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02204.txt.bz2
Content-length: 531

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

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

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The regression started with r214986 which introduced the constructor
delegation, but didn't change the logic to account for the destructor running.
>From gcc-bugs-return-572646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:46:10 2017
Return-Path: <gcc-bugs-return-572646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96867 invoked by alias); 18 Aug 2017 16:46:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 96414 invoked by uid 48); 18 Aug 2017 16:45:55 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81891] [5/6/7/8 Regression] heap-use-after-free if inserting element in std::unordered_map(InputIt, InputIt) throws
Date: Fri, 18 Aug 2017 18:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.1
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: 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-81891-4-VB7AKGv8er@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02205.txt.bz2
Content-length: 744

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think this might be all we need to do to fix it:

--- a/libstdc++-v3/include/bits/hashtable.h
+++ b/libstdc++-v3/include/bits/hashtable.h
@@ -973,17 +973,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
            _M_bucket_count = __bkt_count;
          }

-       __try
-         {
-           for (; __f != __l; ++__f)
-             this->insert(*__f);
-         }
-       __catch(...)
-         {
-           clear();
-           _M_deallocate_buckets();
-           __throw_exception_again;
-         }
+       for (; __f != __l; ++__f)
+         this->insert(*__f);
       }

   template<typename _Key, typename _Value,
>From gcc-bugs-return-572647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:52:45 2017
Return-Path: <gcc-bugs-return-572647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9011 invoked by alias); 18 Aug 2017 16:52: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 6582 invoked by uid 48); 18 Aug 2017 16:52:40 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81893] [8 regression] compilation error in libgo starting with r251127
Date: Fri, 18 Aug 2017 18:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81893-4-idLkL6VYMi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02206.txt.bz2
Content-length: 155

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

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
Did you test powerpc64 little endian?
>From gcc-bugs-return-572648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:59:00 2017
Return-Path: <gcc-bugs-return-572648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5740 invoked by alias); 18 Aug 2017 16:59:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 129910 invoked by uid 48); 18 Aug 2017 16:58:55 -0000
From: "lh_mouse at 126 dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/81894] New: Typo in x86 built-in function list
Date: Fri, 18 Aug 2017 18:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: web
X-Bugzilla-Version: 7.2.0
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02207.txt.bz2
Content-length: 952

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

            Bug ID: 81894
           Summary: Typo in x86 built-in function list
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: web
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lh_mouse at 126 dot com
  Target Milestone: ---

https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/x86-Built-in-Functions.html#x86-Built-in-Functions
  says:

```
The following built-in functions are available when -mlzcnt is used. All of
them generate the machine instruction that is part of the name.

unsigned short __builtin_ia32_lzcnt_16(unsigned short);
unsigned int __builtin_ia32_lzcnt_u32(unsigned int);
unsigned long long __builtin_ia32_lzcnt_u64 (unsigned long long);
```

The first function `__builtin_ia32_lzcnt_16()` doesn't exist. It is
`__builtin_ia32_lzcnt_u16()` that exists.
>From gcc-bugs-return-572649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 16:59:27 2017
Return-Path: <gcc-bugs-return-572649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33585 invoked by alias); 18 Aug 2017 16:59: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 28043 invoked by uid 48); 18 Aug 2017 16:59:22 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80567] bogus fixit hint for undeclared memset: else
Date: Fri, 18 Aug 2017 18:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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-80567-4-w3Scf3UePw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80567-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80567-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02208.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
                 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-572650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:05:08 2017
Return-Path: <gcc-bugs-return-572650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73593 invoked by alias); 18 Aug 2017 17:05: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 73529 invoked by uid 48); 18 Aug 2017 17:05:03 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/80529] Split "C++ style comments are not allowed in ISO C90" pedwarn into its own warning flag
Date: Fri, 18 Aug 2017 18:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-80529-4-pldInN6xVD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80529-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80529-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02209.txt.bz2
Content-length: 1271

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

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

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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
I also don't think that adding a pure style warning for // comments is in line
with GCC philosophy.  Quoting from the GCC manual:

  Warnings are diagnostic messages that report constructions that are not
  inherently erroneous but that are risky or suggest there may have been
  an error. 

Unlike with the traditional C-style comments, I don't know of any problems due
to C++-style comments, so I don't think adding a warning option for them would
be appropriate.

Regarding the exceptions cited in comment #2, I believe those exist not so much
to help enforce particular coding styles but rather to avoid relying on C++
features that, at the time they were made available in G++, either weren't
universally supported or weren't implemented efficiently enough to be suitable
for all projects (e.g., embedded code would avoid some of these C++ features to
minimize code bloat).
>From gcc-bugs-return-572651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:05:34 2017
Return-Path: <gcc-bugs-return-572651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75432 invoked by alias); 18 Aug 2017 17:05: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 74346 invoked by uid 48); 18 Aug 2017 17:05:20 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80684] poor error message and fix-it hint for a function with an argument of undeclared type
Date: Fri, 18 Aug 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: c++
X-Bugzilla-Version: 7.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-80684-4-iucVCoxsUY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80684-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80684-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02210.txt.bz2
Content-length: 1874

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
For me the fix-it is just:

$ /usr/local/bin/g++ -S -Wall -Wextra -pedantic 80684.cc
80684.cc:1:15: error: variable or field ‘f’ declared void
 void f (string);
               ^
80684.cc:1:9: error: ‘string’ was not declared in this scope
 void f (string);
         ^~~~~~
80684.cc:1:9: note: suggested alternative: ‘__strong’
 void f (string);
         ^~~~~~
         __strong
$

When I include the header, the message is:

$ /usr/local/bin/g++ -S -Wall -Wextra -pedantic 80684.cc
80684.cc:3:15: error: variable or field ‘f’ declared void
 void f (string);
               ^
80684.cc:3:9: error: ‘string’ was not declared in this scope
 void f (string);
         ^~~~~~
80684.cc:3:9: note: suggested alternative:
In file included from /usr/local/include/c++/8.0.0/string:39:0,
                 from 80684.cc:1:
/usr/local/include/c++/8.0.0/bits/stringfwd.h:74:33: note:  
‘std::__cxx11::string’
   typedef basic_string<char>    string;
                                 ^~~~~~
$

It seems like in this second case where <string> is already included, the ideal
fix-it would be to suggest inserting the 'std::' prefix before 'string', or
adding a "using namespace std;" directive earlier in the file. Thus,
confirming.
>From gcc-bugs-return-572652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:07:11 2017
Return-Path: <gcc-bugs-return-572652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78171 invoked by alias); 18 Aug 2017 17:07: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 77897 invoked by uid 48); 18 Aug 2017 17:07:07 -0000
From: "richard-gccbugzilla at metafoo dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81895] New: gcc rejects out-of-line definition of enum member of class template under -pedantic-errors
Date: Fri, 18 Aug 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: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: richard-gccbugzilla at metafoo dot co.uk
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81895-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02211.txt.bz2
Content-length: 791

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

            Bug ID: 81895
           Summary: gcc rejects out-of-line definition of enum member of
                    class template under -pedantic-errors
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk
  Target Milestone: ---

g++ -std=c++11 -pedantic-errors has a rejects-valid on this:

template<typename T> struct S { enum class E : int; };
template<typename T> enum class S<T>::E : int { e };
S<char>::E x = S<char>::E::e;

The bogus error is:

error: 'enum S<T>::E' is an enumeration template [-Wpedantic]
>From gcc-bugs-return-572653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:08:57 2017
Return-Path: <gcc-bugs-return-572653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85800 invoked by alias); 18 Aug 2017 17:08:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85730 invoked by uid 48); 18 Aug 2017 17:08:51 -0000
From: "richard-gccbugzilla at metafoo dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52130] missing check for matching underlying type during instantiation of enum member of class template
Date: Fri, 18 Aug 2017 19:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: richard-gccbugzilla at metafoo dot co.uk
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-52130-4-GlgsoBQHGa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52130-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52130-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02212.txt.bz2
Content-length: 314

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

--- Comment #3 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> ---
The diagnostic in #1 is not only wrong for this case, it's also a rejects-valid
in the case where the underlying types match. I've filed
https://gcc.gnu.org/PR81895 for that.
>From gcc-bugs-return-572654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:11:01 2017
Return-Path: <gcc-bugs-return-572654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112162 invoked by alias); 18 Aug 2017 17:11:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112089 invoked by uid 48); 18 Aug 2017 17:10:56 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/80529] Split "C++ style comments are not allowed in ISO C90" pedwarn into its own warning flag
Date: Fri, 18 Aug 2017 19: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: diagnostic
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-80529-4-XilDfhXE1o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80529-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80529-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02213.txt.bz2
Content-length: 1778

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

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

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

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #5)
> I also don't think that adding a pure style warning for // comments is in
> line with GCC philosophy.  Quoting from the GCC manual:
> 
>   Warnings are diagnostic messages that report constructions that are not
>   inherently erroneous but that are risky or suggest there may have been
>   an error. 
> 
> Unlike with the traditional C-style comments, I don't know of any problems
> due to C++-style comments, so I don't think adding a warning option for them
> would be appropriate.
> 
> Regarding the exceptions cited in comment #2, I believe those exist not so
> much to help enforce particular coding styles but rather to avoid relying on
> C++ features that, at the time they were made available in G++, either
> weren't universally supported or weren't implemented efficiently enough to
> be suitable for all projects (e.g., embedded code would avoid some of these
> C++ features to minimize code bloat).

Actually I guess a better comparison would be -Wdeclaration-after-statement,
which you can get as part of -std=c89 -pedantic, but which you can also get
separately for other standards. Remember, gcc already warns for // comments
with
-std=gnu89 -pedantic, so splitting it into a new option wouldn't be so much
adding a warning option as it would be enabling an existing warning option for
other standards.
>From gcc-bugs-return-572655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:17:54 2017
Return-Path: <gcc-bugs-return-572655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61313 invoked by alias); 18 Aug 2017 17: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 61221 invoked by uid 48); 18 Aug 2017 17:17:48 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/81794] "would be stringified in traditional C" warning should be controlled by -Wtraditional
Date: Fri, 18 Aug 2017 19:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, easyhack, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81794-4-k4tRIB6tUd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81794-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02214.txt.bz2
Content-length: 612

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

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

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

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  Please keep pinging the patch weekly until it's reviewed.
>From gcc-bugs-return-572656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:25:01 2017
Return-Path: <gcc-bugs-return-572656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88813 invoked by alias); 18 Aug 2017 17: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 88157 invoked by uid 48); 18 Aug 2017 17:24:00 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/44283] bad error recovery for explicit template instantiation in wrong namespace
Date: Fri, 18 Aug 2017 19:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: diagnostic, error-recovery
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-44283-4-Q5a1Zbqzle@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44283-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44283-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02215.txt.bz2
Content-length: 4417

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #0)
> namespace NS
> {
>     typedef int X;
> 
>     template<typename T> void f(X f, T t) { }
> }
> 
> template void f(X, int);     // (1)
> 
> template void f(int, char);  // (2)
> 
> 
> The code is invalid, the explicit instantiations should be inside NS or
> should be qualified e.g.
> template void NS::func(X, int);
> 
> But the diagnostic for instantiation (1) is unhelpful:
> 
> bug.cc:8:17: error: variable or field 'f' declared void
> bug.cc:8:16: error: expected ';' before '(' token
> 
> This is closely related to Bug 16663 but the diagnostic for (2) implies it
> might be possible to improve things without fixing bug 16663, as this is
> much better:
> 
> bug.cc:10:26: error: 'f' is not a template function
> 
> Is it possible to give the same "is not a template function" diagnostic for
> (1)?

The message is now:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 44283.cc
44283.cc:8:17: error: variable or field ‘f’ declared void
 template void f(X, int);     // (1)
                 ^
44283.cc:8:16: error: expected ‘;’ before ‘(’ token
 template void f(X, int);     // (1)
                ^
44283.cc:10:26: error: ‘f’ is not a template function
 template void f(int, char);  // (2)
                          ^
$

so it has the "is not a template function" diagnostic now, but it could still
probably be improved.

> 
> Comeau does significantly better, reporting:
>    identifier "X" is undefined
> and 
>    "f" is not a class or function template name in the current scope
> 
> 
> 
> If the invalid instantiation is for a class template the diagnostic is fine:
> 
> namespace NS
> {
>     template<typename T> struct S;
> }
> 
> template struct S<X>;
> 
> bug2.cc:6:17: error: 'S' is not a template
> bug2.cc:6:19: error: 'X' was not declared in this scope
> bug2.cc:6:17: error: explicit instantiation of non-template type 'S'
> 
> The only improvement I would make would be to add something like "in this
> scope" to the first error.
> 

With carets, this is now:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 44283_2.cc
44283_2.cc:6:17: error: ‘S’ is not a class template
 template struct S<X>;
                 ^
44283_2.cc:6:19: error: ‘X’ was not declared in this scope
 template struct S<X>;
                   ^
44283_2.cc:6:17: error: explicit instantiation of non-template type ‘S’
 template struct S<X>;
                 ^
$

(note the addition of the word 'class')

> 
> Here's another bad diagnostic for instantiating a template function, which
> doesn't have any undeclared type:
> 
> namespace NS
> {
>     template<int N> void g() { }
> }
> 
> template void g<0>();
> 
> bug3.cc:6:15: error: variable or field 'g' declared void
> bug3.cc:6:16: error: expected ';' before '<' token
> 
> Surely it's possible to say "g is not a template function" when the compiler
> sees "template ... g<...>" ?
> 

This is still bad even with carets:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 44283_3.cc
44283_3.cc:6:15: error: variable or field ‘g’ declared void
 template void g<0>();
               ^
44283_3.cc:6:16: error: expected ‘;’ before ‘<’ token
 template void g<0>();
                ^
$

> Comeau is much better again:
> 
> "ComeauTest.c", line 6: error: g is not a template,
> 	Should it be XX::g?, where XX is some namespace?
> 	Did you #include the right header?
>   template void g<0>();
>                 ^
> 
> "ComeauTest.c", line 6: error: invalid explicit instantiation declaration
>   template void g<0>();
>            ^

So, confirmed that the errors could be improved.
>From gcc-bugs-return-572657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:27:12 2017
Return-Path: <gcc-bugs-return-572657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91173 invoked by alias); 18 Aug 2017 17:27:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91065 invoked by uid 48); 18 Aug 2017 17:27:06 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/50169] "new struct X {{}};" incorrectly treated as an invalid struct-definition
Date: Fri, 18 Aug 2017 19:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen 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-50169-4-n6JuWGttVM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50169-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50169-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02216.txt.bz2
Content-length: 732

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

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
                 CC|                            |jason at redhat dot com
     Ever confirmed|0                           |1

--- Comment #5 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
This is DR 2141:
http://open-std.org/JTC1/SC22/WG21/docs/cwg_defects.html#2141

The original code is supposed to be valid, so confirming this as an actual bug.
>From gcc-bugs-return-572658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:47:37 2017
Return-Path: <gcc-bugs-return-572658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126991 invoked by alias); 18 Aug 2017 17:47:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126925 invoked by uid 55); 18 Aug 2017 17:47:31 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81891] [5/6/7/8 Regression] heap-use-after-free if inserting element in std::unordered_map(InputIt, InputIt) throws
Date: Fri, 18 Aug 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: libstdc++
X-Bugzilla-Version: 7.1.1
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: 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-81891-4-JvxAlvZc0K@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02217.txt.bz2
Content-length: 857

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Aug 18 17:46:57 2017
New Revision: 251185

URL: https://gcc.gnu.org/viewcvs?rev=251185&root=gcc&view=rev
Log:
PR libstdc++/81891 fix double-free in hashtable constructor

        PR libstdc++/81891
        * include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
        size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
        const _ExtractKey&, const allocator_type&)): Let destructor do clean
        up if an exception is thrown.
        * testsuite/23_containers/unordered_map/cons/81891.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/23_containers/unordered_map/cons/81891.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/hashtable.h
>From gcc-bugs-return-572659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 17:50:24 2017
Return-Path: <gcc-bugs-return-572659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5074 invoked by alias); 18 Aug 2017 17:50: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 530 invoked by uid 48); 18 Aug 2017 17:50:16 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/81794] "would be stringified in traditional C" warning should be controlled by -Wtraditional
Date: Fri, 18 Aug 2017 20:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, easyhack, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81794-4-yjMgpAZDBU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81794-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02218.txt.bz2
Content-length: 240

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

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Please can you turn it into a patch that contains both the fix *and* the new
testcase?  (e.g. gcc.dg/pragma-diag-8.c)
>From gcc-bugs-return-572660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 18:05:02 2017
Return-Path: <gcc-bugs-return-572660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65289 invoked by alias); 18 Aug 2017 18:05: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 65232 invoked by uid 48); 18 Aug 2017 18:04:58 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81891] [5/6/7 Regression] heap-use-after-free if inserting element in std::unordered_map(InputIt, InputIt) throws
Date: Fri, 18 Aug 2017 20:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.1
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: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work target_milestone short_desc cf_known_to_fail
Message-ID: <bug-81891-4-HyZ7wTJEux@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02219.txt.bz2
Content-length: 836

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |8.0
   Target Milestone|---                         |5.5
            Summary|[5/6/7/8 Regression]        |[5/6/7 Regression]
                   |heap-use-after-free if      |heap-use-after-free if
                   |inserting element in        |inserting element in
                   |std::unordered_map(InputIt, |std::unordered_map(InputIt,
                   |InputIt) throws             |InputIt) throws
      Known to fail|8.0                         |

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed on trunk so far.
>From gcc-bugs-return-572661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 18:07:55 2017
Return-Path: <gcc-bugs-return-572661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68652 invoked by alias); 18 Aug 2017 18:07: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 68567 invoked by uid 48); 18 Aug 2017 18:07:50 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81827] Large compile time with derived-type rrays
Date: Fri, 18 Aug 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: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: compile-time-hog, memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
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-81827-4-bTSG7GKaMX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81827-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81827-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02220.txt.bz2
Content-length: 2683

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|rguenth at gcc dot gnu.org         |pault at gcc dot gnu.org

--- Comment #8 from Paul Thomas <pault at gcc dot gnu.org> ---
I have taken a brief look at this but have to postpone completion of a fix for
a couple of weeks because I will be on vacation.

Index: ../trunk/gcc/fortran/trans-expr.c
===================================================================
*** ../trunk/gcc/fortran/trans-expr.c   (revision 250712)
--- ../trunk/gcc/fortran/trans-expr.c   (working copy)
*************** gfc_trans_assignment_1 (gfc_expr * expr1
*** 10075,10083 ****
      }
    else
      tmp = gfc_trans_scalar_assign (&lse, &rse, expr1->ts,
!                                  gfc_expr_is_variable (expr2)
                                   || scalar_to_array
!                                  || expr2->expr_type == EXPR_ARRAY,
                                   !(l_is_temp || init_flag) && dealloc,
                                   expr1->symtree->n.sym->attr.codimension);
    /* Add the pre blocks to the body.  */
--- 10075,10086 ----
      }
    else
      tmp = gfc_trans_scalar_assign (&lse, &rse, expr1->ts,
!                                  !(init_flag
!                                    && flag_coarray != GFC_FCOARRAY_LIB
!                                    && expr2->expr_type == EXPR_STRUCTURE)
!                                  && (gfc_expr_is_variable (expr2)
                                   || scalar_to_array
!                                  || expr2->expr_type == EXPR_ARRAY),
                                   !(l_is_temp || init_flag) && dealloc,
                                   expr1->symtree->n.sym->attr.codimension);
    /* Add the pre blocks to the body.  */

apart from a few regressions associated with tree dump counts of malloc.

The blanket exclusion of GFC_COARRAY_LIB is clearly not right.... or if it is,
I have not yet understood why.

I think that the problem lies in the default initializer for these derived
types. The suppression of the deep copy that the above patch provides can only
be necessary because the field in the initializer for the allocatable
components is not a null expression, as it should be. Otherwise, the deep copy
would stop dead in its tracks at the first level.

I have taken the bug.

Paul
>From gcc-bugs-return-572662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 18:13:24 2017
Return-Path: <gcc-bugs-return-572662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44915 invoked by alias); 18 Aug 2017 18:13:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44855 invoked by uid 55); 18 Aug 2017 18:13:19 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81514] g++.dg/lookup/missing-std-include-2.C FAILs on Solaris
Date: Fri, 18 Aug 2017 20:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81514-4-67vppFQfEb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81514-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81514-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02221.txt.bz2
Content-length: 1182

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

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Fri Aug 18 18:12:47 2017
New Revision: 251186

URL: https://gcc.gnu.org/viewcvs?rev=251186&root=gcc&view=rev
Log:
C++: fix ordering of missing std #include suggestion (PR c++/81514)

gcc/cp/ChangeLog:
        PR c++/81514
        * name-lookup.c (maybe_suggest_missing_header): Convert return
        type from void to bool; return true iff a suggestion was offered.
        (suggest_alternative_in_explicit_scope): Move call to
        maybe_suggest_missing_header to before use of best_match, and
        return true if the former offers a suggestion.

gcc/testsuite/ChangeLog:
        PR c++/81514
        * g++.dg/lookup/empty.h: New file.
        * g++.dg/lookup/missing-std-include-2.C: Replace include of
        stdio.h with empty.h and a declaration of a "std::sprintf" not based
        on a built-in.


Added:
    trunk/gcc/testsuite/g++.dg/lookup/empty.h
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/lookup/missing-std-include-2.C
>From gcc-bugs-return-572663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 18:13:59 2017
Return-Path: <gcc-bugs-return-572663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47824 invoked by alias); 18 Aug 2017 18:13:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 45823 invoked by uid 48); 18 Aug 2017 18:13:54 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81514] g++.dg/lookup/missing-std-include-2.C FAILs on Solaris
Date: Fri, 18 Aug 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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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_status resolution
Message-ID: <bug-81514-4-LZxpfOsujI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81514-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81514-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02222.txt.bz2
Content-length: 450

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

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

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

--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Should be fixed by r251186.
>From gcc-bugs-return-572664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 18:16:15 2017
Return-Path: <gcc-bugs-return-572664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122955 invoked by alias); 18 Aug 2017 18:16: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 121707 invoked by uid 48); 18 Aug 2017 18:16:11 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79072] ICE with class(*) pointer function result and character value
Date: Fri, 18 Aug 2017 21:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-79072-4-xqmv6XE4yj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79072-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79072-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02223.txt.bz2
Content-length: 770

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

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

--- Comment #9 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #8)
> Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01290.html which was lost:
> 
> --- Comment #8 from neil.n.carlson at gmail dot com ---
> Ping.  Is there any interest in fixing this regression?

Yes, anything that is a failure on valid code we want to fix. We are simply
very short handed. What is the pain level on this one?
>From gcc-bugs-return-572665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 18:28:09 2017
Return-Path: <gcc-bugs-return-572665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40420 invoked by alias); 18 Aug 2017 18:28:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40004 invoked by uid 48); 18 Aug 2017 18:28:03 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/69834] [OOP] Collision in derived type hashes
Date: Fri, 18 Aug 2017 21:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle 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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-69834-4-CO5pApH7ul@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69834-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69834-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02224.txt.bz2
Content-length: 623

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

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

--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #14)
> GCC 7.1 has been released.

This is already in 7. I see no need for 6.
>From gcc-bugs-return-572666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 18:29:31 2017
Return-Path: <gcc-bugs-return-572666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43492 invoked by alias); 18 Aug 2017 18:29:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 43177 invoked by uid 48); 18 Aug 2017 18:29:26 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81893] [8 regression] compilation error in libgo starting with r251127
Date: Fri, 18 Aug 2017 21:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81893-4-erxLxwFNT6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02225.txt.bz2
Content-length: 242

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

--- Comment #2 from seurer at gcc dot gnu.org ---
Yes, it compiles OK on LE.

Note that I saw the errors on both power7 and power8 BE systems and using
different versions of gcc to build.
>From gcc-bugs-return-572667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 18:41:31 2017
Return-Path: <gcc-bugs-return-572667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117766 invoked by alias); 18 Aug 2017 18:41:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 110963 invoked by uid 48); 18 Aug 2017 18:41:26 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81488] [8 Regression] gcc goes off the limits allocating memory in gimple-ssa-strength-reduction.c
Date: Fri, 18 Aug 2017 22:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
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-81488-4-wmNpxqJ2uY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02226.txt.bz2
Content-length: 196

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

--- Comment #6 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Patch submitted:  https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01145.html
>From gcc-bugs-return-572668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 18:49:13 2017
Return-Path: <gcc-bugs-return-572668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35626 invoked by alias); 18 Aug 2017 18:49: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 30337 invoked by uid 48); 18 Aug 2017 18:49:05 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81893] [8 regression] compilation error in libgo starting with r251127
Date: Fri, 18 Aug 2017 22:14: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: ian at airs dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81893-4-kXjO4pUuqv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02227.txt.bz2
Content-length: 186

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

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
Thanks.  I think https://golang.org/cl/57110 should fix the problem.
>From gcc-bugs-return-572669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 19:22:24 2017
Return-Path: <gcc-bugs-return-572669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43170 invoked by alias); 18 Aug 2017 19:22: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 43124 invoked by uid 48); 18 Aug 2017 19:22:20 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81894] Typo in x86 built-in function list
Date: Fri, 18 Aug 2017 22:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on component everconfirmed
Message-ID: <bug-81894-4-F6oq30PwkM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02228.txt.bz2
Content-length: 858

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation
             Target|                            |i386-*-*, x86_64-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
          Component|web                         |target
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. "web" is for the web pages, not the gcc manual. Although there are copies
of the manual online, it's part of the compiler sources, not the web pages.

Use keyword "documentation" for doc bugs.
>From gcc-bugs-return-572670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 19:34:09 2017
Return-Path: <gcc-bugs-return-572670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62496 invoked by alias); 18 Aug 2017 19:34:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 62435 invoked by uid 48); 18 Aug 2017 19:34:02 -0000
From: "thorstenkurth at me dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81896] New: omp target enter data not recognized
Date: Fri, 18 Aug 2017 22:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thorstenkurth at me dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-81896-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02229.txt.bz2
Content-length: 2006

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

            Bug ID: 81896
           Summary: omp target enter data not recognized
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thorstenkurth at me dot com
  Target Milestone: ---

Created attachment 42005
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42005&action=edit
small test case

Dear Sir/Madam,

I am not sure if my report got posted the first time because I cannot find it
any more (did not receive a notification about it and it is also not marked
invalid somewhere).
Therefore, I will post it again.

It seems that gcc has problems with the omp target enter/exit data constructs.
When I compile the appended code I get:

g++ -O2 -std=c++11 -fopenmp -foffload=nvptx-none -c aclass.cpp -o aclass.o
In file included from aclass.h:2:0,
                 from aclass.cpp:1:
masterclass.h: In member function 'void master::allocate(const unsigned int&)':
masterclass.h:10:50: error: 'master::data' is not a variable in 'map' clause
 #pragma omp target enter data map(alloc: data[0:size*sizeof(double)])
                                          ^~~~
masterclass.h:10:9: error: '#pragma omp target enter data' must contain at
least one 'map' clause
 #pragma omp target enter data map(alloc: data[0:size*sizeof(double)])
         ^~~
masterclass.h: In member function 'void master::deallocate()':
masterclass.h:15:51: error: 'master::data' is not a variable in 'map' clause
 #pragma omp target exit data map(release: data[:0])
                                           ^~~~
masterclass.h:15:9: error: '#pragma omp target exit data' must contain at least
one 'map' clause
 #pragma omp target exit data map(release: data[:0])
         ^~~
make: *** [aclass.o] Error 1

The same code compiles fine when using XLC. 

Best Regards
Thorsten Kurth
>From gcc-bugs-return-572671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 19:44:59 2017
Return-Path: <gcc-bugs-return-572671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16626 invoked by alias); 18 Aug 2017 19: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 16455 invoked by uid 48); 18 Aug 2017 19:44:52 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81897] New: spurious -Wmaybe-uninitialized warning
Date: Fri, 18 Aug 2017 23:32: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.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arnd at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02230.txt.bz2
Content-length: 1911

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

            Bug ID: 81897
           Summary: spurious -Wmaybe-uninitialized warning
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arnd at linaro dot org
  Target Milestone: ---

I keep seeing a class of false-positive -Wmaybe-uninitialized in the linux
kernel and have done countless kernel patches to work around them. The latest
one triggered me to look a little deeper. The general pattern I see is that
when one variable is conditionally initialized and conditionally used based on
the same variable, but any form of lock (mutex, semaphore, spinlock, ...)
release happens in-between, the compiler no longer knows if the initialization
was correct, and produces a spurious warning.

This particular instance of the warning I saw today reduced to a relatively
simple function between the initialization and the use:

int f(void);
static inline void rcu_read_unlock(void)
{
        static _Bool __warned;
        if (f() && !__warned && !f()) {
                __warned = 1;
        }
}
int inet6_rtm_getroute(void)
{
        int dst;
        int fibmatch = f();

        if (!fibmatch)
                dst = f();
        rcu_read_unlock();
        if (fibmatch)
                dst = 0;

        return dst;
}

Clearly, 'dst' is initialized here when it gets returned.

I can reproduce the warning in gcc-4.7 through 7.1.1, which is the latest I
tried.
>From gcc-bugs-return-572672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 19:48:55 2017
Return-Path: <gcc-bugs-return-572672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44999 invoked by alias); 18 Aug 2017 19:48: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 44891 invoked by uid 48); 18 Aug 2017 19:48:49 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80657] [7/8 Regression] Loop in character function declaration
Date: Fri, 18 Aug 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: fortran
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: ice-on-invalid-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: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-80657-4-0qXKWEWYVx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80657-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80657-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02231.txt.bz2
Content-length: 544

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

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 #4 from Paul Thomas <pault at gcc dot gnu.org> ---
Since I caused it, I had better take the PR!

I am away for the next ten days and will work on it while my wife is working on
her film script :-)

Cheers

Paul
>From gcc-bugs-return-572673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 19:56:22 2017
Return-Path: <gcc-bugs-return-572673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80880 invoked by alias); 18 Aug 2017 19:56: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 80777 invoked by uid 48); 18 Aug 2017 19:56:16 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/69834] [OOP] Collision in derived type hashes
Date: Fri, 18 Aug 2017 23:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: 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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69834-4-w3y9S16rrI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69834-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69834-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02232.txt.bz2
Content-length: 236

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

--- Comment #16 from Paul Thomas <pault at gcc dot gnu.org> ---
Dear Jerry,

Thanks for your confirmation of my feeling about this. I have enough on my
plate as it is!

Cheers

Paul
>From gcc-bugs-return-572674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 19:58:16 2017
Return-Path: <gcc-bugs-return-572674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84379 invoked by alias); 18 Aug 2017 19: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 84277 invoked by uid 48); 18 Aug 2017 19:58:10 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Fri, 18 Aug 2017 23:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: ro 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: cc
Message-ID: <bug-53037-4-LxXL10EX7x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02233.txt.bz2
Content-length: 2070

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

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

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

--- Comment #26 from Rainer Orth <ro at gcc dot gnu.org> ---
Several of the new tests FAIL on Solaris/SPARC (both 32 and 64-bit):

+FAIL: g++.dg/pr53037-2.C  -std=gnu++11  (test for warnings, line 16)
+FAIL: g++.dg/pr53037-2.C  -std=gnu++11  (test for warnings, line 29)
+FAIL: g++.dg/pr53037-2.C  -std=gnu++11  (test for warnings, line 6)
+FAIL: g++.dg/pr53037-2.C  -std=gnu++14  (test for warnings, line 16)
+FAIL: g++.dg/pr53037-2.C  -std=gnu++14  (test for warnings, line 29)
+FAIL: g++.dg/pr53037-2.C  -std=gnu++14  (test for warnings, line 6)
+FAIL: g++.dg/pr53037-2.C  -std=gnu++98  (test for warnings, line 16)
+FAIL: g++.dg/pr53037-2.C  -std=gnu++98  (test for warnings, line 29)
+FAIL: g++.dg/pr53037-2.C  -std=gnu++98  (test for warnings, line 6)
+FAIL: g++.dg/pr53037-3.C  -std=gnu++11  (test for warnings, line 16)
+FAIL: g++.dg/pr53037-3.C  -std=gnu++11  (test for warnings, line 29)
+FAIL: g++.dg/pr53037-3.C  -std=gnu++11  (test for warnings, line 6)
+FAIL: g++.dg/pr53037-3.C  -std=gnu++14  (test for warnings, line 16)
+FAIL: g++.dg/pr53037-3.C  -std=gnu++14  (test for warnings, line 29)
+FAIL: g++.dg/pr53037-3.C  -std=gnu++14  (test for warnings, line 6)
+FAIL: g++.dg/pr53037-3.C  -std=gnu++98  (test for warnings, line 16)
+FAIL: g++.dg/pr53037-3.C  -std=gnu++98  (test for warnings, line 29)
+FAIL: g++.dg/pr53037-3.C  -std=gnu++98  (test for warnings, line 6)

+FAIL: gcc.dg/pr53037-2.c  (test for warnings, line 16)
+FAIL: gcc.dg/pr53037-2.c  (test for warnings, line 32)
+FAIL: gcc.dg/pr53037-2.c  (test for warnings, line 8)
+FAIL: gcc.dg/pr53037-3.c  (test for warnings, line 16)
+FAIL: gcc.dg/pr53037-3.c  (test for warnings, line 32)
+FAIL: gcc.dg/pr53037-3.c  (test for warnings, line 8)

  Rainer
>From gcc-bugs-return-572675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 19:59:53 2017
Return-Path: <gcc-bugs-return-572675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87238 invoked by alias); 18 Aug 2017 19:59: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 87060 invoked by uid 48); 18 Aug 2017 19:59:49 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Sat, 19 Aug 2017 00:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-53037-4-bCX9CgtOHi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02234.txt.bz2
Content-length: 1943

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

--- Comment #27 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Rainer Orth from comment #26)
> Several of the new tests FAIL on Solaris/SPARC (both 32 and 64-bit):
> 
> +FAIL: g++.dg/pr53037-2.C  -std=gnu++11  (test for warnings, line 16)
> +FAIL: g++.dg/pr53037-2.C  -std=gnu++11  (test for warnings, line 29)
> +FAIL: g++.dg/pr53037-2.C  -std=gnu++11  (test for warnings, line 6)
> +FAIL: g++.dg/pr53037-2.C  -std=gnu++14  (test for warnings, line 16)
> +FAIL: g++.dg/pr53037-2.C  -std=gnu++14  (test for warnings, line 29)
> +FAIL: g++.dg/pr53037-2.C  -std=gnu++14  (test for warnings, line 6)
> +FAIL: g++.dg/pr53037-2.C  -std=gnu++98  (test for warnings, line 16)
> +FAIL: g++.dg/pr53037-2.C  -std=gnu++98  (test for warnings, line 29)
> +FAIL: g++.dg/pr53037-2.C  -std=gnu++98  (test for warnings, line 6)
> +FAIL: g++.dg/pr53037-3.C  -std=gnu++11  (test for warnings, line 16)
> +FAIL: g++.dg/pr53037-3.C  -std=gnu++11  (test for warnings, line 29)
> +FAIL: g++.dg/pr53037-3.C  -std=gnu++11  (test for warnings, line 6)
> +FAIL: g++.dg/pr53037-3.C  -std=gnu++14  (test for warnings, line 16)
> +FAIL: g++.dg/pr53037-3.C  -std=gnu++14  (test for warnings, line 29)
> +FAIL: g++.dg/pr53037-3.C  -std=gnu++14  (test for warnings, line 6)
> +FAIL: g++.dg/pr53037-3.C  -std=gnu++98  (test for warnings, line 16)
> +FAIL: g++.dg/pr53037-3.C  -std=gnu++98  (test for warnings, line 29)
> +FAIL: g++.dg/pr53037-3.C  -std=gnu++98  (test for warnings, line 6)
> 
> +FAIL: gcc.dg/pr53037-2.c  (test for warnings, line 16)
> +FAIL: gcc.dg/pr53037-2.c  (test for warnings, line 32)
> +FAIL: gcc.dg/pr53037-2.c  (test for warnings, line 8)
> +FAIL: gcc.dg/pr53037-3.c  (test for warnings, line 16)
> +FAIL: gcc.dg/pr53037-3.c  (test for warnings, line 32)
> +FAIL: gcc.dg/pr53037-3.c  (test for warnings, line 8)
> 

What are error messages?
>From gcc-bugs-return-572676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 20:02:22 2017
Return-Path: <gcc-bugs-return-572676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114972 invoked by alias); 18 Aug 2017 20:02: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 114563 invoked by uid 55); 18 Aug 2017 20:02:17 -0000
From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Sat, 19 Aug 2017 02:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE
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-53037-4-QrRiT3kska@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02235.txt.bz2
Content-length: 301

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

--- Comment #28 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #27 from H.J. Lu <hjl.tools at gmail dot com> ---

> What are error messages?

None, the warnings are simply missing.

        Rainer
>From gcc-bugs-return-572677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 20:18:05 2017
Return-Path: <gcc-bugs-return-572677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32982 invoked by alias); 18 Aug 2017 20:18: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 32770 invoked by uid 55); 18 Aug 2017 20:18:00 -0000
From: "ian at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81893] [8 regression] compilation error in libgo starting with r251127
Date: Sat, 19 Aug 2017 03:27: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: ian at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81893-4-nsV1s1tn4e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02236.txt.bz2
Content-length: 608

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

--- Comment #4 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Fri Aug 18 20:17:26 2017
New Revision: 251188

URL: https://gcc.gnu.org/viewcvs?rev=251188&root=gcc&view=rev
Log:
        PR go/81893
    runtime: only use PPC GNU/Linux register code on little endian

    Reportedly the current code builds on little endian but not big endian.

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

    Reviewed-on: https://go-review.googlesource.com/57110

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/libgo/runtime/go-signal.c
>From gcc-bugs-return-572678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 20:20:17 2017
Return-Path: <gcc-bugs-return-572678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71992 invoked by alias); 18 Aug 2017 20:20: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 62380 invoked by uid 48); 18 Aug 2017 20:20:09 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81893] [8 regression] compilation error in libgo starting with r251127
Date: Sat, 19 Aug 2017 06:39: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: ian at airs dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81893-4-XSMKzIdG7h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02237.txt.bz2
Content-length: 427

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

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

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

--- Comment #5 from Ian Lance Taylor <ian at airs dot com> ---
Fixed, I hope.
>From gcc-bugs-return-572679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 20:32:17 2017
Return-Path: <gcc-bugs-return-572679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83543 invoked by alias); 18 Aug 2017 20:32: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 83418 invoked by uid 48); 18 Aug 2017 20:32:10 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81572] [7/8 Regression] gcc-7 regression: unnecessary vector regmove on compare
Date: Sat, 19 Aug 2017 08:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: missed-optimization
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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81572-4-QyEajVNZin@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81572-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81572-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02238.txt.bz2
Content-length: 1496

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

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-18
                 CC|                            |bergner at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Peter Bergner <bergner at gcc dot gnu.org> ---
Confirmed.

GCC 6, GCC 7 and trunk all generate the same RTL going into IRA.  This includes
a register copy of the incoming formal arg reg r79 into a pseudo reg.  IRA also
assigns the same hard registers to the same pseudos for all three gcc versions,
which also includes the destination of the above copy insn getting assigned r79
making the copy a nop.

The difference is that starting with GCC 7, LRA decides that the assigning the
destination of the copy insn to r79 is "risky":

    Spill r129 after risky transformations
  Reassigning non-reload pseudos
           Assign 77 to r129 (freq=3000)

so it ends up re-assigning it to r77.  This now means the copy insn is no
longer a nop and cannot be deleted.  Looking at the debugger, I see that at
some point, r79 gets added to:

  lra_reg_info[129].conflict_hard_regs

...which forces us to reassign pseudo 129.  I'm tracking down where r79 is
added to pseudo's conflist_hard_regs.
>From gcc-bugs-return-572680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 20:52:22 2017
Return-Path: <gcc-bugs-return-572680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17174 invoked by alias); 18 Aug 2017 20:52: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 17086 invoked by uid 48); 18 Aug 2017 20:52:17 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Sat, 19 Aug 2017 08:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-53037-4-7BmyUrDeOJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02239.txt.bz2
Content-length: 1340

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

--- Comment #29 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #28)
> > --- Comment #27 from H.J. Lu <hjl.tools at gmail dot com> ---
> 
> > What are error messages?
> 
> None, the warnings are simply missing.
> 
> 	Rainer

Sparc defines STRICT_ALIGNMENT which leads to

      unsigned mode_align = GET_MODE_ALIGNMENT (TYPE_MODE (type));

      /* Don't override a larger alignment requirement coming from a user
         alignment of one of the fields.  */
      if (mode_align >= TYPE_ALIGN (type))
        {
          SET_TYPE_ALIGN (type, mode_align);
          TYPE_USER_ALIGN (type) = 0; 
        }

so __attribute__ ((packed)) is basically ignored on Sparc.  This patch

diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 3028d55773a..6dd605810ac 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -1784,7 +1784,7 @@ finalize_type_size (tree type)

       /* Don't override a larger alignment requirement coming from a user
    alignment of one of the fields.  */
-      if (mode_align >= TYPE_ALIGN (type))
+      if (mode_align > TYPE_ALIGN (type))
   {
     SET_TYPE_ALIGN (type, mode_align);
     TYPE_USER_ALIGN (type) = 0;

works with cross compiler.  But I have no idea if it is correct.
>From gcc-bugs-return-572681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 21:37:30 2017
Return-Path: <gcc-bugs-return-572681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61232 invoked by alias); 18 Aug 2017 21:37: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 61106 invoked by uid 55); 18 Aug 2017 21:37:24 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80164] ICE in gfc_format_decoder at gcc/fortran/error.c:933
Date: Sat, 19 Aug 2017 08:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80164-4-1MjauLrMgo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80164-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80164-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02240.txt.bz2
Content-length: 778

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

--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Fri Aug 18 21:36:50 2017
New Revision: 251189

URL: https://gcc.gnu.org/viewcvs?rev=251189&root=gcc&view=rev
Log:
2017-08-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        Backport from trunk
        PR fortran/80164
        * trans-stmt.c (gfc_trans_call): If no code expr, use code->loc
        as warning/error locus.

        * gfortran.dg/array_temporaries_4.f90: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/array_temporaries_4.f90
Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/trans-stmt.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 21:38:24 2017
Return-Path: <gcc-bugs-return-572682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62819 invoked by alias); 18 Aug 2017 21:38: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 62698 invoked by uid 48); 18 Aug 2017 21:38:20 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80164] ICE in gfc_format_decoder at gcc/fortran/error.c:933
Date: Sat, 19 Aug 2017 08:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-80164-4-p6IE5XPZwy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80164-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80164-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02241.txt.bz2
Content-length: 447

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

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

--- Comment #16 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Fixed on 7.3, closing
>From gcc-bugs-return-572683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 21:41:48 2017
Return-Path: <gcc-bugs-return-572683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1520 invoked by alias); 18 Aug 2017 21:41: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 1410 invoked by uid 48); 18 Aug 2017 21:41:43 -0000
From: "jdhughes at usgs dot gov" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81898] New: Issue with polymorphic container class
Date: Sat, 19 Aug 2017 08:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jdhughes at usgs dot gov
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned 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-81898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02242.txt.bz2
Content-length: 1844

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

            Bug ID: 81898
           Summary: Issue with polymorphic container class
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jdhughes at usgs dot gov
  Target Milestone: ---

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

The attached code is a minimal example of a problem we have encountered
compiling one of our software products with version 7.1.1. The compiled code
returns the following:

    Program received signal SIGSEGV: Segmentation fault - invalid memory
reference.

    Backtrace for this error: 
    #0  0x10b7310bc
    #1  0x10b7308aa
    #2  0x7fffe6ebdb39
    Segmentation fault: 11

when compiled with gfortran 7.1.1 2017062 on OSX from macports using the
following fortran flags:

    -g -fcheck=all -fbacktrace -fbounds-check -O0 -Wall -Wextra
-fno-strict-aliasing -fwrapv

The code also fails on linux with GNU Fortran (Ubuntu 7.1.0-5ubuntu2~14.04)
7.1.0 using the following fortran flags

    -O2 -fbacktrace -ffpe-summary=overflow -ffpe-trap=overflow,zero,invalid

The code runs successfully when compiled on ubuntu linux with the following:

    4.9.4
    5.4.1 20160904
    6.3.0 20170519

The segmentation fault occurs after the program completes allocation and
initialization of this%element(i)%obj on line 117 for each element and makes
the call to a_rd on line 121.

A segmentation fault does not occur if this%elements is defined as:

    type(Btype), pointer, dimensions(:) :: elements => null()

and the code is modified to reflect the change to this%elements.

Is this a bug in 7.1.1?
>From gcc-bugs-return-572684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 22:13:05 2017
Return-Path: <gcc-bugs-return-572684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19652 invoked by alias); 18 Aug 2017 22:13:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19493 invoked by uid 48); 18 Aug 2017 22:13:00 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81897] [5.4/6.4/7.2/8 Regression] spurious -Wmaybe-uninitialized warning
Date: Sat, 19 Aug 2017 10:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on cc everconfirmed short_desc cf_known_to_fail
Message-ID: <bug-81897-4-0do4UePv2C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02243.txt.bz2
Content-length: 1275

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.6.3, 4.8.3
           Keywords|                            |diagnostic
   Last reconfirmed|                            |2017-08-18
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|spurious                    |[5.4/6.4/7.2/8 Regression]
                   |-Wmaybe-uninitialized       |spurious
                   |warning                     |-Wmaybe-uninitialized
                   |                            |warning
      Known to fail|                            |4.9.3, 5.4.0, 6.4.0, 7.2.0,
                   |                            |8.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  The regression was apparently introduced in r205074 (gcc 4.9.0). 
There was no warning prior to that change going as far back as r158841.  The
next older revision I have access to, r158831, again warns.
>From gcc-bugs-return-572685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 22:14:06 2017
Return-Path: <gcc-bugs-return-572685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21136 invoked by alias); 18 Aug 2017 22:14:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21061 invoked by uid 48); 18 Aug 2017 22:14:00 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/19794] [meta-bug] Jump threading related bugs
Date: Sat, 19 Aug 2017 11:06: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: unknown
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-19794-4-vnFXDe1waD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19794-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02244.txt.bz2
Content-length: 491

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

Bug 70879 Summary: Missed jump threading opportunity with multiple != conditions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70879

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-572687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 22:28:08 2017
Return-Path: <gcc-bugs-return-572687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85054 invoked by alias); 18 Aug 2017 22:28: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 84882 invoked by uid 48); 18 Aug 2017 22:28:03 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/47413] Constant Propagation and Virtual Function Tables
Date: Sat, 19 Aug 2017 11:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.5.2
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat 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 cc resolution
Message-ID: <bug-47413-4-vcWAiwpDss@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02246.txt.bz2
Content-length: 1595

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
Fixed, not really sure when though:

int main() ()
{
  struct obj * obj;
  int _1;

;;   basic block 2, loop depth 0, count 0, freq 10000, maybe hot
;;    prev block 0, next block 3, flags: (NEW, REACHABLE, VISITED)
;;    pred:       ENTRY [100.0%]  (FALLTHRU,EXECUTABLE)
  obj_5 = malloc (8);
  if (obj_5 == 0B)
    goto <bb 4>; [30.86%]
  else
    goto <bb 3>; [69.14%]
;;    succ:       4 [30.9%]  (TRUE_VALUE,EXECUTABLE)
;;                3 [69.1%]  (FALSE_VALUE,EXECUTABLE)

;;   basic block 3, loop depth 0, count 0, freq 6914, maybe hot
;;    prev block 2, next block 4, flags: (NEW, REACHABLE, VISITED)
;;    pred:       2 [69.1%]  (FALSE_VALUE,EXECUTABLE)
  printf ("%d\n", 1337);
;;    succ:       4 [100.0%]  (FALLTHRU,EXECUTABLE)

;;   basic block 4, loop depth 0, count 0, freq 10000, maybe hot
;;    prev block 3, next block 1, flags: (NEW, REACHABLE, VISITED)
;;    pred:       2 [30.9%]  (TRUE_VALUE,EXECUTABLE)
;;                3 [100.0%]  (FALLTHRU,EXECUTABLE)
  # _1 = PHI <0(2), 1(3)>
  return _1;
;;    succ:       EXIT [100.0%]

}

Note passing 1337 directly into the printf call.
>From gcc-bugs-return-572686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 22:14:08 2017
Return-Path: <gcc-bugs-return-572686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21182 invoked by alias); 18 Aug 2017 22:14:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21024 invoked by uid 48); 18 Aug 2017 22:14:00 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/70879] Missed jump threading opportunity with multiple != conditions
Date: Sat, 19 Aug 2017 11:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat 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-70879-4-8cmk0ZJOOk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70879-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70879-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02245.txt.bz2
Content-length: 458

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

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

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

--- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
This was fixed by RIchi's change for pr71433.
>From gcc-bugs-return-572688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 23:32:10 2017
Return-Path: <gcc-bugs-return-572688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67870 invoked by alias); 18 Aug 2017 23:32:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 67819 invoked by uid 55); 18 Aug 2017 23:32:05 -0000
From: "amacleod at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/70879] Missed jump threading opportunity with multiple != conditions
Date: Sat, 19 Aug 2017 11:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: amacleod at redhat 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:
Message-ID: <bug-70879-4-MV5WKaE6lN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70879-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70879-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02247.txt.bz2
Content-length: 2650

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

--- Comment #5 from Andrew Macleod <amacleod at redhat dot com> ---
On 08/18/2017 06:13 PM, law at redhat dot com wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70879
>
> Jeffrey A. Law <law at redhat dot com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|NEW                         |RESOLVED
>           Resolution|---                         |FIXED
>
> --- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
> This was fixed by RIchi's change for pr71433.
>
Made a bunch of updates this week, and things are in decent shape I think.

so looking at that test case with the code base as of this afternoon, if 
we expand irange to have 3 sub-ranges (which I think long term we will 
may need)

void
foo (int a)
{
   if (a != 5 && a != 10)
     bar ();
   if (a == 10)
     baz ();
}
we get gimple

<bb 2> [0.00%] [count: INV]:
   _1 = a_6(D) != 5;
   _2 = a_6(D) != 10;
   _3 = _1 & _2;
   if (_3 != 0)
     goto <bb 3>; [INV] [count: INV]
   else
     goto <bb 4>; [INV] [count: INV]

   <bb 3> [0.00%] [count: INV]:
   bar ();

   <bb 4> [0.00%] [count: INV]:
   if (a_6(D) == 10)
     goto <bb 5>; [INV] [count: INV]
   else
     goto <bb 6>; [INV] [count: INV]

shows

BB  2:  T: _1   [0x0000000000000001, 0x0000000000000001] precision = 1
BB  2:  T: _2   [0x0000000000000001, 0x0000000000000001] precision = 1
BB  2:  T: _3   [0xffffffffffffffff, 0xffffffffffffffff] precision = 1
BB  2:  T: a_6(D)       [0xffffffff80000000, 0x4][0x6, 0x9][0xb, 
0x7fffffff] precision = 32
BB  2:  F: _1   [0x0, 0x0000000000000001] precision = 1
BB  2:  F: _2   [0x0, 0x0000000000000001] precision = 1
BB  2:  F: _3   [0x0, 0x0] precision = 1
BB  2:  F: a_6(D)       [0x5, 0x5][0xa, 0xa] precision = 32

BB  4:  T: a_6(D)       [0xa, 0xa] precision = 32
BB  4:  F: a_6(D)       [0xffffffff80000000, 0x9][0xb, 0x7fffffff] 
precision = 32


so the true side of bb2 shows the range of a_6 to be everything except 5 
and 10  [0xffffffff80000000, 0x4][0x6, 0x9][0xb, 0x7fffffff] precision = 32

and the true side of bb4, leading to the call to baz(), a_6 has to have 
a value of 10.. if you intersect those 2 ranges on that path... voila!!

its a NULL range meaning that call can't happen on that path 
2->3->4->5,  letting you do your thing..

So that is promising...

Andrew

Over the weekend im going to consider options for handling an increase 
of precision in ranges without going full on dynamic.
>From gcc-bugs-return-572689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 23:42:23 2017
Return-Path: <gcc-bugs-return-572689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81074 invoked by alias); 18 Aug 2017 23: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 80956 invoked by uid 55); 18 Aug 2017 23:42:18 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80210] ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow
Date: Sat, 19 Aug 2017 11:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80210-4-3xUUUi3SV0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02248.txt.bz2
Content-length: 697

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

--- Comment #7 from Peter Bergner <bergner at gcc dot gnu.org> ---
Author: bergner
Date: Fri Aug 18 23:41:41 2017
New Revision: 251190

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

gcc/
        PR target/80210
        * config/rs6000/rs6000.c (rs6000_activate_target_options): New
function.
        (rs6000_set_current_function): Rewrite function to use it.

gcc/testsuite/
        PR target/80210
        * gcc.target/powerpc/pr80210.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/powerpc/pr80210.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 23:55:06 2017
Return-Path: <gcc-bugs-return-572690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76449 invoked by alias); 18 Aug 2017 23:55:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 74355 invoked by uid 48); 18 Aug 2017 23:55:01 -0000
From: "daniel.santos at pobox dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81850] [mingw/cygwin] -mabi=sysv ignored
Date: Sat, 19 Aug 2017 11:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81850-4-HV08HgpJvX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81850-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81850-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02249.txt.bz2
Content-length: 235

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

--- Comment #1 from Daniel Santos <daniel.santos at pobox dot com> ---
I have a patch that I've tested and will be submitting it shortly (I can't
change the assigned to field yet).
>From gcc-bugs-return-572692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 00:49:34 2017
Return-Path: <gcc-bugs-return-572692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41157 invoked by alias); 19 Aug 2017 00:49:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 33874 invoked by uid 48); 19 Aug 2017 00:49:20 -0000
From: "lucier at math dot purdue.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/64928] [5/6/7/8 Regression] Inordinate cpu time and memory usage in "phase opt and generate" with -ftest-coverage -fprofile-arcs
Date: Sat, 19 Aug 2017 12:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords: compile-time-hog, memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lucier at math dot purdue.edu
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64928-4-HF2vJmSymW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02251.txt.bz2
Content-length: 20893

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

--- Comment #23 from lucier at math dot purdue.edu ---
I tried the mainline compiler with the smaller input file on a similar machine
to the one in the original report.

I don't know whether I've configured the compiler incorrectly or something, but
the problem seems worse now than when first reported.

This is the compiler:

heine:~/programs/gcc> /pkgs/gcc-mainline/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/pkgs/gcc-mainline/bin/gcc
COLLECT_LTO_WRAPPER=/pkgs/gcc-mainline/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../../gcc-mainline/configure --prefix=/pkgs/gcc-mainline
--enable-checking=release --enable-languages=c --disable-multilib
--enable-gather-detailed-mem-stats
Thread model: posix
gcc version 8.0.0 20170818 (experimental) [trunk revision 251188] (GCC) 

and this is the result: 

/pkgs/gcc-mainline/bin/gcc -Q -save-temps -Wno-unused -Wno-write-strings -O1
-fno-math-errno -fschedule-insns2 -fno-strict-aliasing -fno-trapping-math
-fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp -fprofile-arcs
-ftest-coverage -I"../include" -c -o "_system.o" -I. -DHAVE_CONFIG_H 
-D___PRIMAL _system.c -D___LIBRARY
Execution times (seconds)
 phase setup             :   0.05 (100%) usr   0.00 ( 0%) sys   0.05 (83%) wall
   1425 kB (99%) ggc
 TOTAL                 :   0.05             0.00             0.06              
1434 kB
 btowc wctob mbrlen __signbitf __signbit __signbitl ___H__20___system
___H__23__23_type ___H__23__23_type_2d_cast ___H__23__23_subtype
___H__23__23_subtype_2d_set_21_ ___H__23__23_fixnum_3f_
___H__23__23_subtyped_3f_ ___H__23__23_subtyped_2d_mutable_3f_
___H__23__23_subtyped_2e_vector_3f_ ___H__23__23_subtyped_2e_symbol_3f_
___H__23__23_subtyped_2e_flonum_3f_ ___H__23__23_subtyped_2e_bignum_3f_
___H__23__23_special_3f_ ___H__23__23_ratnum_3f_ ___H__23__23_cpxnum_3f_
___H__23__23_structure_3f_ ___H__23__23_values_3f_ ___H__23__23_meroon_3f_
___H__23__23_jazz_3f_ ___H__23__23_frame_3f_ ___H__23__23_continuation_3f_
___H__23__23_promise_3f_ ___H__23__23_return_3f_ ___H__23__23_foreign_3f_
___H__23__23_flonum_3f_ ___H__23__23_bignum_3f_ ___H__23__23_unbound_3f_
___H__23__23_quasi_2d_append ___H__23__23_quasi_2d_list
___H__23__23_quasi_2d_cons ___H__23__23_quasi_2d_list_2d__3e_vector
___H__23__23_quasi_2d_vector ___H__23__23_case_2d_memv ___H__23__23_eqv_3f_
___H_eqv_3f_ ___H__23__23_eq_3f_ ___H_eq_3f_ ___H__23__23_bvector_2d_equal_3f_
___H__23__23_equal_3f_ ___H_equal_3f_ ___H__23__23_symbol_2d_hash
___H_symbol_2d_hash ___H__23__23_keyword_2d_hash ___H_keyword_2d_hash
___H__23__23_eq_3f__2d_hash ___H_eq_3f__2d_hash ___H__23__23_eqv_3f__2d_hash
___H_eqv_3f__2d_hash ___H__23__23_equal_3f__2d_hash ___H_equal_3f__2d_hash
___H__23__23_string_3d__3f__2d_hash ___H_string_3d__3f__2d_hash
___H__23__23_string_2d_ci_3d__3f__2d_hash ___H_string_2d_ci_3d__3f__2d_hash
___H__23__23_generic_2d_hash
___H__23__23_fail_2d_check_2d_invalid_2d_hash_2d_number_2d_exception
___H_invalid_2d_hash_2d_number_2d_exception_3f_
___H_invalid_2d_hash_2d_number_2d_exception_2d_procedure
___H_invalid_2d_hash_2d_number_2d_exception_2d_arguments
___H__23__23_raise_2d_invalid_2d_hash_2d_number_2d_exception
___H__23__23_fail_2d_check_2d_unbound_2d_table_2d_key_2d_exception
___H_unbound_2d_table_2d_key_2d_exception_3f_
___H_unbound_2d_table_2d_key_2d_exception_2d_procedure
___H_unbound_2d_table_2d_key_2d_exception_2d_arguments
___H__23__23_raise_2d_unbound_2d_table_2d_key_2d_exception
___H__23__23_gc_2d_hash_2d_table_3f_ ___H__23__23_gc_2d_hash_2d_table_2d_ref
___H__23__23_gc_2d_hash_2d_table_2d_set_21_
___H__23__23_gc_2d_hash_2d_table_2d_rehash_21_
___H__23__23_smallest_2d_prime_2d_no_2d_less_2d_than
___H__23__23_gc_2d_hash_2d_table_2d_resize_21_
___H__23__23_gc_2d_hash_2d_table_2d_allocate
___H__23__23_gc_2d_hash_2d_table_2d_for_2d_each
___H__23__23_gc_2d_hash_2d_table_2d_search
___H__23__23_gc_2d_hash_2d_table_2d_foldl ___H__23__23_mem_2d_allocated_3f_
___H__23__23_fail_2d_check_2d_table ___H_table_3f_ ___H__23__23_make_2d_table
___H_make_2d_table ___H__23__23_table_2d_get_2d_eq_2d_gcht
___H__23__23_table_2d_get_2d_gcht_2d_not_2d_mem_2d_alloc
___H__23__23_table_2d_get_2d_gcht ___H__23__23_table_2d_length
___H_table_2d_length ___H__23__23_table_2d_access ___H__23__23_table_2d_ref
___H_table_2d_ref ___H__23__23_table_2d_resize_21_
___H__23__23_table_2d_set_21_ ___H_table_2d_set_21_
___H__23__23_table_2d_search ___H_table_2d_search
___H__23__23_table_2d_for_2d_each ___H_table_2d_for_2d_each
___H__23__23_table_2d_foldl ___H__23__23_table_2d__3e_list
___H_table_2d__3e_list ___H__23__23_list_2d__3e_table ___H_list_2d__3e_table
___H__23__23_table_2d_copy ___H_table_2d_copy ___H__23__23_table_2d_merge_21_
___H_table_2d_merge_21_ ___H__23__23_table_2d_merge ___H_table_2d_merge
___H__23__23_table_2d_equal_3f_ ___H__23__23_table_2d_equal_3f__2d_hash
___H__23__23_fail_2d_check_2d_unbound_2d_serial_2d_number_2d_exception
___H_unbound_2d_serial_2d_number_2d_exception_3f_
___H_unbound_2d_serial_2d_number_2d_exception_2d_procedure
___H_unbound_2d_serial_2d_number_2d_exception_2d_arguments
___H__23__23_raise_2d_unbound_2d_serial_2d_number_2d_exception
___H__23__23_object_2d__3e_serial_2d_number ___H_object_2d__3e_serial_2d_number
___H__23__23_serial_2d_number_2d__3e_object ___H_serial_2d_number_2d__3e_object
___H__23__23_object_2d__3e_u8vector ___H_object_2d__3e_u8vector
___H__23__23_u8vector_2d__3e_object ___H_u8vector_2d__3e_object ___setup_mod
___init_mod ____20___system
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes>
<targetclone> <profile> <free-fnsummary> <whole-program> <profile_estimate>
<fnsummary> <inline> <pure-const> <static-var> <single-use> <comdats>Assembling
functions:
 <materialize-all-clones> <simdclone> ___H__20___system ___H__23__23_type
___H__23__23_type_2d_cast ___H__23__23_subtype ___H__23__23_subtype_2d_set_21_
___H__23__23_fixnum_3f_ ___H__23__23_subtyped_3f_
___H__23__23_subtyped_2d_mutable_3f_ ___H__23__23_subtyped_2e_vector_3f_
___H__23__23_subtyped_2e_symbol_3f_ ___H__23__23_subtyped_2e_flonum_3f_
___H__23__23_subtyped_2e_bignum_3f_ ___H__23__23_special_3f_
___H__23__23_ratnum_3f_ ___H__23__23_cpxnum_3f_ ___H__23__23_structure_3f_
___H__23__23_values_3f_ ___H__23__23_meroon_3f_ ___H__23__23_jazz_3f_
___H__23__23_frame_3f_ ___H__23__23_continuation_3f_ ___H__23__23_promise_3f_
___H__23__23_return_3f_ ___H__23__23_foreign_3f_ ___H__23__23_flonum_3f_
___H__23__23_bignum_3f_ ___H__23__23_unbound_3f_ ___H__23__23_quasi_2d_append
___H__23__23_quasi_2d_list ___H__23__23_quasi_2d_cons
___H__23__23_quasi_2d_list_2d__3e_vector ___H__23__23_quasi_2d_vector
___H__23__23_case_2d_memv ___H__23__23_eqv_3f_ ___H_eqv_3f_ ___H__23__23_eq_3f_
___H_eq_3f_ ___H__23__23_bvector_2d_equal_3f_ ___H__23__23_equal_3f_
___H_equal_3f_ ___H__23__23_symbol_2d_hash ___H_symbol_2d_hash
___H__23__23_keyword_2d_hash ___H_keyword_2d_hash ___H__23__23_eq_3f__2d_hash
___H_eq_3f__2d_hash ___H__23__23_eqv_3f__2d_hash ___H_eqv_3f__2d_hash
___H__23__23_equal_3f__2d_hash ___H_equal_3f__2d_hash
___H__23__23_string_3d__3f__2d_hash ___H_string_3d__3f__2d_hash
___H_string_2d_ci_3d__3f__2d_hash ___H__23__23_generic_2d_hash
___H__23__23_fail_2d_check_2d_invalid_2d_hash_2d_number_2d_exception
___H_invalid_2d_hash_2d_number_2d_exception_3f_
___H_invalid_2d_hash_2d_number_2d_exception_2d_procedure
___H_invalid_2d_hash_2d_number_2d_exception_2d_arguments
___H__23__23_raise_2d_invalid_2d_hash_2d_number_2d_exception
___H__23__23_fail_2d_check_2d_unbound_2d_table_2d_key_2d_exception
___H_unbound_2d_table_2d_key_2d_exception_3f_
___H_unbound_2d_table_2d_key_2d_exception_2d_procedure
___H_unbound_2d_table_2d_key_2d_exception_2d_arguments
___H__23__23_raise_2d_unbound_2d_table_2d_key_2d_exception
___H__23__23_gc_2d_hash_2d_table_3f_
___H__23__23_smallest_2d_prime_2d_no_2d_less_2d_than
___H__23__23_gc_2d_hash_2d_table_2d_resize_21_
___H__23__23_gc_2d_hash_2d_table_2d_allocate
___H__23__23_gc_2d_hash_2d_table_2d_for_2d_each
___H__23__23_gc_2d_hash_2d_table_2d_search
___H__23__23_gc_2d_hash_2d_table_2d_foldl ___H__23__23_mem_2d_allocated_3f_
___H__23__23_fail_2d_check_2d_table ___H_table_3f_ ___H_make_2d_table
___H__23__23_table_2d_get_2d_eq_2d_gcht
___H__23__23_table_2d_get_2d_gcht_2d_not_2d_mem_2d_alloc
___H__23__23_table_2d_get_2d_gcht ___H__23__23_table_2d_length
___H_table_2d_length ___H__23__23_table_2d_access ___H_table_2d_ref
___H__23__23_table_2d_resize_21_ ___H_table_2d_set_21_
___H__23__23_table_2d_search ___H_table_2d_search
___H__23__23_table_2d_for_2d_each ___H_table_2d_for_2d_each
___H__23__23_table_2d_foldl ___H__23__23_table_2d__3e_list
___H_table_2d__3e_list ___H__23__23_list_2d__3e_table ___H_list_2d__3e_table
___H__23__23_table_2d_copy ___H_table_2d_copy ___H__23__23_table_2d_merge_21_
___H_table_2d_merge_21_ ___H__23__23_table_2d_merge ___H_table_2d_merge
___H__23__23_table_2d_equal_3f_ ___H__23__23_table_2d_equal_3f__2d_hash
___H__23__23_fail_2d_check_2d_unbound_2d_serial_2d_number_2d_exception
___H_unbound_2d_serial_2d_number_2d_exception_3f_
___H_unbound_2d_serial_2d_number_2d_exception_2d_procedure
___H_unbound_2d_serial_2d_number_2d_exception_2d_arguments
___H__23__23_raise_2d_unbound_2d_serial_2d_number_2d_exception
___H__23__23_object_2d__3e_serial_2d_number ___H_object_2d__3e_serial_2d_number
___H__23__23_serial_2d_number_2d__3e_object ___H_serial_2d_number_2d__3e_object
___H__23__23_object_2d__3e_u8vector {GC 267350k -> 214835k} {GC 430685k ->
259602k} ___H_object_2d__3e_u8vector ___H__23__23_u8vector_2d__3e_object {GC
582086k -> 310231k} ___H_u8vector_2d__3e_object ___setup_mod ___init_mod
___H__23__23_gc_2d_hash_2d_table_2d_set_21_ ___H__23__23_table_2d_set_21_
___H__23__23_gc_2d_hash_2d_table_2d_rehash_21_ ___H__23__23_table_2d_ref
___H__23__23_gc_2d_hash_2d_table_2d_ref ___H__23__23_make_2d_table
___H__23__23_string_2d_ci_3d__3f__2d_hash ____20___system
_GLOBAL__sub_I_00100_0__system.c _GLOBAL__sub_D_00100_1__system.c
Execution times (seconds)
 phase setup             :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall 
  1180 kB ( 0%) ggc
 phase parsing           :   0.30 ( 0%) usr   0.24 (10%) sys   0.53 ( 0%) wall 
 11106 kB ( 1%) ggc
 phase opt and generate  : 231.20 (100%) usr   2.26 (90%) sys 233.89 (100%)
wall 1264764 kB (99%) ggc
 garbage collection      :   1.47 ( 1%) usr   0.01 ( 0%) sys   1.48 ( 1%) wall 
     0 kB ( 0%) ggc
 dump files              :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
     0 kB ( 0%) ggc
 callgraph construction  :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
  5513 kB ( 0%) ggc
 ipa function summary    :   0.04 ( 0%) usr   0.00 ( 0%) sys   0.03 ( 0%) wall 
  1333 kB ( 0%) ggc
 ipa dead code removal   :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
     0 kB ( 0%) ggc
 ipa profile             :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
  2764 kB ( 0%) ggc
 ipa pure const          :   0.08 ( 0%) usr   0.00 ( 0%) sys   0.06 ( 0%) wall 
     0 kB ( 0%) ggc
 cfg construction        :   0.41 ( 0%) usr   0.00 ( 0%) sys   0.39 ( 0%) wall 
   463 kB ( 0%) ggc
 cfg cleanup             :   7.07 ( 3%) usr   0.00 ( 0%) sys   6.98 ( 3%) wall 
    19 kB ( 0%) ggc
 trivially dead code     :   0.42 ( 0%) usr   0.00 ( 0%) sys   0.40 ( 0%) wall 
     0 kB ( 0%) ggc
 df scan insns           :   0.65 ( 0%) usr   0.00 ( 0%) sys   0.68 ( 0%) wall 
     5 kB ( 0%) ggc
 df multiple defs        :   3.41 ( 1%) usr   0.02 ( 1%) sys   3.41 ( 1%) wall 
     0 kB ( 0%) ggc
 df reaching defs        :   0.02 ( 0%) usr   0.01 ( 0%) sys   0.04 ( 0%) wall 
     0 kB ( 0%) ggc
 df live regs            :  10.87 ( 5%) usr   0.01 ( 0%) sys  10.84 ( 5%) wall 
     0 kB ( 0%) ggc
 df live&initialized regs:   5.22 ( 2%) usr   0.00 ( 0%) sys   5.22 ( 2%) wall 
     0 kB ( 0%) ggc
 df use-def / def-use chains:   0.01 ( 0%) usr   0.00 ( 0%) sys   0.00 ( 0%)
wall       0 kB ( 0%) ggc
 df reg dead/unused notes:   3.39 ( 1%) usr   0.01 ( 0%) sys   3.41 ( 1%) wall 
 23596 kB ( 2%) ggc
 register information    :   0.66 ( 0%) usr   0.00 ( 0%) sys   0.64 ( 0%) wall 
     0 kB ( 0%) ggc
 alias analysis          :   1.44 ( 1%) usr   0.00 ( 0%) sys   1.42 ( 1%) wall 
 50694 kB ( 4%) ggc
 alias stmt walking      :  25.60 (11%) usr   0.36 (14%) sys  25.17 (11%) wall 
  1121 kB ( 0%) ggc
 register scan           :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.06 ( 0%) wall 
    41 kB ( 0%) ggc
 rebuild jump labels     :   0.21 ( 0%) usr   0.00 ( 0%) sys   0.19 ( 0%) wall 
     0 kB ( 0%) ggc
 preprocessing           :   0.07 ( 0%) usr   0.06 ( 2%) sys   0.16 ( 0%) wall 
  1080 kB ( 0%) ggc
 lexical analysis        :   0.10 ( 0%) usr   0.08 ( 3%) sys   0.10 ( 0%) wall 
     0 kB ( 0%) ggc
 parser (global)         :   0.04 ( 0%) usr   0.03 ( 1%) sys   0.07 ( 0%) wall 
  1542 kB ( 0%) ggc
 parser struct body      :   0.00 ( 0%) usr   0.01 ( 0%) sys   0.00 ( 0%) wall 
   324 kB ( 0%) ggc
 parser function body    :   0.09 ( 0%) usr   0.06 ( 2%) sys   0.20 ( 0%) wall 
  8135 kB ( 1%) ggc
 inline parameters       :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
  1071 kB ( 0%) ggc
 tree gimplify           :   0.08 ( 0%) usr   0.00 ( 0%) sys   0.09 ( 0%) wall 
  5494 kB ( 0%) ggc
 tree CFG construction   :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
  1895 kB ( 0%) ggc
 tree CFG cleanup        :   3.07 ( 1%) usr   0.00 ( 0%) sys   3.14 ( 1%) wall 
    78 kB ( 0%) ggc
 tree copy propagation   :   0.92 ( 0%) usr   0.00 ( 0%) sys   0.92 ( 0%) wall 
   194 kB ( 0%) ggc
 tree PTA                :   0.16 ( 0%) usr   0.00 ( 0%) sys   0.23 ( 0%) wall 
   208 kB ( 0%) ggc
 tree PHI insertion      :   0.01 ( 0%) usr   0.01 ( 0%) sys   0.02 ( 0%) wall 
  2265 kB ( 0%) ggc
 tree SSA rewrite        :   1.30 ( 1%) usr   0.01 ( 0%) sys   1.34 ( 1%) wall 
 17229 kB ( 1%) ggc
 tree SSA other          :   0.02 ( 0%) usr   0.01 ( 0%) sys   0.02 ( 0%) wall 
    17 kB ( 0%) ggc
 tree SSA incremental    :   2.92 ( 1%) usr   0.04 ( 2%) sys   2.96 ( 1%) wall 
108528 kB ( 8%) ggc
 tree operand scan       :   0.16 ( 0%) usr   0.03 ( 1%) sys   0.10 ( 0%) wall 
 21599 kB ( 2%) ggc
 dominator optimization  :   3.81 ( 2%) usr   0.01 ( 0%) sys   4.65 ( 2%) wall 
 27533 kB ( 2%) ggc
 tree SRA                :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall 
     0 kB ( 0%) ggc
 tree CCP                :   0.07 ( 0%) usr   0.00 ( 0%) sys   0.05 ( 0%) wall 
   177 kB ( 0%) ggc
 tree PHI const/copy prop:   0.18 ( 0%) usr   0.00 ( 0%) sys   0.17 ( 0%) wall 
  5439 kB ( 0%) ggc
 tree split crit edges   :   1.38 ( 1%) usr   0.00 ( 0%) sys   1.36 ( 1%) wall 
 77179 kB ( 6%) ggc
 tree reassociation      :   0.27 ( 0%) usr   0.00 ( 0%) sys   0.28 ( 0%) wall 
     8 kB ( 0%) ggc
 tree FRE                :   0.14 ( 0%) usr   0.00 ( 0%) sys   0.19 ( 0%) wall 
  1310 kB ( 0%) ggc
 tree code sinking       :   0.32 ( 0%) usr   0.00 ( 0%) sys   0.31 ( 0%) wall 
     0 kB ( 0%) ggc
 tree linearize phis     :   0.17 ( 0%) usr   0.00 ( 0%) sys   0.16 ( 0%) wall 
   131 kB ( 0%) ggc
 tree backward propagate :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
     0 kB ( 0%) ggc
 tree forward propagate  :   2.56 ( 1%) usr   0.00 ( 0%) sys   2.64 ( 1%) wall 
   288 kB ( 0%) ggc
 tree conservative DCE   :   0.80 ( 0%) usr   0.02 ( 1%) sys   0.76 ( 0%) wall 
    84 kB ( 0%) ggc
 tree aggressive DCE     :   0.60 ( 0%) usr   0.02 ( 1%) sys   0.71 ( 0%) wall 
  2225 kB ( 0%) ggc
 tree DSE                :   0.30 ( 0%) usr   0.00 ( 0%) sys   0.28 ( 0%) wall 
     8 kB ( 0%) ggc
 tree loop invariant motion:  40.96 (18%) usr   0.27 (11%) sys  41.41 (18%)
wall  209802 kB (16%) ggc
 tree canonical iv       :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
    17 kB ( 0%) ggc
 scev constant prop      :   1.40 ( 1%) usr   0.01 ( 0%) sys   1.42 ( 1%) wall 
 19981 kB ( 2%) ggc
 tree iv optimization    :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall 
   296 kB ( 0%) ggc
 tree SSA uncprop        :   0.46 ( 0%) usr   0.00 ( 0%) sys   0.45 ( 0%) wall 
     0 kB ( 0%) ggc
 dominance frontiers     :   0.55 ( 0%) usr   0.01 ( 0%) sys   0.54 ( 0%) wall 
     0 kB ( 0%) ggc
 dominance computation   :   5.36 ( 2%) usr   0.01 ( 0%) sys   5.27 ( 2%) wall 
     0 kB ( 0%) ggc
 out of ssa              :  26.58 (11%) usr   0.96 (38%) sys  27.56 (12%) wall 
  4461 kB ( 0%) ggc
 expand vars             :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
   999 kB ( 0%) ggc
 expand                  :   4.32 ( 2%) usr   0.12 ( 5%) sys   4.47 ( 2%) wall 
184816 kB (14%) ggc
 post expand cleanups    :   0.76 ( 0%) usr   0.00 ( 0%) sys   0.77 ( 0%) wall 
   337 kB ( 0%) ggc
 forward prop            :   2.92 ( 1%) usr   0.01 ( 0%) sys   3.00 ( 1%) wall 
 14617 kB ( 1%) ggc
 CSE                     :   1.98 ( 1%) usr   0.03 ( 1%) sys   2.06 ( 1%) wall 
 16860 kB ( 1%) ggc
 dead code elimination   :   0.86 ( 0%) usr   0.00 ( 0%) sys   0.84 ( 0%) wall 
     0 kB ( 0%) ggc
 dead store elim1        :   2.43 ( 1%) usr   0.00 ( 0%) sys   2.43 ( 1%) wall 
 11087 kB ( 1%) ggc
 dead store elim2        :   3.04 ( 1%) usr   0.00 ( 0%) sys   3.03 ( 1%) wall 
 35846 kB ( 3%) ggc
 loop analysis           :   0.04 ( 0%) usr   0.00 ( 0%) sys   0.04 ( 0%) wall 
     0 kB ( 0%) ggc
 loop init               :   2.44 ( 1%) usr   0.00 ( 0%) sys   2.52 ( 1%) wall 
  1031 kB ( 0%) ggc
 loop invariant motion   :   0.10 ( 0%) usr   0.00 ( 0%) sys   0.09 ( 0%) wall 
   224 kB ( 0%) ggc
 loop fini               :   0.18 ( 0%) usr   0.00 ( 0%) sys   0.15 ( 0%) wall 
     0 kB ( 0%) ggc
 branch prediction       :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
   268 kB ( 0%) ggc
 combiner                :   1.49 ( 1%) usr   0.01 ( 0%) sys   1.47 ( 1%) wall 
  4746 kB ( 0%) ggc
 if-conversion           :   2.70 ( 1%) usr   0.00 ( 0%) sys   2.73 ( 1%) wall 
 46824 kB ( 4%) ggc
 integrated RA           :   9.59 ( 4%) usr   0.03 ( 1%) sys   9.69 ( 4%) wall 
164161 kB (13%) ggc
 LRA non-specific        :  11.22 ( 5%) usr   0.05 ( 2%) sys  11.20 ( 5%) wall 
 52521 kB ( 4%) ggc
 LRA virtuals elimination:   1.67 ( 1%) usr   0.05 ( 2%) sys   1.71 ( 1%) wall 
 30963 kB ( 2%) ggc
 LRA reload inheritance  :   0.04 ( 0%) usr   0.00 ( 0%) sys   0.05 ( 0%) wall 
    10 kB ( 0%) ggc
 LRA create live ranges  :  14.05 ( 6%) usr   0.00 ( 0%) sys  14.07 ( 6%) wall 
  4517 kB ( 0%) ggc
 LRA hard reg assignment :   0.87 ( 0%) usr   0.00 ( 0%) sys   0.91 ( 0%) wall 
     0 kB ( 0%) ggc
 LRA coalesce pseudo regs:   0.01 ( 0%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
     0 kB ( 0%) ggc
 reload                  :   0.04 ( 0%) usr   0.00 ( 0%) sys   0.05 ( 0%) wall 
     0 kB ( 0%) ggc
 reload CSE regs         :   1.79 ( 1%) usr   0.01 ( 0%) sys   1.87 ( 1%) wall 
 27472 kB ( 2%) ggc
 thread pro- & epilogue  :   0.67 ( 0%) usr   0.00 ( 0%) sys   0.67 ( 0%) wall 
   521 kB ( 0%) ggc
 if-conversion 2         :   0.42 ( 0%) usr   0.00 ( 0%) sys   0.42 ( 0%) wall 
     0 kB ( 0%) ggc
 combine stack adjustments:   0.22 ( 0%) usr   0.00 ( 0%) sys   0.25 ( 0%) wall
      0 kB ( 0%) ggc
 hard reg cprop          :   0.48 ( 0%) usr   0.04 ( 2%) sys   0.55 ( 0%) wall 
     3 kB ( 0%) ggc
 scheduling 2            :   4.38 ( 2%) usr   0.03 ( 1%) sys   4.43 ( 2%) wall 
  4136 kB ( 0%) ggc
 machine dep reorg       :   0.04 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
     0 kB ( 0%) ggc
 reorder blocks          :   1.56 ( 1%) usr   0.00 ( 0%) sys   1.57 ( 1%) wall 
  8368 kB ( 1%) ggc
 shorten branches        :   0.49 ( 0%) usr   0.00 ( 0%) sys   0.49 ( 0%) wall 
     0 kB ( 0%) ggc
 final                   :   1.40 ( 1%) usr   0.03 ( 1%) sys   1.45 ( 1%) wall 
 60062 kB ( 5%) ggc
 variable output         :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall 
   142 kB ( 0%) ggc
 straight-line strength reduction:   0.33 ( 0%) usr   0.00 ( 0%) sys   0.32 (
0%) wall      30 kB ( 0%) ggc
 initialize rtl          :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall 
    12 kB ( 0%) ggc
 rest of compilation     :   2.60 ( 1%) usr   0.02 ( 1%) sys   2.60 ( 1%) wall 
   621 kB ( 0%) ggc
 remove unused locals    :   0.23 ( 0%) usr   0.00 ( 0%) sys   0.24 ( 0%) wall 
     0 kB ( 0%) ggc
 repair loop structures  :   0.08 ( 0%) usr   0.00 ( 0%) sys   0.10 ( 0%) wall 
     0 kB ( 0%) ggc
 TOTAL                 : 231.50             2.50           234.43           
1277059 kB
>From gcc-bugs-return-572691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 18 23:57:08 2017
Return-Path: <gcc-bugs-return-572691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40419 invoked by alias); 18 Aug 2017 23:57: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 32484 invoked by uid 55); 18 Aug 2017 23:57:01 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/46805] ICE: SIGSEGV in optab_for_tree_code (optabs.c:407) with -O -fno-tree-scev-cprop -ftree-vectorize
Date: Sat, 19 Aug 2017 12:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm 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-46805-4-5XFKF5wm6J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-46805-4@http.gcc.gnu.org/bugzilla/>
References: <bug-46805-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02250.txt.bz2
Content-length: 1003

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

--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Fri Aug 18 23:56:28 2017
New Revision: 251192

URL: https://gcc.gnu.org/viewcvs?rev=251192&root=gcc&view=rev
Log:
jit: fix segfault with autovectorization (PR tree-optimization/46805)

libgccjit ran into its own version of PR tree-optimization/46805 (seen
with the Go frontend); this patch fixes it in the same way.

gcc/jit/ChangeLog:
        PR tree-optimization/46805
        * dummy-frontend.c (jit_langhook_parse_file): Handle vector types.

gcc/testsuite/ChangeLog:
        PR tree-optimization/46805
        * jit.dg/all-non-failing-tests.h: Add test-autovectorize.c.
        * jit.dg/test-autovectorize.c: New test case.


Added:
    trunk/gcc/testsuite/jit.dg/test-autovectorize.c
Modified:
    trunk/gcc/jit/ChangeLog
    trunk/gcc/jit/dummy-frontend.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/jit.dg/all-non-failing-tests.h
>From gcc-bugs-return-572693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 02:02:01 2017
Return-Path: <gcc-bugs-return-572693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118308 invoked by alias); 19 Aug 2017 02:01: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 34740 invoked by uid 48); 19 Aug 2017 01:59:56 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80210] ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow
Date: Sat, 19 Aug 2017 12:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80210-4-ocxw52zlKO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02252.txt.bz2
Content-length: 261

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

--- Comment #8 from Peter Bergner <bergner at gcc dot gnu.org> ---
Fixed on trunk.  I'm testing backports to the open release branches and will
commit them after the trunk patch has aged a bit (next week?).
>From gcc-bugs-return-572694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 03:27:55 2017
Return-Path: <gcc-bugs-return-572694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45805 invoked by alias); 19 Aug 2017 03:27: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 45756 invoked by uid 55); 19 Aug 2017 03:27:48 -0000
From: "hpa at zytor dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Sat, 19 Aug 2017 12:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: hpa at zytor 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:
Message-ID: <bug-53037-4-WasvCc29hr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02253.txt.bz2
Content-length: 1673

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

--- Comment #30 from H. Peter Anvin <hpa at zytor dot com> ---
On August 18, 2017 3:52:12 PM CDT, "hjl.tools at gmail dot com"
<gcc-bugzilla@gcc.gnu.org> wrote:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53037
>
>--- Comment #29 from H.J. Lu <hjl.tools at gmail dot com> ---
>(In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #28)
>> > --- Comment #27 from H.J. Lu <hjl.tools at gmail dot com> ---
>> 
>> > What are error messages?
>> 
>> None, the warnings are simply missing.
>> 
>> 	Rainer
>
>Sparc defines STRICT_ALIGNMENT which leads to
>
>      unsigned mode_align = GET_MODE_ALIGNMENT (TYPE_MODE (type));
>
>    /* Don't override a larger alignment requirement coming from a user
>         alignment of one of the fields.  */
>      if (mode_align >= TYPE_ALIGN (type))
>        {
>          SET_TYPE_ALIGN (type, mode_align);
>          TYPE_USER_ALIGN (type) = 0; 
>        }
>
>so __attribute__ ((packed)) is basically ignored on Sparc.  This patch
>
>diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
>index 3028d55773a..6dd605810ac 100644
>--- a/gcc/stor-layout.c
>+++ b/gcc/stor-layout.c
>@@ -1784,7 +1784,7 @@ finalize_type_size (tree type)
>
>    /* Don't override a larger alignment requirement coming from a user
>    alignment of one of the fields.  */
>-      if (mode_align >= TYPE_ALIGN (type))
>+      if (mode_align > TYPE_ALIGN (type))
>   {
>     SET_TYPE_ALIGN (type, mode_align);
>     TYPE_USER_ALIGN (type) = 0;
>
>works with cross compiler.  But I have no idea if it is correct.

Ignoring __attribute__((packed)) I would consider to be a super serious error.
>From gcc-bugs-return-572695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 06:39:57 2017
Return-Path: <gcc-bugs-return-572695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66570 invoked by alias); 19 Aug 2017 06: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 66156 invoked by uid 48); 19 Aug 2017 06:39:03 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/81886] Means to determine at runtime foffload targets specified at compile time
Date: Sat, 19 Aug 2017 12:09: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:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81886-4-Ujzy4V1iMD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81886-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02254.txt.bz2
Content-length: 241

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

--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
AFAICT, this is the last version of the patch that was submitted:
https://gcc.gnu.org/ml/gcc-patches/2015-10/msg01771.html
>From gcc-bugs-return-572696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 08:20:59 2017
Return-Path: <gcc-bugs-return-572696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64955 invoked by alias); 19 Aug 2017 08:20: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 64887 invoked by uid 55); 19 Aug 2017 08:20:53 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81894] Typo in x86 built-in function list
Date: Sat, 19 Aug 2017 12:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81894-4-61MuHulQxn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02255.txt.bz2
Content-length: 437

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

--- Comment #2 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Aug 19 08:20:20 2017
New Revision: 251197

URL: https://gcc.gnu.org/viewcvs?rev=251197&root=gcc&view=rev
Log:
        PR target/81894
        * doc/extend.texi (x86 Built-in Functions): Correct the name of
        __builtin_ia32_lzcnt_u16.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/extend.texi
>From gcc-bugs-return-572697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 08:23:45 2017
Return-Path: <gcc-bugs-return-572697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68855 invoked by alias); 19 Aug 2017 08:23: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 68770 invoked by uid 55); 19 Aug 2017 08:23:38 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81894] Typo in x86 built-in function list
Date: Sat, 19 Aug 2017 12:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81894-4-S7qW0haOZt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02256.txt.bz2
Content-length: 469

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

--- Comment #3 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Aug 19 08:22:54 2017
New Revision: 251198

URL: https://gcc.gnu.org/viewcvs?rev=251198&root=gcc&view=rev
Log:
        PR target/81894
        * doc/extend.texi (x86 Built-in Functions): Correct the name of
        __builtin_ia32_lzcnt_u16.


Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/doc/extend.texi
>From gcc-bugs-return-572698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 08:25:17 2017
Return-Path: <gcc-bugs-return-572698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71014 invoked by alias); 19 Aug 2017 08:25: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 70741 invoked by uid 55); 19 Aug 2017 08:25:11 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81894] Typo in x86 built-in function list
Date: Sat, 19 Aug 2017 12:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81894-4-4zMfxw804b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02257.txt.bz2
Content-length: 469

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

--- Comment #4 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Aug 19 08:23:56 2017
New Revision: 251199

URL: https://gcc.gnu.org/viewcvs?rev=251199&root=gcc&view=rev
Log:
        PR target/81894
        * doc/extend.texi (x86 Built-in Functions): Correct the name of
        __builtin_ia32_lzcnt_u16.


Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/doc/extend.texi
>From gcc-bugs-return-572699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 08:26:19 2017
Return-Path: <gcc-bugs-return-572699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76877 invoked by alias); 19 Aug 2017 08:26: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 73654 invoked by uid 55); 19 Aug 2017 08:25:52 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81894] Typo in x86 built-in function list
Date: Sat, 19 Aug 2017 14:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81894-4-D4hzU4ybAh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02258.txt.bz2
Content-length: 469

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

--- Comment #5 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Aug 19 08:25:14 2017
New Revision: 251200

URL: https://gcc.gnu.org/viewcvs?rev=251200&root=gcc&view=rev
Log:
        PR target/81894
        * doc/extend.texi (x86 Built-in Functions): Correct the name of
        __builtin_ia32_lzcnt_u16.


Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/doc/extend.texi
>From gcc-bugs-return-572700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 08:26:33 2017
Return-Path: <gcc-bugs-return-572700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77679 invoked by alias); 19 Aug 2017 08:26: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 77633 invoked by uid 48); 19 Aug 2017 08:26:28 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81894] Typo in x86 built-in function list
Date: Sat, 19 Aug 2017 15:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution assigned_to target_milestone
Message-ID: <bug-81894-4-ivRjodbGHW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81894-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02259.txt.bz2
Content-length: 565

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com
   Target Milestone|---                         |5.5

--- Comment #6 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed.
>From gcc-bugs-return-572701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 10:43:47 2017
Return-Path: <gcc-bugs-return-572701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12261 invoked by alias); 19 Aug 2017 10:43: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 12095 invoked by uid 48); 19 Aug 2017 10:43:35 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/80529] Split "C++ style comments are not allowed in ISO C90" pedwarn into its own warning flag
Date: Sat, 19 Aug 2017 17:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu 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-80529-4-nfvcljoztI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80529-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80529-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02260.txt.bz2
Content-length: 948

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #3)
> Because I'm not childish and realise that clang-tidy is a better tool than a
> compiler when you want to enforce style guides.

In fact, the effort and time spent on adding more and more warnings about style
would be better spent on creating a gcc-tidy tool. Even adding a flag for an
existing warning has a cost.

Having a gcc-tidy tool would benefit gcc by encouraging abstraction and
modularization, and benefit users by making easier to add any particular style
warnings.
>From gcc-bugs-return-572702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 11:06:35 2017
Return-Path: <gcc-bugs-return-572702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36193 invoked by alias); 19 Aug 2017 11:06: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 36052 invoked by uid 48); 19 Aug 2017 11:06:27 -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: Sat, 19 Aug 2017 18:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81787-4-VGdveGMrzp@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-08/txt/msg02261.txt.bz2
Content-length: 2170

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
struct T { int c; char d[]; };                                                  

#pragma GCC diagnostic push                                                     
#pragma GCC diagnostic ignored "-fpermissive"                                   
struct T t1 = { 1, "a" };                                                       

#pragma GCC diagnostic pop                                                      
struct T t = { 1, "a" };


This is not a bug and it was never meant to work. If it did, it was by chance
rather than by design.

warning: '-fpermissive' is not an option that controls warnings [-Wpragmas]

Similarly, one cannot use -Werror=permissive nor -Wno-error=permissive.

-fpermissive is an odd C++-only option and the warnings it generates cannot be
disabled.

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.

Thus, either this is not a bug because -fpermissive is not an -W* option, or
-fpermissive should be reimplemented as -Wpermissive (with a default of
-Werror=permissive).
>From gcc-bugs-return-572703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 11:08:44 2017
Return-Path: <gcc-bugs-return-572703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40009 invoked by alias); 19 Aug 2017 11: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 39951 invoked by uid 48); 19 Aug 2017 11:08:29 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81899] New: [8 Regression] ICE: Segmentation fault
Date: Sat, 19 Aug 2017 18:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02262.txt.bz2
Content-length: 2380

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

            Bug ID: 81899
           Summary: [8 Regression] ICE: Segmentation fault
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
  Target Milestone: ---

% cat auto_switch_lexerstate.ii
template <int> struct bool_;
template <typename = bool_<0>> struct token;
template <typename,
          template <typename, typename, typename, typename> class FunctorData,
          typename>
struct functor {
  friend FunctorData<int, int, int, int>;
  void foo();
};
template <typename, typename, typename, typename> struct data;
template<> void functor<token<>, data, bool_<0>>::foo();

 % g++ -c auto_switch_lexerstate.ii
auto_switch_lexerstate.ii: In instantiation of ‘struct functor<token<>, data,
bool_<0> >’:
auto_switch_lexerstate.ii:11:49:   required from here
auto_switch_lexerstate.ii:6:16: internal compiler error: Segmentation fault
 struct functor {
                ^
0x10ba3023 crash_signal
        ../../gcc/gcc/toplev.c:341
0x1044d53c instantiate_class_template_1
        ../../gcc/gcc/cp/pt.c:10727
0x1044d53c instantiate_class_template(tree_node*)
        ../../gcc/gcc/cp/pt.c:10892
0x104c1ceb complete_type(tree_node*)
        ../../gcc/gcc/cp/typeck.c:136
0x103a69e7 cp_parser_nested_name_specifier_opt
        ../../gcc/gcc/cp/parser.c:6269
0x103a7833 cp_parser_nested_name_specifier
        ../../gcc/gcc/cp/parser.c:6332
0x103a794b cp_parser_ptr_operator
        ../../gcc/gcc/cp/parser.c:20451
0x103aac0b cp_parser_declarator
        ../../gcc/gcc/cp/parser.c:19771
0x103bf7ab cp_parser_init_declarator
        ../../gcc/gcc/cp/parser.c:19335
0x103c0b53 cp_parser_single_declaration
        ../../gcc/gcc/cp/parser.c:27053
0x103c1d73 cp_parser_explicit_specialization
        ../../gcc/gcc/cp/parser.c:16619
0x103ce603 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:12720
0x103cc6ef cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:12650
0x103ccaeb cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4387
0x103ccaeb c_parse_file()
        ../../gcc/gcc/cp/parser.c:38894
0x10563ee7 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1106
>From gcc-bugs-return-572704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 11:08:54 2017
Return-Path: <gcc-bugs-return-572704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40911 invoked by alias); 19 Aug 2017 11:08: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 40700 invoked by uid 48); 19 Aug 2017 11:08:49 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81899] [8 Regression] ICE: Segmentation fault
Date: Sat, 19 Aug 2017 18: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: 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: 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 target_milestone everconfirmed
Message-ID: <bug-81899-4-WNqwQeJLLS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02263.txt.bz2
Content-length: 530

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-19
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1
>From gcc-bugs-return-572705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 11:25:26 2017
Return-Path: <gcc-bugs-return-572705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38628 invoked by alias); 19 Aug 2017 11: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 38480 invoked by uid 48); 19 Aug 2017 11:25:15 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52801] improve selective typedef unwrapping
Date: Sat, 19 Aug 2017 18:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic, error-recovery
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:
Message-ID: <bug-52801-4-FwSVZfBS3e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52801-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52801-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02264.txt.bz2
Content-length: 764

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

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #1)
> Confirmed that the notes could ease up on the template spew; g++ output is
> now:

Note that I'm not complaining about the redundant notes listing the declaration
of the candidates (which are the subject of a different PR that I cannot find
right now). 

The object of improvement here is:

no known conversion from 'vector<Real>' to 'const std::basic_string<char>'

versus

no known conversion for argument 1 from ‘std::vector<double>’ to ‘const
std::__cxx11::basic_string<char>&’

On the latter, gcc is excessively unwrapping typedef.
>From gcc-bugs-return-572706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 11:32:47 2017
Return-Path: <gcc-bugs-return-572706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48599 invoked by alias); 19 Aug 2017 11:32: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 48504 invoked by uid 48); 19 Aug 2017 11:32:41 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81899] [8 Regression] ICE: Segmentation fault
Date: Sat, 19 Aug 2017 19:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: 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-81899-4-vjBa9mXZTf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02265.txt.bz2
Content-length: 846

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

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

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

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Started with r251154:

commit 49a669e2fa6641bb1bb93b21d866962d3999dd07
Author: nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Aug 17 15:56:49 2017 +0000

            * lex.c (maybe_add_lang_type_raw): BOUND_TEMPLATE_TEMPLATE_PARMs
            don't need lang_type.
            (cxx_make_type): Use maybe_add_lang_type_raw return value.
            * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Don't rely on
            TYPE_LANG_SPECIFIC.
>From gcc-bugs-return-572707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 11:33:27 2017
Return-Path: <gcc-bugs-return-572707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49713 invoked by alias); 19 Aug 2017 11:33: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 49557 invoked by uid 48); 19 Aug 2017 11:33:09 -0000
From: "pipcet at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] New: GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Sat, 19 Aug 2017 20:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pipcet at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02266.txt.bz2
Content-length: 4089

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

            Bug ID: 81900
           Summary: GCC trunk miscompiles Perl / __sigsetjmp issue
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pipcet at gmail dot com
  Target Milestone: ---

Created attachment 42007
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42007&action=edit
creduce-minimized test case

Hi,

I'm having trouble running a GCC/trunk-compiled Perl; I first noticed
the problem on my WebAssembly port, but I think I can reproduce it on
x86_64 built from the standard GCC tree. I also think this is a GCC
bug.

After some editing, I've managed to generate a (somewhat) minimized
testcase:

Perl_croak() __attribute__((noreturn));
*Perl_sv_gets();
a() {
  __sigsetjmp();
  char *b;
  if ((b = Perl_sv_gets()) == 0)
    Perl_croak("No Perl script found in input\n");
  if (*b == '#')
    __asm__("" : : ""("badbad"));
}

The intended behaviour is that Perl_sv_gets() can return a NULL
pointer, in which case the pointer isn't dereferenced and Perl_croak()
is called instead.  However, the assembly output I get is:

        xorl    %eax, %eax
        call    __sigsetjmp
        xorl    %eax, %eax
        call    Perl_sv_gets
        cmpb    $35, (%rax)

The call to Perl_croak has been removed, and the return value of
Perl_sv_gets() is unconditionally dereferenced.  That's wrong, right?

I'm compiling with:

$ ~/git/asmjs/subrepos/gcc/host-x86_64-pc-linux-gnu/gcc/xgcc -B
/home/pip/git/asmjs/subrepos/gcc/host-x86_64-pc-linux-gnu/gcc/ -v -S
-DPERL_CORE -fwrapv -std=c89 -O3 -fno-strict-aliasing -w -Wfatal-errors
testcase.i -o tmp.s || exit 1
Reading specs from
/home/pip/git/asmjs/subrepos/gcc/host-x86_64-pc-linux-gnu/gcc/specs
COLLECT_GCC=/home/pip/git/asmjs/subrepos/gcc/host-x86_64-pc-linux-gnu/gcc/xgcc
Target: x86_64-pc-linux-gnu
Configured with: ./configure --target=x86_64-pc-linux-gnu --disable-bootstrap
--enable-languages=c
Thread model: posix
gcc version 8.0.0 20170819 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-B'
'/home/pip/git/asmjs/subrepos/gcc/host-x86_64-pc-linux-gnu/gcc/' '-v' '-S' '-D'
'PERL_CORE' '-fwrapv' '-std=c90' '-O3' '-fno-strict-aliasing' '-w'
'-Wfatal-errors' '-o' 'tmp.s' '-mtune=generic' '-march=x86-64'
 /home/pip/git/asmjs/subrepos/gcc/host-x86_64-pc-linux-gnu/gcc/cc1
-fpreprocessed testcase.i -quiet -dumpbase testcase.i -mtune=generic
-march=x86-64 -auxbase-strip tmp.s -O3 -Wfatal-errors -w -std=c90 -version
-fwrapv -fno-strict-aliasing -o tmp.s
GNU C89 (GCC) version 8.0.0 20170819 (experimental) (x86_64-pc-linux-gnu)
        compiled by GNU C version 6.4.0 20170724, GMP version 6.1.2, MPFR
version 3.1.5, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C89 (GCC) version 8.0.0 20170819 (experimental) (x86_64-pc-linux-gnu)
        compiled by GNU C version 6.4.0 20170724, GMP version 6.1.2, MPFR
version 3.1.5, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: d531daafd687d9500452e3b103d32887
COMPILER_PATH=/home/pip/git/asmjs/subrepos/gcc/host-x86_64-pc-linux-gnu/gcc/
LIBRARY_PATH=/home/pip/git/asmjs/subrepos/gcc/host-x86_64-pc-linux-gnu/gcc/:/lib/x86_64-linux-gnu/:/lib/../lib64/:/usr/lib/x86_64-linux-gnu/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-B'
'/home/pip/git/asmjs/subrepos/gcc/host-x86_64-pc-linux-gnu/gcc/' '-v' '-S' '-D'
'PERL_CORE' '-fwrapv' '-std=c90' '-O3' '-fno-strict-aliasing' '-w'
'-Wfatal-errors' '-o' 'tmp.s' '-mtune=generic' '-march=x86-64'




The call to sigsetjmp appears to be necessary to trigger the bug.

Sorry if this is a duplicate or a known issue; right now, I don't have
the time to investigate further. The call appears to be eliminated in a tree
optimization pass, so I'm tentatively choosing that component.
>From gcc-bugs-return-572708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 12:03:38 2017
Return-Path: <gcc-bugs-return-572708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101290 invoked by alias); 19 Aug 2017 12: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 100999 invoked by uid 48); 19 Aug 2017 12:03:31 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80650] #pragma do not control -Wcpp
Date: Sat, 19 Aug 2017 20:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu 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-80650-4-G5Ap9D36Mb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80650-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80650-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02267.txt.bz2
Content-length: 601

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Dup

*** This bug has been marked as a duplicate of bug 53431 ***
>From gcc-bugs-return-572709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 12:03:46 2017
Return-Path: <gcc-bugs-return-572709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101544 invoked by alias); 19 Aug 2017 12:03:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 101332 invoked by uid 48); 19 Aug 2017 12:03:37 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic
Date: Sat, 19 Aug 2017 21:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
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: cc
Message-ID: <bug-53431-4-NIdVJoyT4e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02268.txt.bz2
Content-length: 490

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |akim.demaille at gmail dot com

--- Comment #30 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
*** Bug 80650 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-572710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 12:06:23 2017
Return-Path: <gcc-bugs-return-572710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106989 invoked by alias); 19 Aug 2017 12:06:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 106889 invoked by uid 48); 19 Aug 2017 12:06:18 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/79701] #pragma ignored "-Wcomment" has no effect
Date: Sat, 19 Aug 2017 21:55: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu 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-79701-4-YY0j0oElUx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79701-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79701-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02269.txt.bz2
Content-length: 601

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Dup

*** This bug has been marked as a duplicate of bug 53431 ***
>From gcc-bugs-return-572711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 12:06:28 2017
Return-Path: <gcc-bugs-return-572711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107443 invoked by alias); 19 Aug 2017 12:06: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 106987 invoked by uid 48); 19 Aug 2017 12:06:22 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic
Date: Sat, 19 Aug 2017 22:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
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: cc
Message-ID: <bug-53431-4-ScZKaEVLyv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02270.txt.bz2
Content-length: 478

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |damien at iwi dot me

--- Comment #31 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
*** Bug 79701 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-572712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 12:09:02 2017
Return-Path: <gcc-bugs-return-572712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109887 invoked by alias); 19 Aug 2017 12:09: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 109688 invoked by uid 48); 19 Aug 2017 12:08:48 -0000
From: "amacleod at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/70879] Missed jump threading opportunity with multiple != conditions
Date: Sat, 19 Aug 2017 22:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: amacleod at redhat 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:
Message-ID: <bug-70879-4-cJuOaGr3bN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70879-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70879-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02271.txt.bz2
Content-length: 181

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

--- Comment #6 from Andrew Macleod <amacleod at redhat dot com> ---
oops, wasnt meant to actually attach that note to this PR.
>From gcc-bugs-return-572713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 12:11:24 2017
Return-Path: <gcc-bugs-return-572713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112349 invoked by alias); 19 Aug 2017 12:11:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112100 invoked by uid 48); 19 Aug 2017 12:11:01 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Sat, 19 Aug 2017 22:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: diagnostic
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: cc
Message-ID: <bug-80472-4-dbK5Vv190G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02272.txt.bz2
Content-length: 857

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Currently, the macro controlling this only looks at the state of the option:

/* Returns nonzero if warnings should be emitted.  */
#define diagnostic_report_warnings_p(DC, LOC)                           \
  (!(DC)->dc_inhibit_warnings                                           \
   && !(in_system_header_at (LOC) && !(DC)->dc_warn_system_headers))

It needs to look at the classification_history like
diagnostic_report_diagnostic() does.
>From gcc-bugs-return-572714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 12:20:14 2017
Return-Path: <gcc-bugs-return-572714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95351 invoked by alias); 19 Aug 2017 12:20: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 92551 invoked by uid 48); 19 Aug 2017 12:20:08 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Sat, 19 Aug 2017 23:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
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: keywords
Message-ID: <bug-80472-4-OPEZxjwGKD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02273.txt.bz2
Content-length: 951

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
It seems pretty straight-forward:

1. Abstract out the check for classification_history.

2. Create a function diagnostic_report_warnings_p that checks the
classification history of Wsystem-headers in addition to the option value.

Not that -Wsystem-headers is not a typical warning option, so more work would
be needed to have

#pragma GCC diagnostic error "-Wsystem-headers"

give errors instead  of warnings

or

-Werror
#pragma GCC diagnostic warning "-Wsystem-headers"

give warnings instead of errors. But that seems less important to fix.
>From gcc-bugs-return-572715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 12:29:14 2017
Return-Path: <gcc-bugs-return-572715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45816 invoked by alias); 19 Aug 2017 12:29:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 45734 invoked by uid 48); 19 Aug 2017 12:29:09 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81334] -Wmisleading-indentation prints notes about being disabled even when already intentionally ignored
Date: Sun, 20 Aug 2017 02:03: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.0
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cc
Message-ID: <bug-81334-4-1jlhR1kauq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81334-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81334-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02274.txt.bz2
Content-length: 590

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |easyhack
                 CC|                            |manu at gcc dot gnu.org

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
It should be a matter of checking for warn_misleading_indentation at
c-family/c-indentation.c:get_visual_column()
>From gcc-bugs-return-572716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 14:06:28 2017
Return-Path: <gcc-bugs-return-572716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117423 invoked by alias); 19 Aug 2017 14:06: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 117378 invoked by uid 48); 19 Aug 2017 14:06:22 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Sun, 20 Aug 2017 03: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: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: ro 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: cc
Message-ID: <bug-53037-4-KBxCBbA1Nw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02275.txt.bz2
Content-length: 1172

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

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

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

--- Comment #31 from Rainer Orth <ro at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #29)
> This patch
> 
> diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
> index 3028d55773a..6dd605810ac 100644
> --- a/gcc/stor-layout.c
> +++ b/gcc/stor-layout.c
> @@ -1784,7 +1784,7 @@ finalize_type_size (tree type)
>  
>        /* Don't override a larger alignment requirement coming from a user
>     alignment of one of the fields.  */
> -      if (mode_align >= TYPE_ALIGN (type))
> +      if (mode_align > TYPE_ALIGN (type))
>    {
>      SET_TYPE_ALIGN (type, mode_align);
>      TYPE_USER_ALIGN (type) = 0;
> 
> works with cross compiler.  But I have no idea if it is correct.

I've included it in a sparc bootstrap and the only effect on testresults was
to fix the set of failures I've reported.

Let's ask Eric for his opinion.

  Rainer
>From gcc-bugs-return-572717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 15:58:33 2017
Return-Path: <gcc-bugs-return-572717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59944 invoked by alias); 19 Aug 2017 15:58:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 59824 invoked by uid 48); 19 Aug 2017 15:58:21 -0000
From: "mikpelinux at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Sun, 20 Aug 2017 05:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikpelinux at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-81900-4-sT3VVl8auH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02276.txt.bz2
Content-length: 700

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

Mikael Pettersson <mikpelinux at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpelinux at gmail dot com

--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Created attachment 42008
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42008&action=edit
executable testcase

Standalone executable testcase, exits 0 when compiled correctly, aborts or
exits 1 otherwise.  Fails for me with gcc-8 on x86_64-linux but works on same
with gcc-7, gcc-6, and gcc-5.
>From gcc-bugs-return-572718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 17:46:31 2017
Return-Path: <gcc-bugs-return-572718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19226 invoked by alias); 19 Aug 2017 17:46:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18977 invoked by uid 48); 19 Aug 2017 17:46:17 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/81794] "would be stringified in traditional C" warning should be controlled by -Wtraditional
Date: Sun, 20 Aug 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: preprocessor
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, easyhack, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81794-4-w1QuuEHfh1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81794-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02277.txt.bz2
Content-length: 350

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #2)
> Please can you turn it into a patch that contains both the fix *and* the new
> testcase?  (e.g. gcc.dg/pragma-diag-8.c)

I will once I get some issues with my email sorted out...
>From gcc-bugs-return-572719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 18:03:55 2017
Return-Path: <gcc-bugs-return-572719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41644 invoked by alias); 19 Aug 2017 18:03:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 41586 invoked by uid 48); 19 Aug 2017 18:03:50 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52801] improve selective typedef unwrapping
Date: Sun, 20 Aug 2017 11:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic, error-recovery
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-52801-4-zgdArnxMAQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52801-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52801-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02278.txt.bz2
Content-length: 1037

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #2)
> (In reply to Eric Gallager from comment #1)
> > Confirmed that the notes could ease up on the template spew; g++ output is
> > now:
> 
> Note that I'm not complaining about the redundant notes listing the
> declaration of the candidates (which are the subject of a different PR that
> I cannot find right now). 
> 
> The object of improvement here is:
> 
> no known conversion from 'vector<Real>' to 'const std::basic_string<char>'
> 
> versus
>  
> no known conversion for argument 1 from ‘std::vector<double>’ to ‘const
> std::__cxx11::basic_string<char>&’
> 
> On the latter, gcc is excessively unwrapping typedef.

There's no typedef involved in those string types (well there is, as it should
show std::string, but not in either form you showed), and the presence of the &
is important.
>From gcc-bugs-return-572720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 18:05:34 2017
Return-Path: <gcc-bugs-return-572720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43160 invoked by alias); 19 Aug 2017 18: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 42944 invoked by uid 48); 19 Aug 2017 18:05:20 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81895] gcc rejects out-of-line definition of enum member of class template under -pedantic-errors
Date: Sun, 20 Aug 2017 11:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81895-4-Udczv75dJz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81895-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02279.txt.bz2
Content-length: 402

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-19
     Ever confirmed|0                           |1
>From gcc-bugs-return-572721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 18:32:33 2017
Return-Path: <gcc-bugs-return-572721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125815 invoked by alias); 19 Aug 2017 18: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 115036 invoked by uid 48); 19 Aug 2017 18:32:23 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52953] function parameter name redeclarations not detected
Date: Sun, 20 Aug 2017 11: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: 4.7.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-52953-4-d1q54IB6v8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52953-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02280.txt.bz2
Content-length: 3983

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to meng from comment #0)
> source code demonstrating the problem.
> ------------------------------- BEGIN ----------------------------
> void f (int i) try
> {
>  void i (); // 1
> }
> catch (...)
> {
>  void i (); // 2
> }
> 
> int main ()
> {
>  return 0;
> }
> -------------------------------  END  ----------------------------
> 
> compiled with :
> $HOME/gcc/4.7.0/bin/c++ -std=c++0x -Wall -O3 tt.cc
> 
> compiler output : 
> nothing
> 
> g++-4.7.0 accepts the code as it is, issuing no warnings and no errors. I
> think this is wrong. According to c++11 3.3.3/2 
> "A parameter name shall not be redeclared in the outermost block of the
> function definition nor in the outermost block of any handler associated
> with a function-try-block."
> 
> In the above example, i is the name of the parameter of function f. The name
> i, therefore, cannot be redeclared in the outermost block of the function
> definition (case 1) nor can it be redeclared in the outermost block of any
> associated handler (case 2). But my g++ accepts both cases while they should
> be rejected.

I can get some other warnings from this but not what you want:

$ /usr/local/bin/g++ -c -std=c++0x -Wall -O3 -Wextra -Wshadow -pedantic
-Wmissing-declarations -Wredundant-decls 52953.c
52953.c:1:6: warning: no previous declaration for ‘void f(int)’
[-Wmissing-declarations]
 void f (int i) try
      ^
52953.c: In function ‘void f(int)’:
52953.c:1:13: warning: unused parameter ‘i’ [-Wunused-parameter]
 void f (int i) try
             ^
$

(In reply to meng from comment #1)
> another example showing violation of c++11 3.3.3/4
> ---------------------------- BEGIN -------------------------------
> int main ()
> {
>  if (int a = 1)
>  {
>   void a (); // 1
>  }
>  else
>  {
>   void a (); // 2
>  }
> 
>  while (int a = 0)
>  {
>   void a (); // 3
>  }
> 
>  for (int a = 0;;)
>  {
>   void a (); // 4
>   break;
>  }
>  for (; int a = 0;)
>  {
>   void a (); // 5
>  }
> 
>  return 0;
> }
> ----------------------------  END  -------------------------------
> 
> According to my understanding, all numbered cases are illegal based on c++11
> 3.3.3/4.g++-4.7.0 correctly caught case 3 and 5 as compiler errors, the rest
> are accepted.

Yup, 3 and 5 are still the only ones that error:

$ /usr/local/bin/g++ -c -std=c++0x -Wall -O3 -Wextra -Wshadow -pedantic
-Wmissing-declarations -Wredundant-decls 52953_2.c
52953_2.c: In function ‘int main()’:
52953_2.c:3:10: warning: unused variable ‘a’ [-Wunused-variable]
  if (int a = 1)
          ^
52953_2.c:14:11: error: ‘void a()’ redeclared as different kind of symbol
   void a (); // 3
           ^
52953_2.c:12:13: note: previous declaration ‘int a’
  while (int a = 0)
             ^
52953_2.c:12:13: warning: unused variable ‘a’ [-Wunused-variable]
52953_2.c:17:11: warning: unused variable ‘a’ [-Wunused-variable]
  for (int a = 0;;)
           ^
52953_2.c:24:11: error: ‘void a()’ redeclared as different kind of symbol
   void a (); // 5
           ^
52953_2.c:22:13: note: previous declaration ‘int a’
  for (; int a = 0;)
             ^
52953_2.c:22:13: warning: unused variable ‘a’ [-Wunused-variable]
$

So, confirmed.
>From gcc-bugs-return-572722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 18:39:40 2017
Return-Path: <gcc-bugs-return-572722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68598 invoked by alias); 19 Aug 2017 18: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 61225 invoked by uid 48); 19 Aug 2017 18:39:34 -0000
From: "egallager 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: Sun, 20 Aug 2017 12:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-53215-4-f3NXpX6byI@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-08/txt/msg02281.txt.bz2
Content-length: 799

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirming (as an enhancement) that g++ prints no warnings for the example
code. Dunno if it really could/should though...
>From gcc-bugs-return-572723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 19:35:45 2017
Return-Path: <gcc-bugs-return-572723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102789 invoked by alias); 19 Aug 2017 19:28: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 89510 invoked by uid 48); 19 Aug 2017 19:23:31 -0000
From: "mikpelinux at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Sun, 20 Aug 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikpelinux 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-81900-4-MkFNgW7D6T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02282.txt.bz2
Content-length: 148

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

--- Comment #2 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Started with r250767.
>From gcc-bugs-return-572724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 20:34:07 2017
Return-Path: <gcc-bugs-return-572724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34576 invoked by alias); 19 Aug 2017 20:34: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 34533 invoked by uid 48); 19 Aug 2017 20:34:01 -0000
From: "maxmati4 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81042] Too many constexpr interations on unreachable loop.
Date: Sun, 20 Aug 2017 12:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maxmati4 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81042-4-iJwiBPWDwg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81042-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81042-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02283.txt.bz2
Content-length: 1057

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

Mateusz Nowotynski <maxmati4 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxmati4 at gmail dot com

--- Comment #2 from Mateusz Nowotynski <maxmati4 at gmail dot com> ---
I also experienced this bug on gcc (Gentoo 6.4.0 p1.0) 6.4.0 and gcc (GCC)
8.0.0 20170819 (experimental). On version 6.4 it results in never ending
compilation and on 8.0 it trigers same error as @KevinCox.

Whats more for me it looks like regrsion since my code compiles fine on gcc
(Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005 haven't tried @KevinCox version.

My program triggering this error:
struct Table
{
    constexpr Table() : primes()
    {
        for(int i = 1; i < 100; ++i){ 
            if(!primes[i]) continue;
            for(int j = 1; j < 100; ++j);
        }

    }
    bool primes[100];
};


int main(){
    constexpr auto primes = Table();
}
>From gcc-bugs-return-572725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 20:57:00 2017
Return-Path: <gcc-bugs-return-572725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106314 invoked by alias); 19 Aug 2017 20:57: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 106202 invoked by uid 48); 19 Aug 2017 20:56:54 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/81902] New: new -fsanitize=pointer-overflow option undocumented
Date: Sun, 20 Aug 2017 14:22: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: 8.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc blocked target_milestone
Message-ID: <bug-81902-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02284.txt.bz2
Content-length: 1088

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

            Bug ID: 81902
           Summary: new -fsanitize=pointer-overflow option undocumented
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org
            Blocks: 80998
  Target Milestone: ---
          Keywords: documentation
            Blocks: 80998

While working on an overview of features new in GCC 8 I came across r250656
which added two new sanitizer options: -fsanitize=pointer-overflow and
-fsanitize-recover=pointer-overflow.  Unfortunately the options are  not
documented.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80998
[Bug 80998] Implement -fsanitize=pointer-overflow
>From gcc-bugs-return-572726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 21:06:05 2017
Return-Path: <gcc-bugs-return-572726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125857 invoked by alias); 19 Aug 2017 21:06:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125775 invoked by uid 48); 19 Aug 2017 21:06:00 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/78387] OpenMP segfault/stack size exceeded writing to internal file
Date: Sun, 20 Aug 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: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78387-4-XuMdKp2OIT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78387-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78387-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02285.txt.bz2
Content-length: 495

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

--- Comment #11 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
After thinking about this, I think I have a better idea which gets rid of the
stash completely and will avoid allocating a unit structure for internal units.
To accomplish this, I intend to pass the string, string length and string array
descriptor directly to the dtio child procedures vis hidden arguments. Just
want to capture the idea here for others heads up.
>From gcc-bugs-return-572727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 21:55:45 2017
Return-Path: <gcc-bugs-return-572727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53436 invoked by alias); 19 Aug 2017 21:55:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53403 invoked by uid 48); 19 Aug 2017 21:55:41 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52202] [C++11][DR 1376] Should not extend lifetime of temporary wrapped in static_cast to reference type
Date: Sun, 20 Aug 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: c++
X-Bugzilla-Version: 4.7.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-52202-4-dEJx6bh4NB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52202-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52202-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02286.txt.bz2
Content-length: 599

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that the testcase aborts when run
>From gcc-bugs-return-572728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 22:06:13 2017
Return-Path: <gcc-bugs-return-572728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114367 invoked by alias); 19 Aug 2017 22:06:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 105084 invoked by uid 48); 19 Aug 2017 22:06:00 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53360] g++ prints 'invalid use of incomplete type' error when compiling code with -std=gnu++0x and newer
Date: Sun, 20 Aug 2017 18:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.2
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: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-53360-4-t9XdhuuYbR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53360-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02287.txt.bz2
Content-length: 3844

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-19
                 CC|                            |egallager at gcc dot gnu.org
            Summary|Problems with -std=gnu++0x  |g++ prints 'invalid use of
                   |                            |incomplete type' error when
                   |                            |compiling code with
                   |                            |-std=gnu++0x and newer
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Alex from comment #0)
> I have such code:
> 
> 
> template<class CppType>
> struct make_literal;
> 
> template<>
> struct make_literal<int> {
>   typedef int type;
> };
> 
> template<class T>
> struct make_expression {
>   typedef typename make_literal<T>::type type;
> };
> 
> struct column {
>   template<class T>
>   typename make_expression<T>::type operator= (const T& t) const {
>     return typename make_expression<T>::type(t);
>   }
> };
> 
> struct expression : column
> {
>     expression() { }
>     using column::operator =;
> };
> 
> int main()
> {
>     expression ex;
>     ex = 2;
> 
>     return 0;
> }
> 
> which failed to compile with such command line:
> c++ -std=gnu++0x file.cpp
> 
> Compiler produces such error:
> bug.cpp: In instantiation of ‘make_expression<column>’:
> bug.cpp:31:10:   instantiated from here
> bug.cpp:12:42: error: invalid use of incomplete type ‘struct
> make_literal<column>’
> bug.cpp:3:8: error: declaration of ‘struct make_literal<column>’

(In reply to Marc Glisse from comment #1)
> clang and gcc reject it, but intel and oracle accept it.

The errors with gcc and clang are now:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -std=gnu++0x 53360.cc
53360.cc: In instantiation of ‘struct make_expression<column>’:
53360.cc:16:36:   required by substitution of ‘template<class T> typename
make_expression<T>::type column::operator=(const T&) const [with T = column]’
53360.cc:30:10:   required from here
53360.cc:11:41: error: invalid use of incomplete type ‘struct
make_literal<column>’
  typedef typename make_literal<T>::type type;
                                         ^~~~
53360.cc:2:8: note: declaration of ‘struct make_literal<column>’
 struct make_literal;
        ^~~~~~~~~~~~
$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic -std=gnu++0x 53360.cc
53360.cc:11:19: error: implicit instantiation of undefined template
'make_literal<column>'
        typedef typename make_literal<T>::type type;
                         ^
53360.cc:16:11: note: in instantiation of template class
'make_expression<column>' requested here
        typename make_expression<T>::type operator= (const T& t) const {
                 ^
53360.cc:16:36: note: while substituting deduced template arguments into
function template 'operator=' [with T = column]
        typename make_expression<T>::type operator= (const T& t) const {
                                          ^
53360.cc:2:8: note: template is declared here
struct make_literal;
       ^
1 error generated.
$

Note that it also fails with gnu++14 and gnu++1z. When compiled with
-std=gnu++98 and -Wc++11-compat, it prints no errors or warnings, which is odd,
because if it were actually supposed to error out with gnu++11, you'd think
-Wc++11-compat would at least warn about it. So, confirmed.
>From gcc-bugs-return-572729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 22:18:33 2017
Return-Path: <gcc-bugs-return-572729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100126 invoked by alias); 19 Aug 2017 22:18:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 100051 invoked by uid 48); 19 Aug 2017 22:18:25 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81863] [7 regression] -mword-relocations is unreliable
Date: Sun, 20 Aug 2017 18: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: 7.1.1
X-Bugzilla-Keywords: wrong-code
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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81863-4-cyE57tmK9E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02288.txt.bz2
Content-length: 1831

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

--- Comment #7 from Arnd Bergmann <arnd at linaro dot org> ---
Created attachment 42009
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42009&action=edit
preprocessed net/rds/recv.i

(In reply to ard.biesheuvel from comment #6)
> FWIW, the following makes the issue go away (tested on 4.9.4)
> 
> @@ -6196,7 +6210,9 @@
>    [(set (match_operand:SI 0 "nonimmediate_operand" "=r")
>  	(lo_sum:SI (match_operand:SI 1 "nonimmediate_operand" "0")
>  		   (match_operand:SI 2 "general_operand"      "i")))]
> -  "arm_arch_thumb2 && arm_valid_symbolic_address_p (operands[2])"
> +  "arm_arch_thumb2 && arm_valid_symbolic_address_p (operands[2])
> +   && (   GET_CODE (operands[2]) != SYMBOL_REF
> +       || !target_word_relocations)"
>    "movt%?\t%0, #:upper16:%c2"
>    [(set_attr "predicable" "yes")
>     (set_attr "predicable_short_it" "no")
> 
> I have no idea whether this is a suitable fix: I will leave that to the
> experts. Just providing this as a data point.

I tried this change and it apparently addressed one such problem on gcc-7.1.1
(in multiple kernel configurations):

/home/arnd/cross-gcc/bin/arm-linux-gnueabi-ld: drivers/mfd/janz-cmodio.o:
relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when
making a shared object; recompile with -fPIC

but not another one:

/home/arnd/cross-gcc/bin/arm-linux-gnueabi-ld: net/rds/recv.o: relocation
R_ARM_MOVW_ABS_NC against `rds_stats' can not be used when making a shared
object; recompile with -fPIC

The first only showed up in configurations using -mthumb, while the second only
appeared only once so far, in a configuration using -marm. Attaching the
preprocessed source file, build with "arm-linux-gnueabi-gcc-7.1.1
-mword-relocations -march=armv7-a  -O1 -c recv.i"
>From gcc-bugs-return-572730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 22:47:37 2017
Return-Path: <gcc-bugs-return-572730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16853 invoked by alias); 19 Aug 2017 22:47:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16795 invoked by uid 48); 19 Aug 2017 22:47:32 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Sun, 20 Aug 2017 18:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
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:
Message-ID: <bug-53037-4-Gp5MNrh5Et@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02289.txt.bz2
Content-length: 1931

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

--- Comment #32 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Sparc defines STRICT_ALIGNMENT which leads to
> 
>       unsigned mode_align = GET_MODE_ALIGNMENT (TYPE_MODE (type));
> 
>       /* Don't override a larger alignment requirement coming from a user
>          alignment of one of the fields.  */
>       if (mode_align >= TYPE_ALIGN (type))
>         {
>           SET_TYPE_ALIGN (type, mode_align);
>           TYPE_USER_ALIGN (type) = 0; 
>         }
> 
> so __attribute__ ((packed)) is basically ignored on Sparc.

I don't think that's correct.  Simply, on strict-alignment targets, you cannot
have an aggregate type less aligned than its scalar mode, if any; for other
targets, that's only true for scalar types.  But you can have an aggregate type
with alignment 1 if it has BLKmode.

> diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
> index 3028d55773a..6dd605810ac 100644
> --- a/gcc/stor-layout.c
> +++ b/gcc/stor-layout.c
> @@ -1784,7 +1784,7 @@ finalize_type_size (tree type)
>  
>        /* Don't override a larger alignment requirement coming from a user
>     alignment of one of the fields.  */
> -      if (mode_align >= TYPE_ALIGN (type))
> +      if (mode_align > TYPE_ALIGN (type))
>    {
>      SET_TYPE_ALIGN (type, mode_align);
>      TYPE_USER_ALIGN (type) = 0;
> 
> works with cross compiler.

The existing code works as intended: if the alignment given by the mode is
larger than or equal to the type's alignment, then this alignment given by the
mode becomes the natural alignment and TYPE_USER_ALIGN becomes obsolete/wrong.

So I think that the absence of warning is correct on strict-alignment platforms
and that, if you want to make the tests portable, then you must use structures
whose rounded size is not a power of 2 or is larger than 128 bits, so that they
don't get a scalar mode.
>From gcc-bugs-return-572731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 19 23:44:49 2017
Return-Path: <gcc-bugs-return-572731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114344 invoked by alias); 19 Aug 2017 23:44: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 113854 invoked by uid 48); 19 Aug 2017 23:44:45 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Sun, 20 Aug 2017 18:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-53037-4-yfjTj2krSI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02290.txt.bz2
Content-length: 1863

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

--- Comment #33 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Eric Botcazou from comment #32)
> > Sparc defines STRICT_ALIGNMENT which leads to
> > 
> >       unsigned mode_align = GET_MODE_ALIGNMENT (TYPE_MODE (type));
> > 
> >       /* Don't override a larger alignment requirement coming from a user
> >          alignment of one of the fields.  */
> >       if (mode_align >= TYPE_ALIGN (type))
> >         {
> >           SET_TYPE_ALIGN (type, mode_align);
> >           TYPE_USER_ALIGN (type) = 0; 
> >         }
> > 
> > so __attribute__ ((packed)) is basically ignored on Sparc.
> 
> I don't think that's correct.  Simply, on strict-alignment targets, you
> cannot have an aggregate type less aligned than its scalar mode, if any; for
> other targets, that's only true for scalar types.  But you can have an
> aggregate type with alignment 1 if it has BLKmode.
> 
> > diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
> > index 3028d55773a..6dd605810ac 100644
> > --- a/gcc/stor-layout.c
> > +++ b/gcc/stor-layout.c
> > @@ -1784,7 +1784,7 @@ finalize_type_size (tree type)
> >  
> >        /* Don't override a larger alignment requirement coming from a user
> >     alignment of one of the fields.  */
> > -      if (mode_align >= TYPE_ALIGN (type))
> > +      if (mode_align > TYPE_ALIGN (type))
> >    {
> >      SET_TYPE_ALIGN (type, mode_align);
> >      TYPE_USER_ALIGN (type) = 0;
> > 
> > works with cross compiler.
> 
> The existing code works as intended: if the alignment given by the mode is
> larger than or equal to the type's alignment, then this alignment given by
> the mode becomes the natural alignment and TYPE_USER_ALIGN becomes
> obsolete/wrong.

We should add a testcase to show there is a difference in generated
code on Sparc.
>From gcc-bugs-return-572732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 02:03:20 2017
Return-Path: <gcc-bugs-return-572732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19119 invoked by alias); 20 Aug 2017 02:03: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 4864 invoked by uid 48); 20 Aug 2017 02:02:48 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/39679] Some absent attributes in the tree-dump should be added
Date: Sun, 20 Aug 2017 18:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.3.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-39679-4-ZdUn0NqvS0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-39679-4@http.gcc.gnu.org/bugzilla/>
References: <bug-39679-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02291.txt.bz2
Content-length: 924

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

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

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

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
g++ no longer supports the -fdump-translation-unit flag:

$ /usr/local/bin/g++ -c -fdump-translation-unit -fsyntax-only -std=gnu++98
53360.cc
cc1plus: error: unrecognized command line option ‘-fdump-translation-unit’
$

I think I remember some debate on gcc-patches about removing it for gcc8 but I
forget the link to the thread... closing as WONTFIX since the flag probably
won't be coming back
>From gcc-bugs-return-572733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 03:12:19 2017
Return-Path: <gcc-bugs-return-572733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30334 invoked by alias); 20 Aug 2017 03:12: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 30292 invoked by uid 48); 20 Aug 2017 03:12:13 -0000
From: "karl.may0 at freenet dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81903] New: compiler reports a language problem (Invalid character in name at)
Date: Sun, 20 Aug 2017 18:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: karl.may0 at freenet dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-81903-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02292.txt.bz2
Content-length: 869

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

            Bug ID: 81903
           Summary: compiler reports a language problem (Invalid character
                    in name at)
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: karl.may0 at freenet dot de
  Target Milestone: ---

Created attachment 42010
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42010&action=edit
source code for bug reproduction

When compiling the code in the attachement the compiler reports:

Test.f90:35:18:

           x(i)%a=>y(i)%a
                  1
Error: Invalid character in name at (1)

With ifort the code complies flawless. From my perspective the code complies
with the rules.
>From gcc-bugs-return-572734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 05:12:36 2017
Return-Path: <gcc-bugs-return-572734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118926 invoked by alias); 20 Aug 2017 05:12: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 118870 invoked by uid 48); 20 Aug 2017 05:12:27 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53506] Variadic templates in combination with function pointer problem
Date: Sun, 20 Aug 2017 18: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.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-53506-4-6u7UIgS8Lc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53506-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53506-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02293.txt.bz2
Content-length: 2550

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
gcc8's output has added carets:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -std=c++11 53506.cc
53506.cc: In function ‘int main()’:
53506.cc:17:17: error: no matching function for call to ‘A<int>::a(int (&)(int,
int), int)’
  A<int>::a(foo,0);
                 ^
53506.cc:5:2: note: candidate: ‘template<class RES, class ... FARGS> static
void A<SARGS>::a(RES (*)(FARGS ..., SARGS ...), FARGS ...) [with RES = RES;
FARGS = {FARGS ...}; SARGS = {int}]’
  a(RES(*func)(FARGS...,SARGS...),FARGS...)
  ^
53506.cc:5:2: note:   template argument deduction/substitution failed:
53506.cc:17:17: note:   candidate expects 1 argument, 2 provided
  A<int>::a(foo,0);
                 ^
53506.cc:18:26: error: no matching function for call to ‘A<int>::a<int,
int>(int (&)(int, int), int)’
  A<int>::a<int,int>(foo,0);
                          ^
53506.cc:5:2: note: candidate: ‘template<class RES, class ... FARGS> static
void A<SARGS>::a(RES (*)(FARGS ..., SARGS ...), FARGS ...) [with RES = RES;
FARGS = {FARGS ...}; SARGS = {int}]’
  a(RES(*func)(FARGS...,SARGS...),FARGS...)
  ^
53506.cc:5:2: note:   template argument deduction/substitution failed:
53506.cc:18:26: note:   candidate expects 1 argument, 2 provided
  A<int>::a<int,int>(foo,0);
                          ^
$

For comparison, clang only errors once:

$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic -std=c++11 53506.cc
53506.cc:5:9: warning: unused parameter 'func' [-Wunused-parameter]
        a(RES(*func)(FARGS...,SARGS...),FARGS...)
               ^
53506.cc:18:2: error: no matching function for call to 'a'
        A<int>::a<int,int>(foo,0);
        ^~~~~~~~~~~~~~~~~~
53506.cc:5:2: note: candidate template ignored: failed template argument
deduction
        a(RES(*func)(FARGS...,SARGS...),FARGS...)
        ^
1 warning and 1 error generated.
$

So, confirmed that g++ errors more than might be expected.
>From gcc-bugs-return-572735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 09:16:55 2017
Return-Path: <gcc-bugs-return-572735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48890 invoked by alias); 20 Aug 2017 09:16: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 47642 invoked by uid 48); 20 Aug 2017 09:15:47 -0000
From: "fxcoudert at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81797] gcc 7.1.0 fails to build on macOS 10.13 (High Sierra):
Date: Sun, 20 Aug 2017 18:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fxcoudert at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-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-81797-4-L1Q0gfI5t2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02294.txt.bz2
Content-length: 470

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

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|7.1.0                       |7.2.0

--- Comment #5 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Same bug exists with GCC 7.2.0 and GCC 6.4.0, when compiled on a APFS
filesystem.
>From gcc-bugs-return-572736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 11:29:01 2017
Return-Path: <gcc-bugs-return-572736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113308 invoked by alias); 20 Aug 2017 11: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 113209 invoked by uid 48); 20 Aug 2017 11:28:49 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81904] New: FMA and addsub instructions
Date: Sun, 20 Aug 2017 19:01: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: enhancement
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-81904-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02295.txt.bz2
Content-length: 1521

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

            Bug ID: 81904
           Summary: FMA and addsub instructions
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-*-*

(asked in
https://stackoverflow.com/questions/45298855/how-to-write-portable-simd-code-for-complex-multiplicative-reduction/45401182#comment77780455_45401182
)

Intel has instructions like vfmaddsubps. Gcc manages, under certain
circumstances, to merge mult and plus or mult and minus into FMA, but not mult
and this strange addsub mix.

#include <x86intrin.h>
__m128d f(__m128d x, __m128d y, __m128d z){
  return _mm_addsub_pd(_mm_mul_pd(x,y),z);
}
__m128d g(__m128d x, __m128d y, __m128d z){
  return _mm_fmaddsub_pd(x,y,z);
}

(the order of the arguments is probably not right)

My first guess as to how this could be implemented without too much trouble is
in ix86_gimple_fold_builtin: for IX86_BUILTIN_ADDSUBPD and others, check that
we are late enough in the optimization pipeline (roughly where "widening_mul"
is), that contractions are enabled, and that the first (?) argument is a
single-use MULT_EXPR.

I didn't check what the situation is with the vectorizer (which IIRC can now
generate code that ends up as addsub).
>From gcc-bugs-return-572737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 11:47:00 2017
Return-Path: <gcc-bugs-return-572737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37118 invoked by alias); 20 Aug 2017 11:46: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 36025 invoked by uid 48); 20 Aug 2017 11:46:32 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81898] [7/8 Regression] Issue with polymorphic container class
Date: Sun, 20 Aug 2017 19:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-81898-4-4hCpaXWGBM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02296.txt.bz2
Content-length: 1487

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-20
                 CC|                            |janus at gcc dot gnu.org
            Summary|Issue with polymorphic      |[7/8 Regression] Issue with
                   |container class             |polymorphic container class
     Ever confirmed|0                           |1

--- Comment #1 from janus at gcc dot gnu.org ---
Here is a further reduced and modified version of the original test case:


module AModule

  implicit none

  type :: BType
  end type

  type:: AType
    class(BType), allocatable :: obj
    type(BType), pointer  :: bobj
  contains
    procedure :: a_rd
  end type

  contains

    subroutine a_rd(this)
      ! -- dummy
      class(AType) :: this
      write(*,*) 'in a_rd'
    end subroutine

end module


program main
  use AModule
  implicit none
  class(AType), allocatable, target :: a

  allocate(a)

  allocate(a%obj)
  a%bobj => a%obj

  write(*,*) 'calling a_rd'
  call a%a_rd()

end



It compiles and runs file with gfortran 6 and earlier, but fails with a runtime
segfault with gfortran 7 and trunk. Indeed looks like a wrong-code regression.
>From gcc-bugs-return-572738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 11:47:27 2017
Return-Path: <gcc-bugs-return-572738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38385 invoked by alias); 20 Aug 2017 11:47: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 38296 invoked by uid 48); 20 Aug 2017 11:47:19 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class
Date: Sun, 20 Aug 2017 19:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone short_desc
Message-ID: <bug-81898-4-ZtxUVsudk5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02297.txt.bz2
Content-length: 483

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.3
            Summary|[7/8 Regression] Issue with |[7/8 Regression] [OOP]
                   |polymorphic container class |Issue with polymorphic
                   |                            |container class
>From gcc-bugs-return-572739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 12:04:42 2017
Return-Path: <gcc-bugs-return-572739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56230 invoked by alias); 20 Aug 2017 12:04: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 55949 invoked by uid 48); 20 Aug 2017 12:04:17 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53360] g++ prints 'invalid use of incomplete type' error when compiling code with -std=gnu++0x and newer
Date: Sun, 20 Aug 2017 19:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.2
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-53360-4-tFtPWkVEaK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53360-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02298.txt.bz2
Content-length: 562

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
If we add this to expression it compiles OK:

    expression& operator=(const expression&) { return *this; }

So the invalid instantiation of column::operator=<column>(const column&) comes
from the compiler-generated copy assignment operator. That presumably gets
defined during overload resolution.

I don't know what the difference is between C++98 and C++11 that causes that
(or if it's reasonable to expect a c++11-compat warning).
>From gcc-bugs-return-572740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 12:50:20 2017
Return-Path: <gcc-bugs-return-572740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117169 invoked by alias); 20 Aug 2017 12:50:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 117040 invoked by uid 48); 20 Aug 2017 12:50:08 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81905] New: partial_sort slower than sort
Date: Sun, 20 Aug 2017 19:38: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: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81905-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02299.txt.bz2
Content-length: 993

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

            Bug ID: 81905
           Summary: partial_sort slower than sort
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org
  Target Milestone: ---

(from https://stackoverflow.com/q/45455345/1918193 )

std::partial_sort of half an array can be slower than std::sort of the whole
array, because it uses heap sort vs introsort. There may be a size threshold
above which we could use a different algorithm than heap_select+sort_heap (say
a variant of introsort where after partitioning (possibly with a biased pivot),
depending where the pivot ends up, either we partial_sort the left and ignore
the right, or we sort the left and partial_sort the right), or some other
compromise.
>From gcc-bugs-return-572741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 12:56:56 2017
Return-Path: <gcc-bugs-return-572741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124917 invoked by alias); 20 Aug 2017 12:56:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 124866 invoked by uid 48); 20 Aug 2017 12:56:51 -0000
From: "webrown.cpp at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81901] New: false-positive -Warray-bounds
Date: Sun, 20 Aug 2017 19:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: webrown.cpp at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-81901-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02300.txt.bz2
Content-length: 1315

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

            Bug ID: 81901
           Summary: false-positive -Warray-bounds
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vermaelen.wouter at gmail dot com
                CC: webrown.cpp at gmail dot com
  Target Milestone: ---
                CC: webrown.cpp at gmail dot com

When switching from gcc-6 to gcc-7 my application triggers some new compiler
warnings (with -Wall). I believe these warnings are false-positives. But I
don't see an easy way to work around them. I also tested with a gcc-8 snapshot
(2017/08/19) and the problem persists.

I managed to reduce my program to the following:

        int a[8];

        extern void f2();

        void f() {
            for (int i = 0x3F; i >= 0x10; --i) {
                switch (i & 0xF0) {
                    case 0x00:
                        if ((i & 0x0F) < 8) a[i] = 0;
                        break;
                    case 0x10:
                        f2();
                }
            }
        }

Compile with
    g++ -O2 -Wall test.cpp

warning: array subscript is above array bounds [-Warray-bounds]
>From gcc-bugs-return-572742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 14:22:56 2017
Return-Path: <gcc-bugs-return-572742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55583 invoked by alias); 20 Aug 2017 14: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 55521 invoked by uid 48); 20 Aug 2017 14:22:49 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80837] [7/8 regression] x86 accessing a member of a 16-byte atomic object generates terrible code: splitting/merging the bytes
Date: Sun, 20 Aug 2017 20:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.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: P2
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-80837-4-GiYgs7Jk9w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80837-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80837-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02301.txt.bz2
Content-length: 1329

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

--- Comment #3 from Peter Cordes <peter at cordes dot ca> ---
Seems to be fixed in gcc7.2.0: https://godbolt.org/g/jRwtZN

gcc7.2 is fine with -m32, -mx32, and -m64, but x32 is the most compact.  -m64
just calls __atomic_load_16


gcc7.2 -O3 -mx32 output:
follow_nounion(std::atomic<counted_ptr>*):
        movq    (%edi), %rax
        movl    %eax, %eax
        ret

vs.

gcc7.1 -O3 -mx32
follow_nounion(std::atomic<counted_ptr>*):
        movq    (%edi), %rcx
        xorl    %edx, %edx
        movzbl  %ch, %eax
        movb    %cl, %dl
        movq    %rcx, %rsi
        movb    %al, %dh
        andl    $16711680, %esi
        andl    $4278190080, %ecx
        movzwl  %dx, %eax
        orq     %rsi, %rax
        orq     %rcx, %rax
        ret

-------


gcc7.2 -O3 -m64 just forwards its arg to __atomic_load_16 and then returns:

follow_nounion(std::atomic<counted_ptr>*):
        subq    $8, %rsp
        movl    $2, %esi
        call    __atomic_load_16
        addq    $8, %rsp
        ret

It unfortunately doesn't optimize the tail-call to

        movl    $2, %esi
        jmp     __atomic_load_16

presumably because it hasn't realized early enough that it takes zero
instructions to extract the 8-byte low half of the 16-byte __atomic_load_16
return value.
>From gcc-bugs-return-572743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 14:26:02 2017
Return-Path: <gcc-bugs-return-572743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58038 invoked by alias); 20 Aug 2017 14:25:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 57884 invoked by uid 48); 20 Aug 2017 14:25:53 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53782] Pointer to static function member expression rejected in class template
Date: Sun, 20 Aug 2017 21:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-53782-4-TZy0umWRQz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53782-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53782-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02302.txt.bz2
Content-length: 582

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
gcc8 accepts it with neither warning nor error when I try to compile it.
>From gcc-bugs-return-572744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 16:40:33 2017
Return-Path: <gcc-bugs-return-572744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129954 invoked by alias); 20 Aug 2017 16: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 126814 invoked by uid 48); 20 Aug 2017 16:40:26 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53972] array constant  expression not valid as template argument
Date: Sun, 20 Aug 2017 21:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-53972-4-Cxta4iJkuM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53972-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53972-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02303.txt.bz2
Content-length: 2229

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Huh, there's an extra error message in c++11 compared to c++14:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -std=gnu++11 53972.cc
53972.cc: In function ‘int main()’:
53972.cc:27:24: warning: statement has no effect [-Wunused-value]
  Constify<value>::value;
                        ^
53972.cc: In instantiation of ‘constexpr char sub1(const char (&)[N], unsigned
int) [with unsigned int N = 4]’:
53972.cc:23:15:   required from here
53972.cc:10:29: error: ‘array’ is not a constant expression
  return Constify<array[I]>::value;
                             ^~~~~
53972.cc:10:23: note: in template argument for type ‘unsigned int’ 
  return Constify<array[I]>::value;
                  ~~~~~^
53972.cc:11:1: error: body of constexpr function ‘constexpr char sub1(const
char (&)[N], unsigned int) [with unsigned int N = 4]’ not a return-statement
 }
 ^
$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -std=gnu++14 53972.cc
53972.cc: In function ‘int main()’:
53972.cc:27:24: warning: statement has no effect [-Wunused-value]
  Constify<value>::value;
                        ^
53972.cc: In instantiation of ‘constexpr char sub1(const char (&)[N], unsigned
int) [with unsigned int N = 4]’:
53972.cc:23:15:   required from here
53972.cc:10:29: error: ‘array’ is not a constant expression
  return Constify<array[I]>::value;
                             ^~~~~
53972.cc:10:23: note: in template argument for type ‘unsigned int’ 
  return Constify<array[I]>::value;
                  ~~~~~^
$

Confirmed.
>From gcc-bugs-return-572745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 18:24:56 2017
Return-Path: <gcc-bugs-return-572745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50995 invoked by alias); 20 Aug 2017 18:24:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 50744 invoked by uid 55); 20 Aug 2017 18:24:32 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/77732] FAIL: gcc.dg/ipa/ipcp-cstagg-7.c scan-ipa-dump-times cp "Discovered an indirect  call to a known target" 3
Date: Sun, 20 Aug 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: ipa
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77732-4-0DbkvVNWfp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77732-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77732-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02304.txt.bz2
Content-length: 445

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

--- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sun Aug 20 18:23:41 2017
New Revision: 251206

URL: https://gcc.gnu.org/viewcvs?rev=251206&root=gcc&view=rev
Log:
        PR ipa/77732
        * gcc.dg/ipa/ipcp-cstagg-7.c: Xfail on 32-bit hppa.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/ipa/ipcp-cstagg-7.c
>From gcc-bugs-return-572746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 18:28:58 2017
Return-Path: <gcc-bugs-return-572746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54607 invoked by alias); 20 Aug 2017 18: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 54466 invoked by uid 48); 20 Aug 2017 18:28:44 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54574] G++ accepts parameters with wrong types in parent constructor
Date: Sun, 20 Aug 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: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-54574-4-XeAlYDk11U@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54574-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54574-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02305.txt.bz2
Content-length: 1499

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
gcc8 errors as you expected it to:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 54574.cc
54574.cc: In instantiation of ‘A<T>::A(int*) [with T = int]’:
54574.cc:16:13:   required from here
54574.cc:11:13: error: no matching function for call to ‘C::C(int*&)’
   : C (Items) {        // C is called with wrong parameter type, expects int**
             ^
54574.cc:4:3: note: candidate: ‘C::C(int**)’
   C (int* Items[]);
   ^
54574.cc:4:3: note:   no known conversion for argument 1 from ‘int*’ to ‘int**’
54574.cc:1:7: note: candidate: ‘constexpr C::C(const C&)’
 class C
       ^
54574.cc:1:7: note:   no known conversion for argument 1 from ‘int*’ to ‘const
C&’
54574.cc:1:7: note: candidate: ‘constexpr C::C(C&&)’
54574.cc:1:7: note:   no known conversion for argument 1 from ‘int*’ to ‘C&&’
$
>From gcc-bugs-return-572747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 18:41:06 2017
Return-Path: <gcc-bugs-return-572747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67903 invoked by alias); 20 Aug 2017 18:41: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 67819 invoked by uid 55); 20 Aug 2017 18:41:01 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/77732] FAIL: gcc.dg/ipa/ipcp-cstagg-7.c scan-ipa-dump-times cp "Discovered an indirect  call to a known target" 3
Date: Sun, 20 Aug 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: ipa
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77732-4-DIhtQs9UyI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77732-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77732-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02306.txt.bz2
Content-length: 477

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

--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sun Aug 20 18:40:28 2017
New Revision: 251207

URL: https://gcc.gnu.org/viewcvs?rev=251207&root=gcc&view=rev
Log:
        PR ipa/77732
        * gcc.dg/ipa/ipcp-cstagg-7.c: Xfail on 32-bit hppa.


Modified:
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/ipa/ipcp-cstagg-7.c
>From gcc-bugs-return-572748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 18:42:56 2017
Return-Path: <gcc-bugs-return-572748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69640 invoked by alias); 20 Aug 2017 18:42: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 69400 invoked by uid 48); 20 Aug 2017 18:42:42 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/45065] -fvisibility-inlines-hidden: Decl order in derived class affects visibility of inlines in base.
Date: Sun, 20 Aug 2017 22:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.1
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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-45065-4-z4i7b9dOHa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45065-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45065-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02307.txt.bz2
Content-length: 3942

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Dean Edmonds from comment #0)
> Compiling with -fvisibility=hidden and -fvisibility-inlines-hidden.
> 
> I have a Base class with default visibility which contains two virtual
> methods, one inlined and the other not. A Derived class with hidden
> visibility overrides the non-inlined method and doesn't touch the inlined
> one. If the declaration of the overridden method appears *before* the
> Derived's virtual destructor then the object file for Derived weakly exports
> the Base class's inlined method. But if the declaration appears *after*
> Derived's virtual destructor then the object for Derived doesn't export the
> Base class's inlined method at all.
> 
> Given that I'm compiling with -fvisibility-inlines-hidden I *think* that
> means that the Base class's inlined method should never be exported. Even if
> I'm wrong about that, surely it should not matter the order in which the
> Derived class's methods are declared.
> 
> Here's an example which demonstrates the problem:
> 
> class __attribute__ ((visibility("default"))) Base
> {
> public:
>     Base();
>     virtual ~Base();
>     virtual void func()  const;
>     virtual void inlineFunc()	{}
> };
> 
> class Derived : public Base
> {
> public:
>     Derived();
>     void func() const;
>     virtual ~Derived();
> };
> 
> void Derived::func() const
> {}
> 
> Compiled on OSX 10.6.4 with g++ 4.2.1, using the following command:
> 
>   g++-4.2 -Wall -c -arch x86_64 -fvisibility=hidden
> -fvisibility-inlines-hidden -O3 -m64 -isysroot
> /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -o Derived.o
> Derived.cpp
> 
> Looking at the object file using 'nm -m Derived.o | grep inlineFunc' gives:
> 
>   0000000000000010 (__TEXT,__textcoal_nt) weak private external
> __ZN6Common10inlineFuncEv
>   0000000000000098 (__TEXT,__eh_frame) weak private external
> __ZN6Common10inlineFuncEv.eh
> 
> If I move the declaration of Derived::func() so that it comes after
> ~Derived() then 'nm -m Derived.o | grep inlineFunc' returns nothing.
> 
> 

On 10.5 with gcc8, the grep only returns one line:

$ /usr/local/bin/g++ -Wall -c -arch x86_64 -fvisibility=hidden
-fvisibility-inlines-hidden -O3 -m64 -isysroot /Developer/SDKs/MacOSX10.5.sdk
-mmacosx-version-min=10.5 -Wextra -pedantic -o 45065.o 45065.cc
$ nm -m 45065.o | grep inlineFunc
0000000000000010 (__TEXT,__textcoal_nt) weak private external
__ZN4Base10inlineFuncEv

The difference is no version suffixed with '.eh' so I think it's a 10.5 to 10.6
difference.

> I see similar behaviour on GNU/Linux (2.6.30.9-96.fc11.x86_64) using g++
> 4.4.1. Compiling with this command:
> 
>   g++ -Wall -c -fvisibility=hidden -fvisibility-inlines-hidden -O3 -m64 -o
> Derived.o Derived.cpp
> 
> and using 'objdump -t Derived.o | grep inlineFunc' to inspect the result
> gives this when Derived::func() is declared before ~Derived():
> 
>   0000000000000000 l    d  .text._ZN4Base10inlineFuncEv   0000000000000000
> .text._ZN4Base10inlineFuncEv
>   0000000000000000  w    F .text._ZN4Base10inlineFuncEv   0000000000000002
> .hidden _ZN4Base10inlineFuncEv
> 
> and gives nothing when Derived::func() is declared after ~Derived().

(In reply to Paolo Carlini from comment #2)
> I can confirm the behavior with today's mainline. And seems weird indeed.

Changing status to NEW then since it's confirmed.
>From gcc-bugs-return-572749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 18:51:34 2017
Return-Path: <gcc-bugs-return-572749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7021 invoked by alias); 20 Aug 2017 18:51: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 128548 invoked by uid 48); 20 Aug 2017 18:51:26 -0000
From: "howarth.at.gcc at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81037] Xcode 9 requires back ports on gcc-5-branch for bootstrapping under Xcode 9
Date: Sun, 20 Aug 2017 22:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: howarth.at.gcc 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: attachments.created
Message-ID: <bug-81037-4-iUo1GlTkzP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02308.txt.bz2
Content-length: 283

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

--- Comment #7 from Jack Howarth <howarth.at.gcc at gmail dot com> ---
Created attachment 42011
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42011&action=edit
proposed back port of changes from trunk for gcc-5-branch
>From gcc-bugs-return-572750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 18:53:43 2017
Return-Path: <gcc-bugs-return-572750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63742 invoked by alias); 20 Aug 2017 18:53:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 63596 invoked by uid 55); 20 Aug 2017 18:53:38 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/81056] [7/8 Regression] FAIL: 17_intro/names.cc (test for excess errors)
Date: Sun, 20 Aug 2017 22:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-81056-4-1arIhJ2b50@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81056-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81056-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02309.txt.bz2
Content-length: 459

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

--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sun Aug 20 18:52:59 2017
New Revision: 251208

URL: https://gcc.gnu.org/viewcvs?rev=251208&root=gcc&view=rev
Log:
        PR testsuite/81056
        * testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__


Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/testsuite/17_intro/names.cc
>From gcc-bugs-return-572751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 18:55:23 2017
Return-Path: <gcc-bugs-return-572751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65985 invoked by alias); 20 Aug 2017 18:55: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 65869 invoked by uid 48); 20 Aug 2017 18:55:18 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/78387] OpenMP segfault/stack size exceeded writing to internal file
Date: Sun, 20 Aug 2017 22:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78387-4-zjF0Pm6UNU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78387-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78387-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02310.txt.bz2
Content-length: 200

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

--- Comment #12 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Patch submitted here:

https://gcc.gnu.org/ml/fortran/2017-08/msg00045.html
>From gcc-bugs-return-572752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 18:58:18 2017
Return-Path: <gcc-bugs-return-572752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69966 invoked by alias); 20 Aug 2017 18:58:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69538 invoked by uid 48); 20 Aug 2017 18:58:11 -0000
From: "howarth.at.gcc at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81037] Xcode 9 requires back ports on gcc-5-branch for bootstrapping under Xcode 9
Date: Sun, 20 Aug 2017 22:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: howarth.at.gcc 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-81037-4-WWpT1LcftK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02311.txt.bz2
Content-length: 240

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

--- Comment #8 from Jack Howarth <howarth.at.gcc at gmail dot com> ---
Verified that proposed changes in PR81037_gcc5.patch with Xcode 8.2.1 on
darwin15.6.0 and Xcode 9 beta 5 on 10.13.
>From gcc-bugs-return-572753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 19:01:53 2017
Return-Path: <gcc-bugs-return-572753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87796 invoked by alias); 20 Aug 2017 19:01:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87434 invoked by uid 55); 20 Aug 2017 19:01:45 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/81056] [7/8 Regression] FAIL: 17_intro/names.cc (test for excess errors)
Date: Sun, 20 Aug 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: testsuite
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-81056-4-Q1FDwuINql@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81056-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81056-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02312.txt.bz2
Content-length: 492

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

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sun Aug 20 19:00:59 2017
New Revision: 251209

URL: https://gcc.gnu.org/viewcvs?rev=251209&root=gcc&view=rev
Log:
        PR testsuite/81056
        * testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__.


Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/testsuite/17_intro/names.cc
>From gcc-bugs-return-572754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 19:01:55 2017
Return-Path: <gcc-bugs-return-572754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88058 invoked by alias); 20 Aug 2017 19:01: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 87595 invoked by uid 48); 20 Aug 2017 19:01:49 -0000
From: "howarth.at.gcc at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81037] Xcode 9 requires back ports on gcc-5-branch for bootstrapping under Xcode 9
Date: Mon, 21 Aug 2017 02:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: howarth.at.gcc 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-81037-4-dbLiggZCb0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02313.txt.bz2
Content-length: 340

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

--- Comment #9 from Jack Howarth <howarth.at.gcc at gmail dot com> ---
Note that the main deviation from the previous back porting for gcc-6-branch is
that the ipa-icf-gimple.c source file must define INCLUDE_LIST since it is used
in that file for gcc-5-branch unlike gcc-6-branch.
>From gcc-bugs-return-572755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 19:05:46 2017
Return-Path: <gcc-bugs-return-572755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101672 invoked by alias); 20 Aug 2017 19:05:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 101258 invoked by uid 48); 20 Aug 2017 19:05:30 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/81056] [7/8 Regression] FAIL: 17_intro/names.cc (test for excess errors)
Date: Mon, 21 Aug 2017 03:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
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 resolution
Message-ID: <bug-81056-4-vH5XKb3lOk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81056-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81056-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02314.txt.bz2
Content-length: 435

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

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

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

--- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-572756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 19:30:48 2017
Return-Path: <gcc-bugs-return-572756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126659 invoked by alias); 20 Aug 2017 19:30: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 126571 invoked by uid 48); 20 Aug 2017 19:30:39 -0000
From: "vz-gcc at zeitlins dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81906] New: Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 2017 03:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vz-gcc at zeitlins dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02315.txt.bz2
Content-length: 1529

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

            Bug ID: 81906
           Summary: Calls to rint() wrongly optimized away starting in g++
                    6
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vz-gcc at zeitlins dot org
  Target Milestone: ---

Here is a test case:

---------------------------------- >8 --------------------------------------
#include <cfenv>
#include <cmath>
#include <stdio.h>

int main()
{
    printf("--- Test built with gcc %d.%d.%d ---\n",
           __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__ );

    auto const x = -2.5;

    printf("Default round mode : rint(%g)=%g\n", x, std::rint(x));
    fesetround(FE_DOWNWARD);
    printf("Downward round mode: rint(%g)=%g\n", x, std::rint(x));

    return 0;
}
---------------------------------- >8 --------------------------------------

% g++-7 -O1 -Wall -std=c++11 rint.cpp && ./a.out
--- Test built with gcc 7.1.0 ---
Default round mode : rint(-2.5)=-2
Downward round mode: rint(-2.5)=-2

Replacing -O1 with -O0 yields the expected -3 in the last line, but with -O1
(and -O2 etc), the second call to rint() is completely eliminated as can be
seen by examining the generated assembly.

The same bug is also present in 6.4.0 but not in 5.4.1 nor previous versions,
so it looks like rint() has somehow become marked as pure in gcc 6.
>From gcc-bugs-return-572758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 19:48:00 2017
Return-Path: <gcc-bugs-return-572758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40386 invoked by alias); 20 Aug 2017 19:48: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 40344 invoked by uid 48); 20 Aug 2017 19:47:56 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 2017 03:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on resolution short_desc everconfirmed
Message-ID: <bug-81906-4-WVMNT2f7PJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02317.txt.bz2
Content-length: 902

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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2017-08-20
         Resolution|INVALID                     |---
            Summary|Calls to rint() wrongly     |[7/8 Regression] Calls to
                   |optimized away starting in  |rint() wrongly optimized
                   |g++ 6                       |away starting in g++ 6
     Ever confirmed|0                           |1

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
Indeed you want -frounding-math, and with gcc-6 that makes things work, but
starting with gcc-7 it doesn't anymore. (gimple looks fine, the problem comes
later)
>From gcc-bugs-return-572757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 19:38:17 2017
Return-Path: <gcc-bugs-return-572757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14611 invoked by alias); 20 Aug 2017 19:38:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14576 invoked by uid 48); 20 Aug 2017 19:38:12 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81906] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 2017 03:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 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: bug_status resolution
Message-ID: <bug-81906-4-wcmPKqhcE5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02316.txt.bz2
Content-length: 601

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

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> ---
You want -frounding-math

. This option should be specified for programs that change the FP rounding mode
dynamically, or that may be executed with a non-default rounding mode.
>From gcc-bugs-return-572759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 20:46:19 2017
Return-Path: <gcc-bugs-return-572759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33256 invoked by alias); 20 Aug 2017 20:46: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 33187 invoked by uid 48); 20 Aug 2017 20:46:07 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53782] Pointer to static function member expression rejected in class template
Date: Mon, 21 Aug 2017 05:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc cf_known_to_work resolution cf_known_to_fail
Message-ID: <bug-53782-4-FiuOx710oh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53782-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53782-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02318.txt.bz2
Content-length: 624

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |msebor at gcc dot gnu.org
      Known to work|                            |7.2.0, 8.0
         Resolution|WORKSFORME                  |FIXED
      Known to fail|                            |4.8.0, 5.4.0, 6.3.0

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Bisection shows that this bug was fixed in r236221 (GCC 7.0).
>From gcc-bugs-return-572760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 21:01:48 2017
Return-Path: <gcc-bugs-return-572760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77578 invoked by alias); 20 Aug 2017 21:01: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 68939 invoked by uid 48); 20 Aug 2017 21:01:31 -0000
From: "roland.illig at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79883] avr i18n: untranslated "interrupt" or "signal"
Date: Mon, 21 Aug 2017 05: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.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: roland.illig at gmx dot de
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79883-4-NGTqkhXq8n@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02319.txt.bz2
Content-length: 498

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

Roland Illig <roland.illig at gmx dot de> changed:

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

--- Comment #11 from Roland Illig <roland.illig at gmx dot de> ---
Commit r250156 introduced a typo in avr.c: "indentifier" should be
"identifier".
>From gcc-bugs-return-572761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 21:13:46 2017
Return-Path: <gcc-bugs-return-572761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28313 invoked by alias); 20 Aug 2017 21:13: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 28209 invoked by uid 48); 20 Aug 2017 21:13:36 -0000
From: "al_thomason at iname dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81867] Internal completer error:  Segmentation Fault
Date: Mon, 21 Aug 2017 05: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: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: al_thomason at iname 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-81867-4-hqG8yvgtcn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81867-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81867-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02320.txt.bz2
Content-length: 250

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

--- Comment #3 from Al Thomason <al_thomason at iname dot com> ---
I will see if I am able to test using a newer rev, the GCC compiler seems to be
rather deeply embedded into the Arduino IDE...
>From gcc-bugs-return-572762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 21:32:22 2017
Return-Path: <gcc-bugs-return-572762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4019 invoked by alias); 20 Aug 2017 21: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 3941 invoked by uid 55); 20 Aug 2017 21:32:14 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81854] weak alias of an incompatible symbol accepted
Date: Mon, 21 Aug 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: 8.0
X-Bugzilla-Keywords: accepts-invalid, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81854-4-UAdEGRnxM9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81854-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81854-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02321.txt.bz2
Content-length: 561

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

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Sun Aug 20 21:31:39 2017
New Revision: 251211

URL: https://gcc.gnu.org/viewcvs?rev=251211&root=gcc&view=rev
Log:
libstdc++/ChangeLog:

        PR c/81854
        * src/c++98/compatibility.cc (_GLIBCXX_3_4_SYMVER): Declare alias
        target as a C++ function with no prototype.
        (_GLIBCXX_3_4_5_SYMVER): Ditto.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/src/c++98/compatibility.cc
>From gcc-bugs-return-572763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 21:34:36 2017
Return-Path: <gcc-bugs-return-572763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22895 invoked by alias); 20 Aug 2017 21:34: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 22751 invoked by uid 48); 20 Aug 2017 21:34:30 -0000
From: "vz-gcc at zeitlins dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 2017 05:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vz-gcc at zeitlins 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-81906-4-OUnAL2BoGU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02322.txt.bz2
Content-length: 745

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

--- Comment #3 from Vadim Zeitlin <vz-gcc at zeitlins dot org> ---
(In reply to Andrew Pinski from comment #1)
> You want -frounding-math

OK, thanks, this does indeed solve my immediate problem. However is it really
normal that the compiler behaviour silently (!) changes like this, in backwards
incompatible way between versions? I didn't remember seeing this change
mentioned in gcc 6 release notes and I just reread them again and can't find it
anywhere. I think changes silently breaking existing working (and standard
conforming) code should be at the very least prominently documented (and, of
course, ideally completely avoided IMO, but this ship has probably already
sailed).
>From gcc-bugs-return-572764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 22:01:14 2017
Return-Path: <gcc-bugs-return-572764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48360 invoked by alias); 20 Aug 2017 22:01:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48239 invoked by uid 48); 20 Aug 2017 22:01:02 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 2017 05:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81906-4-HmKsCK0t78@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02323.txt.bz2
Content-length: 1776

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Vadim Zeitlin from comment #3)
> (In reply to Andrew Pinski from comment #1)
> > You want -frounding-math
> 
> OK, thanks, this does indeed solve my immediate problem. However is it
> really normal that the compiler behaviour silently (!) changes like this, in
> backwards incompatible way between versions? I didn't remember seeing this
> change mentioned in gcc 6 release notes and I just reread them again and
> can't find it anywhere. I think changes silently breaking existing working
> (and standard conforming) code should be at the very least prominently
> documented (and, of course, ideally completely avoided IMO, but this ship
> has probably already sailed).

Yes and no.  Since this behavior has been documented this way since 4.4.0:
https://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Optimize-Options.html
-frounding-math
Disable transformations and optimizations that assume default floating point
rounding behavior. This is round-to-zero for all floating point to integer
conversions, and round-to-nearest for all other arithmetic truncations. ___This
option should be specified for programs that change the FP rounding mode
dynamically, or that may be executed with a non-default rounding mode.____ This
option disables constant folding of floating point expressions at compile-time
(which may be affected by rounding mode) and arithmetic transformations that
are unsafe in the presence of sign-dependent rounding modes.

Note I add ___.  So basically what changed between 5 and 6 was constant folding
of rint.  Since that is covered in the documentation, the change itself does
not need to be documented as happening.
>From gcc-bugs-return-572765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 22:08:12 2017
Return-Path: <gcc-bugs-return-572765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58717 invoked by alias); 20 Aug 2017 22:08:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 58644 invoked by uid 48); 20 Aug 2017 22:08:05 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81141] missing warning using sizeof a/sizeof *a with a zero-length array
Date: Mon, 21 Aug 2017 05:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81141-4-ugI56dMMou@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81141-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81141-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02324.txt.bz2
Content-length: 377

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

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to comment #3)

What I meant to say is: See also bug 81141 for a related request (limited to
strncpy).  The patch submitted there issues a warning for a small subset of the
problem (strncpy) but doesn't specifically deal with zero-length arrays.
>From gcc-bugs-return-572766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 22:09:38 2017
Return-Path: <gcc-bugs-return-572766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60289 invoked by alias); 20 Aug 2017 22:09:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 60126 invoked by uid 48); 20 Aug 2017 22:09:32 -0000
From: "vz-gcc at zeitlins dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 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: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vz-gcc at zeitlins 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-81906-4-go1bH6WAuw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02325.txt.bz2
Content-length: 777

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

--- Comment #5 from Vadim Zeitlin <vz-gcc at zeitlins dot org> ---
Yes, I did find this documentation myself in the meanwhile and I agree that
you're formally correct, just as gcc developers are formally correct in the
long discussion at #34678 (which I really wouldn't want to reopen), but this is
not very helpful in practice because this information is completely
undiscoverable, i.e. you can only find it if you already know what you're
looking for (or enjoy reading compiler optimization options documentation as a
hobby, of course).

Perhaps you could consider this as a QoI issue, but it would be really great if
gcc could give a warning if the code tries to use fesetround() without
-frounding-math being on.
>From gcc-bugs-return-572767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 22:25:47 2017
Return-Path: <gcc-bugs-return-572767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75024 invoked by alias); 20 Aug 2017 22:25: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 74924 invoked by uid 48); 20 Aug 2017 22:25:35 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 2017 07:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81906-4-UdFWUcXxl5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02326.txt.bz2
Content-length: 164

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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/wiki/FloatingPointMath
>From gcc-bugs-return-572768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 22:31:44 2017
Return-Path: <gcc-bugs-return-572768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78459 invoked by alias); 20 Aug 2017 22: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 78381 invoked by uid 48); 20 Aug 2017 22:31:38 -0000
From: "vz-gcc at zeitlins dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 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: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vz-gcc at zeitlins 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-81906-4-b3ZaypABLF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02327.txt.bz2
Content-length: 704

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

--- Comment #7 from Vadim Zeitlin <vz-gcc at zeitlins dot org> ---
(In reply to Andrew Pinski from comment #6)
> https://gcc.gnu.org/wiki/FloatingPointMath

Yes, I've seen this, thanks. But do you think it's easily discoverable? I admit
I had even seen this page (and knew about -frounding-math option) before
running into this problem after an upgrade to gcc 6 and it still wasn't obvious
to me that the problem was due to this. You might just think that I'm
abnormally clueless, but it seems to me that most people wouldn't be able to
realize the source of the problem immediately. So a warning from the compiler
would be really helpful IMO.
>From gcc-bugs-return-572770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 23:06:19 2017
Return-Path: <gcc-bugs-return-572770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2129 invoked by alias); 20 Aug 2017 23:06: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 2062 invoked by uid 48); 20 Aug 2017 23:06:13 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81296] derived type I/o problem
Date: Mon, 21 Aug 2017 07:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81296-4-pLDdAENoTH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02329.txt.bz2
Content-length: 381

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

--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Created attachment 42012
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42012&action=edit
A patch being tested.

This patch adds a check for the DT descriptor in the format label. Preliminary
test show that this fixes it. Regression testing now.
>From gcc-bugs-return-572769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 20 22:47:06 2017
Return-Path: <gcc-bugs-return-572769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117368 invoked by alias); 20 Aug 2017 22:46: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 116886 invoked by uid 48); 20 Aug 2017 22:46:04 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 2017 07:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81906-4-m7xBG9t6IJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02328.txt.bz2
Content-length: 802

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

--- Comment #8 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Vadim Zeitlin from comment #5)
> Perhaps you could consider this as a QoI issue, but it would be really great
> if gcc could give a warning if the code tries to use fesetround() without
> -frounding-math being on.

First note that even with -frounding-math, there are several bugs related to
rounding (maybe rint isn't considered pure, but operators like +-*/ are). Also,
there are ways (inline asm that hides optimization opportunities) to use
fesetround safely even with -fno-rounding-math (and it avoids the perf penalty
in places where we don't care about the rounding). Still, I guess we could
consider such a warning, if someone is willing to implement it...
>From gcc-bugs-return-572771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 02:52:29 2017
Return-Path: <gcc-bugs-return-572771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26168 invoked by alias); 21 Aug 2017 02:52: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 25928 invoked by uid 48); 21 Aug 2017 02:52:23 -0000
From: "dongkyun.s at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81907] New: undefined reference to `memset'
Date: Mon, 21 Aug 2017 07:47: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dongkyun.s at samsung dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-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-08/txt/msg02330.txt.bz2
Content-length: 1151

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

            Bug ID: 81907
           Summary: undefined reference to `memset'
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dongkyun.s at samsung dot com
  Target Milestone: ---

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

Compiling the attached source without memset trivial implementation,

Failed by undefined reference to `memset'
OPTFLAGS = -Os -g -mabi=aapcs -fno-function-sections -Wall -mfloat-abi=soft
-mtune=cortex-a9

Succeeded with option
OPTFLAGS = -Os -g -mabi=aapcs -fno-function-sections -Wall -mfloat-abi=soft
-mtune=cortex-a12

Using -O2 instead of -Os (Optimization level) also fix this fail.
What is different optimization behavior(implementation) in GCC between
cortex-a9 and cortex-a12 -given by mcpu or mtune option ?

Found related issue in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888.
>From gcc-bugs-return-572772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 03:56:11 2017
Return-Path: <gcc-bugs-return-572772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126257 invoked by alias); 21 Aug 2017 03: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 118505 invoked by uid 48); 21 Aug 2017 03:56:03 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81907] undefined reference to `memset'
Date: Mon, 21 Aug 2017 07:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget component cf_gcchost version cf_gccbuild
Message-ID: <bug-81907-4-BQa9Iv8kPU@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-08/txt/msg02331.txt.bz2
Content-length: 1104

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|link-failure                |
             Target|arm                         |arm-*-*
          Component|middle-end                  |target
               Host|x86                         |
            Version|6.3.1                       |unknown
              Build|x86                         |

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>What is different optimization behavior(implementation) in GCC between cortex-a9 and cortex-a12 -given by mcpu or mtune option ?

Different tuning.  Though maybe at -Os should be almost the same except for the
allowance for using the instructions that are in cortex-a12 rather than a9 (for
the -mcpu case). 

But really memset is part of the C standard here and you don't use
-fno-hoisting option; though IIRC that still requires memset being included in
your libc.
>From gcc-bugs-return-572773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 03:56:58 2017
Return-Path: <gcc-bugs-return-572773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27085 invoked by alias); 21 Aug 2017 03:56:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 26883 invoked by uid 48); 21 Aug 2017 03:56:52 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81907] undefined reference to `memset'
Date: Mon, 21 Aug 2017 08:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81907-4-tSWe4qfLzE@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-08/txt/msg02332.txt.bz2
Content-length: 266

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to dongkyun.s from comment #0)
> Found related issue in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888.

Unrelated bug report.
>From gcc-bugs-return-572774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 03:59:14 2017
Return-Path: <gcc-bugs-return-572774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30339 invoked by alias); 21 Aug 2017 03:59:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30256 invoked by uid 48); 21 Aug 2017 03:59:07 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81907] undefined reference to `memset'
Date: Mon, 21 Aug 2017 08:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia 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-81907-4-bzoQqbPQWk@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-08/txt/msg02333.txt.bz2
Content-length: 545

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

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

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Not a bug, see PR 63393 comment #5 for explanation of why.

*** This bug has been marked as a duplicate of bug 63393 ***
>From gcc-bugs-return-572775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 03:59:15 2017
Return-Path: <gcc-bugs-return-572775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30347 invoked by alias); 21 Aug 2017 03:59:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30279 invoked by uid 48); 21 Aug 2017 03:59:08 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/63393] [regression]-ffreestanding not work: memset call cause valgrind crash
Date: Mon, 21 Aug 2017 08:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
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: cc
Message-ID: <bug-63393-4-nxYJtvdMj2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02334.txt.bz2
Content-length: 450

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dongkyun.s at samsung dot com

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 81907 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-572777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 05:15:02 2017
Return-Path: <gcc-bugs-return-572777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91420 invoked by alias); 21 Aug 2017 05:12: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 120603 invoked by uid 48); 21 Aug 2017 05:10:19 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81903] compiler reports a language problem (Invalid character in name at)
Date: Mon, 21 Aug 2017 08:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81903-4-grJeR9C1qL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81903-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02336.txt.bz2
Content-length: 1128

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |janus at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from janus at gcc dot gnu.org ---
Slightly reduced test case:


Module TestMod_C
  Implicit None

  Type :: TestType_A
    Real :: a
  End type

  Type :: TestType_B
   Real :: a
  End type

  Type :: TestType_C
    Class(TestType_A), Pointer :: TT_A(:)
    Type(TestType_B), Allocatable :: TT_B(:)
  End type

contains

    Subroutine SubSetPt(this)
      class(TestType_C), Intent(InOut), Target :: this
      integer :: i
      associate(x=>this%TT_B,y=>this%TT_A)
        Do i=1,size(x)
          x(i)%a=>y(i)%a
        End Do
      end associate
    End Subroutine

End Module
>From gcc-bugs-return-572778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 05:23:46 2017
Return-Path: <gcc-bugs-return-572778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37602 invoked by alias); 21 Aug 2017 05:23: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 29722 invoked by uid 48); 21 Aug 2017 05:22:03 -0000
From: "dongkyun.s at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81907] undefined reference to `memset'
Date: Mon, 21 Aug 2017 08: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dongkyun.s at samsung dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-81907-4-ul76WWC7an@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-08/txt/msg02337.txt.bz2
Content-length: 2355

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

dongkyun.s at samsung dot com changed:

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

--- Comment #5 from dongkyun.s at samsung dot com ---
Created attachment 42016
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42016&action=edit
obj made by '-Os -mtune=cortex-a9'

./gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-objdump
-d memset_test_cortex-a9.o

memset_test_cortex-a9.o:     file format elf32-littlearm


Disassembly of section .text:

00000000 <func1>:
   0:   b530            push    {r4, r5, lr}
   2:   f1a0 0208       sub.w   r2, r0, #8
   6:   460c            mov     r4, r1
   8:   2300            movs    r3, #0
   a:   2000            movs    r0, #0
   c:   2100            movs    r1, #0
   e:   42a3            cmp     r3, r4
  10:   db00            blt.n   14 <func1+0x14>
  12:   bd30            pop     {r4, r5, pc}
  14:   f852 5f08       ldr.w   r5, [r2, #8]!
  18:   3301            adds    r3, #1
  1a:   1940            adds    r0, r0, r5
  1c:   eb41 71e5       adc.w   r1, r1, r5, asr #31
  20:   e7f5            b.n     e <func1+0xe>

00000022 <test_func>:
  22:   b51f            push    {r0, r1, r2, r3, r4, lr}
  24:   2210            movs    r2, #16
  26:   2100            movs    r1, #0
  28:   4668            mov     r0, sp
  2a:   f7ff fffe       bl      0 <memset>
  2e:   490a            ldr     r1, [pc, #40]   ; (58 <test_func+0x36>)
  30:   2200            movs    r2, #0
  32:   780c            ldrb    r4, [r1, #0]
  34:   7908            ldrb    r0, [r1, #4]
  36:   4623            mov     r3, r4
  38:   4302            orrs    r2, r0
  3a:   4668            mov     r0, sp
  3c:   e9cd 2300       strd    r2, r3, [sp]
  40:   2300            movs    r3, #0
  42:   788a            ldrb    r2, [r1, #2]
  44:   f043 0307       orr.w   r3, r3, #7
  48:   2102            movs    r1, #2
  4a:   e9cd 2302       strd    r2, r3, [sp, #8]
  4e:   f7ff fffe       bl      0 <func1>
  52:   b004            add     sp, #16
  54:   bd10            pop     {r4, pc}
  56:   bf00            nop
  58:   00000000        .word   0x00000000
>From gcc-bugs-return-572776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 05:04:23 2017
Return-Path: <gcc-bugs-return-572776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14161 invoked by alias); 21 Aug 2017 05:04: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 14107 invoked by uid 48); 21 Aug 2017 05:04:17 -0000
From: "dongkyun.s at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81907] undefined reference to `memset'
Date: Mon, 21 Aug 2017 08: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dongkyun.s at samsung dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81907-4-sBYCXD0nrr@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-08/txt/msg02335.txt.bz2
Content-length: 2078

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

--- Comment #4 from dongkyun.s at samsung dot com ---
Created attachment 42014
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42014&action=edit
memset_test_cortex-a9.o (made by '-Os -mtune=cortex-a12')

./gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-objdump
-d memset_test_cortex-a12.o

memset_test_cortex-a12.o:     file format elf32-littlearm


Disassembly of section .text:

00000000 <func1>:
   0:   b530            push    {r4, r5, lr}
   2:   f1a0 0208       sub.w   r2, r0, #8
   6:   460c            mov     r4, r1
   8:   2300            movs    r3, #0
   a:   2000            movs    r0, #0
   c:   2100            movs    r1, #0
   e:   42a3            cmp     r3, r4
  10:   db00            blt.n   14 <func1+0x14>
  12:   bd30            pop     {r4, r5, pc}
  14:   f852 5f08       ldr.w   r5, [r2, #8]!
  18:   3301            adds    r3, #1
  1a:   1940            adds    r0, r0, r5
  1c:   eb41 71e5       adc.w   r1, r1, r5, asr #31
  20:   e7f5            b.n     e <func1+0xe>

00000022 <test_func>:
  22:   b51f            push    {r0, r1, r2, r3, r4, lr}
  24:   2200            movs    r2, #0
  26:   490c            ldr     r1, [pc, #48]   ; (58 <test_func+0x36>)
  28:   2300            movs    r3, #0
  2a:   e9cd 2300       strd    r2, r3, [sp]
  2e:   e9cd 2302       strd    r2, r3, [sp, #8]
  32:   780c            ldrb    r4, [r1, #0]
  34:   7908            ldrb    r0, [r1, #4]
  36:   4623            mov     r3, r4
  38:   4302            orrs    r2, r0
  3a:   e9cd 2300       strd    r2, r3, [sp]
  3e:   788a            ldrb    r2, [r1, #2]
  40:   2300            movs    r3, #0
  42:   4668            mov     r0, sp
  44:   f043 0307       orr.w   r3, r3, #7
  48:   2102            movs    r1, #2
  4a:   e9cd 2302       strd    r2, r3, [sp, #8]
  4e:   f7ff fffe       bl      0 <func1>
  52:   b004            add     sp, #16
  54:   bd10            pop     {r4, pc}
  56:   bf00            nop
  58:   00000000        .word   0x00000000
>From gcc-bugs-return-572779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 05:35:35 2017
Return-Path: <gcc-bugs-return-572779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97808 invoked by alias); 21 Aug 2017 05:35: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 97766 invoked by uid 48); 21 Aug 2017 05:35:30 -0000
From: "dongkyun.s at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81907] undefined reference to `memset'
Date: Mon, 21 Aug 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: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dongkyun.s at samsung dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81907-4-psWUOZAPXM@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-08/txt/msg02338.txt.bz2
Content-length: 2056

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

--- Comment #6 from dongkyun.s at samsung dot com ---
Created attachment 42017
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42017&action=edit
obj made by '-Os -mtune=cortex-a12'

./gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-objdump
-d memset_test_cortex-a12.o

memset_test_cortex-a12.o:     file format elf32-littlearm


Disassembly of section .text:

00000000 <func1>:
   0:   b530            push    {r4, r5, lr}
   2:   f1a0 0208       sub.w   r2, r0, #8
   6:   460c            mov     r4, r1
   8:   2300            movs    r3, #0
   a:   2000            movs    r0, #0
   c:   2100            movs    r1, #0
   e:   42a3            cmp     r3, r4
  10:   db00            blt.n   14 <func1+0x14>
  12:   bd30            pop     {r4, r5, pc}
  14:   f852 5f08       ldr.w   r5, [r2, #8]!
  18:   3301            adds    r3, #1
  1a:   1940            adds    r0, r0, r5
  1c:   eb41 71e5       adc.w   r1, r1, r5, asr #31
  20:   e7f5            b.n     e <func1+0xe>

00000022 <test_func>:
  22:   b51f            push    {r0, r1, r2, r3, r4, lr}
  24:   2200            movs    r2, #0
  26:   490c            ldr     r1, [pc, #48]   ; (58 <test_func+0x36>)
  28:   2300            movs    r3, #0
  2a:   e9cd 2300       strd    r2, r3, [sp]
  2e:   e9cd 2302       strd    r2, r3, [sp, #8]
  32:   780c            ldrb    r4, [r1, #0]
  34:   7908            ldrb    r0, [r1, #4]
  36:   4623            mov     r3, r4
  38:   4302            orrs    r2, r0
  3a:   e9cd 2300       strd    r2, r3, [sp]
  3e:   788a            ldrb    r2, [r1, #2]
  40:   2300            movs    r3, #0
  42:   4668            mov     r0, sp
  44:   f043 0307       orr.w   r3, r3, #7
  48:   2102            movs    r1, #2
  4a:   e9cd 2302       strd    r2, r3, [sp, #8]
  4e:   f7ff fffe       bl      0 <func1>
  52:   b004            add     sp, #16
  54:   bd10            pop     {r4, pc}
  56:   bf00            nop
  58:   00000000        .word   0x00000000
>From gcc-bugs-return-572780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 05:41:50 2017
Return-Path: <gcc-bugs-return-572780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15480 invoked by alias); 21 Aug 2017 05:41: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 12564 invoked by uid 48); 21 Aug 2017 05:41:41 -0000
From: "amodra at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug inline-asm/81890] asm memory constraints are difficult and not well documented
Date: Mon, 21 Aug 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: inline-asm
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: documentation, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amodra at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: amodra at gmail dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status bug_file_loc assigned_to
Message-ID: <bug-81890-4-OrLbH5vl6c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81890-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81890-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02339.txt.bz2
Content-length: 634

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
             Status|NEW                         |ASSIGNED
                URL|                            |https://gcc.gnu.org/ml/gcc-
                   |                            |patches/2017-08/msg01174.ht
                   |                            |ml
           Assignee|unassigned at gcc dot gnu.org      |amodra at gmail dot com
>From gcc-bugs-return-572781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 05:51:25 2017
Return-Path: <gcc-bugs-return-572781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129951 invoked by alias); 21 Aug 2017 05:51:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 129656 invoked by uid 48); 21 Aug 2017 05:51:16 -0000
From: "dongkyun.s at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81907] undefined reference to `memset'
Date: Mon, 21 Aug 2017 09:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dongkyun.s at samsung dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81907-4-8oLqhMqeHm@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-08/txt/msg02340.txt.bz2
Content-length: 2397

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

dongkyun.s at samsung dot com changed:

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

--- Comment #7 from dongkyun.s at samsung dot com ---
> Different tuning.  Though maybe at -Os should be almost the same except for the allowance for using the instructions that are in cortex-a12 rather than a9 (for the -mcpu case). 
I attached .o files made by '-mtune=cortex-a9' and 'mtune=cortex-a12' (same as
-mcpu case).
Could you describe more in detail about this why memset is added on cortex-a9
or below ?

memset_test_cortex-a9.o:     file format elf32-littlearm
Disassembly of section .text:
...
00000022 <test_func>:
  22:   b51f            push    {r0, r1, r2, r3, r4, lr}
  24:   2210            movs    r2, #16
  26:   2100            movs    r1, #0
  28:   4668            mov     r0, sp
  2a:   f7ff fffe       bl      0 <memset>

> But really memset is part of the C standard here and you don't use -fno-hoisting option; 
Which option do you mean? (I'm sorry, but, fno-hoisting is not found)

> Not a bug, see PR 63393 comment #5 for explanation of why.
This is not related to freestanding implementations. Again, option is different
by '-mcpu or -mtune' only.

(1) CFLAGS: -Os -mtune=cortex-a9
(CC) memset_test.o
(CC) main.o
gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-ld
-Bstatic -o memset_test \
        memset_test.o main.o \
        --start-group
-L/home/dongkyun.s/tmp/memset_test/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1
-lgcc --end-group -Map memset_test.map #--gc-sections
memset_test.c:(.text+0x2a): undefined reference to `memset'

(2) CFLAGS: -Os -mtune=cortex-a12
(CC) memset_test.o
(CC) main.o
gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-ld
-Bstatic -o memset_test \
        memset_test.o main.o \
        --start-group
-L/home/dongkyun.s/tmp/memset_test/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1
-lgcc --end-group -Map memset_test.map #--gc-sections
BUILD_TARGETS=memset_test.bin memset_test.txt memset_test.dis memset_test.ver
Build Done!
>From gcc-bugs-return-572782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 05:54:47 2017
Return-Path: <gcc-bugs-return-572782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69505 invoked by alias); 21 Aug 2017 05:54: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 69471 invoked by uid 48); 21 Aug 2017 05:54:41 -0000
From: "pinskia at gcc dot gnu.org" <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: Mon, 21 Aug 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: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords short_desc bug_severity
Message-ID: <bug-81907-4-O4nzz3R7I5@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-08/txt/msg02341.txt.bz2
Content-length: 880

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
            Summary|undefined reference to      |memset called when it does
                   |`memset'                    |not need to be;
                   |                            |-mtune=cortex-a9
           Severity|normal                      |enhancement

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>This is not related to freestanding implementations.

Huh?  Since you are not linking against the C library, it has to be.
or you mean this should be optimized not to use memset; different question from
what your summary is about.
>From gcc-bugs-return-572783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 06:07:56 2017
Return-Path: <gcc-bugs-return-572783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23546 invoked by alias); 21 Aug 2017 06:07: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 23485 invoked by uid 48); 21 Aug 2017 06:07:49 -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: Mon, 21 Aug 2017 09:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: dongkyun.s at samsung 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-81907-4-ARVDuNKwtm@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-08/txt/msg02342.txt.bz2
Content-length: 334

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

--- Comment #9 from dongkyun.s at samsung dot com ---
> or you mean this should be optimized not to use memset; different question from what your summary is about.

I mean -ffreestanding or -fno-freestanding are not included in this testcase,
but, mtune/ mcpu option.
Thanks!
>From gcc-bugs-return-572784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 07:05:42 2017
Return-Path: <gcc-bugs-return-572784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127524 invoked by alias); 21 Aug 2017 07:05: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 126653 invoked by uid 48); 21 Aug 2017 07:05:35 -0000
From: "pinskia at gcc dot gnu.org" <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: Mon, 21 Aug 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: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81907-4-kbuuZ3duIH@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-08/txt/msg02343.txt.bz2
Content-length: 619

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

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to dongkyun.s from comment #9)
> I mean -ffreestanding or -fno-freestanding are not included in this
> testcase, but, mtune/ mcpu option.
Yes but your summary was saying memset was missing which is not correct and
would cause this bug report to be invalid.  But in reality you are complaining
that the memset was not needed in the first place why is it being used for
-mtune=cortex-a9  when doing -mtune=cortex-a12 can get away with not needing
memset.

Two different issues :).
>From gcc-bugs-return-572785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 07:17:39 2017
Return-Path: <gcc-bugs-return-572785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4069 invoked by alias); 21 Aug 2017 07:17: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 3971 invoked by uid 48); 21 Aug 2017 07:17:33 -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: Mon, 21 Aug 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: 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: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81907-4-wBFr6LrLhV@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-08/txt/msg02344.txt.bz2
Content-length: 256

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

--- Comment #11 from dongkyun.s at samsung dot com ---
Dear pinskia@gcc.gnu.org,
Thanks for correcting title to "memset called when it does not need to be;
-mtune=cortex-a9" along with the comment :)
>From gcc-bugs-return-572786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 07:38:29 2017
Return-Path: <gcc-bugs-return-572786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48390 invoked by alias); 21 Aug 2017 07:38:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48264 invoked by uid 48); 21 Aug 2017 07:38:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81884] [6/7 Regression] Invalid code generation with zero size arrays or flexible array members
Date: Mon, 21 Aug 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: tree-optimization
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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-81884-4-k8eYFyiRaR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02345.txt.bz2
Content-length: 731

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |8.0
            Summary|[6/7/8 Regression] Invalid  |[6/7 Regression] Invalid
                   |code generation with zero   |code generation with zero
                   |size arrays or flexible     |size arrays or flexible
                   |array members               |array members
      Known to fail|                            |6.4.0, 7.2.0

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.
>From gcc-bugs-return-572788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 07:47:27 2017
Return-Path: <gcc-bugs-return-572788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117632 invoked by alias); 21 Aug 2017 07:47: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 117543 invoked by uid 48); 21 Aug 2017 07:47:23 -0000
From: "yroux at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81863] [7 regression] -mword-relocations is unreliable
Date: Mon, 21 Aug 2017 09:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yroux at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81863-4-ZRpOrRcOHZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02347.txt.bz2
Content-length: 885

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

--- Comment #8 from Yvan Roux <yroux at gcc dot gnu.org> ---
On 7 branch the following should fix the issue, but as I mentioned in comment
#5, maybe TARGET_USE_MOVT is a better place to do the checking but this will
need some 
s/TARGET_HAVE_MOVT/TARGET_USE_MOVT/ 

--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -272,7 +272,8 @@ extern tree arm_fp16_type_node;
                                 && arm_arch_notm)

 /* Nonzero if this chip provides the MOVW and MOVT instructions.  */
-#define TARGET_HAVE_MOVT       (arm_arch_thumb2 || arm_arch8)
+#define TARGET_HAVE_MOVT       ((arm_arch_thumb2 || arm_arch8) \
+                                && !target_word_relocations)

 /* Nonzero if this chip provides the CBZ and CBNZ instructions.  */
 #define TARGET_HAVE_CBZ                (arm_arch_thumb2 || arm_arch8)
>From gcc-bugs-return-572787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 07:38:43 2017
Return-Path: <gcc-bugs-return-572787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49631 invoked by alias); 21 Aug 2017 07:38:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 49010 invoked by uid 55); 21 Aug 2017 07:38:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81884] [6/7 Regression] Invalid code generation with zero size arrays or flexible array members
Date: Mon, 21 Aug 2017 09:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81884-4-MucZRo2A6S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02346.txt.bz2
Content-length: 683

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Aug 21 07:37:59 2017
New Revision: 251217

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

        PR middle-end/81884
        * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
        at struct end conservatively when comparing common bases.

        * g++.dg/torture/pr81884.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr81884.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-alias.c
>From gcc-bugs-return-572789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 07:51:33 2017
Return-Path: <gcc-bugs-return-572789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36729 invoked by alias); 21 Aug 2017 07: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 29857 invoked by uid 48); 21 Aug 2017 07:51:26 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81908] New: [8 Regression] FAIL: gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
Date: Mon, 21 Aug 2017 09:36: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: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02348.txt.bz2
Content-length: 2014

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

            Bug ID: 81908
           Summary: [8 Regression] FAIL:
                    gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---
            Target: i?86-*-*

spawn /home/abuild/rguenther/obj/gcc/testsuite/gfortran1/../../gfortran
-B/home/abuild/rguenther/obj/gcc/testsuite/gfortran1/../../
-B/home/abuild/rguenther/obj/x86_64-pc-linux-gnu/./libgfortran/
/space/rguenther/src/svn/trunk/gcc/testsuite/gfortran.dg/alloc_comp_auto_array_2.f90
-fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions -pedantic-errors
-B/home/abuild/rguenther/obj/x86_64-pc-linux-gnu/32/libgfortran/.libs
-L/home/abuild/rguenther/obj/x86_64-pc-linux-gnu/32/libgfortran/.libs
-L/home/abuild/rguenther/obj/x86_64-pc-linux-gnu/32/libgfortran/.libs
-L/home/abuild/rguenther/obj/x86_64-pc-linux-gnu/32/libatomic/.libs
-B/home/abuild/rguenther/obj/x86_64-pc-linux-gnu/32/libquadmath/.libs
-L/home/abuild/rguenther/obj/x86_64-pc-linux-gnu/32/libquadmath/.libs
-L/home/abuild/rguenther/obj/x86_64-pc-linux-gnu/32/libquadmath/.libs -lm -m32
-o ./alloc_comp_auto_array_2.exe^M
/space/rguenther/src/svn/trunk/gcc/testsuite/gfortran.dg/alloc_comp_auto_array_2.f90:33:0:
Warning: '__builtin_memcpy' specified size between 2147483648 and 4294967295
exceeds maximum object size 2147483647 [-Wstringop-overflow=]^M
output is:

since

2017-08-17  Richard Biener  <rguenther@suse.de>

        * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
        to true when overflow is undefined and we saturated the result.

or before -fstrict-overflow handling was removed from VRP.
>From gcc-bugs-return-572790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 08:21:10 2017
Return-Path: <gcc-bugs-return-572790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3476 invoked by alias); 21 Aug 2017 08:21: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 3038 invoked by uid 48); 21 Aug 2017 08:21:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81889] [7/8 Regression] bogus warnings with -Wmaybe-uninitialized -O3
Date: Mon, 21 Aug 2017 09:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone short_desc
Message-ID: <bug-81889-4-eMcVXIzJmj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81889-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02349.txt.bz2
Content-length: 503

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.3
            Summary|[7 Regression] bogus        |[7/8 Regression] bogus
                   |warnings with               |warnings with
                   |-Wmaybe-uninitialized -O3   |-Wmaybe-uninitialized -O3
>From gcc-bugs-return-572791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 08:31:38 2017
Return-Path: <gcc-bugs-return-572791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71253 invoked by alias); 21 Aug 2017 08:29:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69765 invoked by uid 48); 21 Aug 2017 08:28:01 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81892] suboptimal code for a if (p) free(p) else free(p)
Date: Mon, 21 Aug 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: 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-81892-4-kMFC6ZlclW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81892-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02350.txt.bz2
Content-length: 860

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
tail-merging is supposed to handle this I think but it gets defeated by
the removing the dead free(0) call.

We do preserve conditional free as conditional free (as it's faster).

So I think GCC works as designed on the testcase, transforming it to

 if (p)
   free (p);

at least at -Os we should change the above to free (p) I guess where we
have the duplicate bug for.

*** This bug has been marked as a duplicate of bug 80519 ***
>From gcc-bugs-return-572792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 08:42:43 2017
Return-Path: <gcc-bugs-return-572792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86453 invoked by alias); 21 Aug 2017 08:38: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 69965 invoked by uid 48); 21 Aug 2017 08:28:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80519] if(p)free(p) with -Os
Date: Mon, 21 Aug 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80519-4-QibnFmLLPx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80519-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80519-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02351.txt.bz2
Content-length: 184

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 81892 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-572794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 08:42:46 2017
Return-Path: <gcc-bugs-return-572794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91490 invoked by alias); 21 Aug 2017 08:42:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 73243 invoked by uid 48); 21 Aug 2017 08:31:07 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81897] [5/6/7/8 Regression] spurious -Wmaybe-uninitialized warning
Date: Mon, 21 Aug 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: middle-end
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone short_desc
Message-ID: <bug-81897-4-rhRrRiRkDW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02352.txt.bz2
Content-length: 601

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |5.5
            Summary|[5.4/6.4/7.2/8 Regression]  |[5/6/7/8 Regression]
                   |spurious                    |spurious
                   |-Wmaybe-uninitialized       |-Wmaybe-uninitialized
                   |warning                     |warning
>From gcc-bugs-return-572795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 08:42:44 2017
Return-Path: <gcc-bugs-return-572795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91518 invoked by alias); 21 Aug 2017 08:42:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 73246 invoked by uid 48); 21 Aug 2017 08:31:07 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class
Date: Mon, 21 Aug 2017 09:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-81898-4-CqX0vda5Nw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02353.txt.bz2
Content-length: 292

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
>From gcc-bugs-return-572793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 08:42:47 2017
Return-Path: <gcc-bugs-return-572793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90209 invoked by alias); 21 Aug 2017 08:40: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 73723 invoked by uid 48); 21 Aug 2017 08:31:36 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81899] [8 Regression] ICE: Segmentation fault
Date: Mon, 21 Aug 2017 09:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-81899-4-HfTXjHnHrZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02354.txt.bz2
Content-length: 292

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
>From gcc-bugs-return-572796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 08:51:53 2017
Return-Path: <gcc-bugs-return-572796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41597 invoked by alias); 21 Aug 2017 08:51: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 41483 invoked by uid 48); 21 Aug 2017 08:51:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81908] [8 Regression] FAIL: gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
Date: Mon, 21 Aug 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: 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: 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-81908-4-Bd5BJ5c3PD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02355.txt.bz2
Content-length: 2809

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |msebor at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

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

  [/tmp/trunk/gcc/testsuite/gfortran.dg/alloc_comp_auto_array_2.f90:33:0] #
RANGE [-2147483648, 0] NONZERO 4294967292
  _260 = ubound.2_35 * 4;
  [/tmp/trunk/gcc/testsuite/gfortran.dg/alloc_comp_auto_array_2.f90:33:0] #
RANGE ~[1, 2147483647] NONZERO 4294967292
  _261 = (character(kind=4)) _260;
...
  __builtin_memcpy (_264, _272, _261);

where the warning machinery simply doesn't consider the valid input _261 == 0.

get_size_range runs into

      else if (wi::eq_p (wzero, min - 1))
        {
          /* EXP is unsigned and not in the range [1, MAX].  That means
             it's either zero or greater than MAX.  Even though 0 would
             normally be detected by -Walloc-zero set the range to
             [MAX, TYPE_MAX] so that when MAX is greater than the limit
             the whole range is diagnosed.  */
          min = max + 1;
          max = wmaxval;

I totally detest this anti-range handling.  It's completely bogus.  For
whatever reason it _does_ want to diagnose here.

So - INVALID, working as designed?!

The comment is wrong btw,  EXP is in the range 0 U [max + 1, wmaxval].
'MAX' is used inconsistently -- nothing is bigger than 'MAX' unless
'MAX' is maximum value that is positive when interpreted signed.  But
wmaxval is unsigned.

Suggested patch:

Index: gcc/calls.c
===================================================================
--- gcc/calls.c (revision 251217)
+++ gcc/calls.c (working copy)
@@ -1327,7 +1327,8 @@ get_size_range (tree exp, tree range[2])
              min = wzero;
            }
        }
-      else if (wi::eq_p (wzero, min - 1))
+      else if (wi::eq_p (wzero, min - 1)
+              && wi::lts_p (max, wi::max_value (expprec, SIGNED)))
        {
          /* EXP is unsigned and not in the range [1, MAX].  That means
             it's either zero or greater than MAX.  Even though 0 would

that (for this sub-case of anit-range handling) tries to preserve
anti-range ^ valid-size-range if not empty.  I think that's a must
to get false positives to a minimum.
>From gcc-bugs-return-572798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:12:48 2017
Return-Path: <gcc-bugs-return-572798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76098 invoked by alias); 21 Aug 2017 09:12:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76056 invoked by uid 48); 21 Aug 2017 09:12:41 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81909] New: [nvptx] Missing warning in gcc.dg/pr53037-{2,3}.c
Date: Mon, 21 Aug 2017 10:03: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: 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-81909-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02357.txt.bz2
Content-length: 995

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

            Bug ID: 81909
           Summary: [nvptx] Missing warning in gcc.dg/pr53037-{2,3}.c
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

New FAIL: nvidia-1-serial-cuda_8.0.44/gcc.sum:gcc.dg/pr53037-2.c  (test for
warnings, line 16)
New FAIL: nvidia-1-serial-cuda_8.0.44/gcc.sum:gcc.dg/pr53037-2.c  (test for
warnings, line 32)
New FAIL: nvidia-1-serial-cuda_8.0.44/gcc.sum:gcc.dg/pr53037-2.c  (test for
warnings, line 8)
New FAIL: nvidia-1-serial-cuda_8.0.44/gcc.sum:gcc.dg/pr53037-3.c  (test for
warnings, line 16)
New FAIL: nvidia-1-serial-cuda_8.0.44/gcc.sum:gcc.dg/pr53037-3.c  (test for
warnings, line 32)
New FAIL: nvidia-1-serial-cuda_8.0.44/gcc.sum:gcc.dg/pr53037-3.c  (test for
warnings, line 8)
>From gcc-bugs-return-572797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 08:57:03 2017
Return-Path: <gcc-bugs-return-572797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67928 invoked by alias); 21 Aug 2017 08:57:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 67830 invoked by uid 48); 21 Aug 2017 08:56:57 -0000
From: "ard.biesheuvel at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81863] [7 regression] -mword-relocations is unreliable
Date: Mon, 21 Aug 2017 10:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ard.biesheuvel 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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81863-4-fuAQwYEcg4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02356.txt.bz2
Content-length: 1577

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

--- Comment #9 from ard.biesheuvel at linaro dot org ---
(In reply to Yvan Roux from comment #8)
> On 7 branch the following should fix the issue, but as I mentioned in
> comment #5, maybe TARGET_USE_MOVT is a better place to do the checking but
> this will need some 
> s/TARGET_HAVE_MOVT/TARGET_USE_MOVT/ 
> 
> --- a/gcc/config/arm/arm.h
> +++ b/gcc/config/arm/arm.h
> @@ -272,7 +272,8 @@ extern tree arm_fp16_type_node;
>                                  && arm_arch_notm)
>  
>  /* Nonzero if this chip provides the MOVW and MOVT instructions.  */
> -#define TARGET_HAVE_MOVT       (arm_arch_thumb2 || arm_arch8)
> +#define TARGET_HAVE_MOVT       ((arm_arch_thumb2 || arm_arch8) \
> +                                && !target_word_relocations)
>  
>  /* Nonzero if this chip provides the CBZ and CBNZ instructions.  */
>  #define TARGET_HAVE_CBZ                (arm_arch_thumb2 || arm_arch8)

OK, so this will disable *all* uses of movw/movt pairs even for constants or,
more importantly, relative references.

I am aware that GCC current never emits those, but for the kernel use case,
having GCC emit place-relative movw/movt pairs for PIC addressing rather than
literals (in case we are referencing symbols with external linkage and hidden
visibility) would be very useful (I'm aware the limited range of the addend
complicates this for static linkage). GOT indirection is pointless in the
kernel, because there is no preemption and there are no concerns regarding
locality or text relocations.
>From gcc-bugs-return-572799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:13:23 2017
Return-Path: <gcc-bugs-return-572799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77370 invoked by alias); 21 Aug 2017 09:13: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 77070 invoked by uid 48); 21 Aug 2017 09:13:17 -0000
From: "pipcet at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] [8 Regression] GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Mon, 21 Aug 2017 10:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pipcet 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-81900-4-us5I9r2g2b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02358.txt.bz2
Content-length: 1080

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

--- Comment #3 from pipcet at gmail dot com ---
I've investigated some more, and Mikael's bisection appears to confirm my
investigation:

The problem appears to be this chunk:

@@ -2418,7 +2423,9 @@ compute_antic (void)
   inverted_post_order_compute (&postorder);

   auto_sbitmap worklist (last_basic_block_for_fn (cfun) + 1);
-  bitmap_ones (worklist);
+  bitmap_clear (worklist);
+  FOR_EACH_EDGE (e, ei, EXIT_BLOCK_PTR_FOR_FN (cfun)->preds)
+    bitmap_set_bit (worklist, e->src->index);
   while (changed)
     { 
       if (dump_file && (dump_flags & TDF_DETAILS))


It assumes there are always edges from function calls to the exit block, when
the function call might exit nonlocally. However,
cfganal.c:add_noreturn_fake_exit_edges is never called for functions that call
setjmp, so such bbs are, wrongly, never visited by compute_antic.


The brute-force method of disabling the tree/PRE pass for functions that call
setjmp() appears to work and fix the issue, but I'm not sure that's the right
way to go.
>From gcc-bugs-return-572800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:17:50 2017
Return-Path: <gcc-bugs-return-572800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108006 invoked by alias); 21 Aug 2017 09:17: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 105098 invoked by uid 48); 21 Aug 2017 09:17:44 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81908] [8 Regression] FAIL: gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
Date: Mon, 21 Aug 2017 10:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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-81908-4-GQlIMtbwQg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02359.txt.bz2
Content-length: 4858

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Btw, the anti-ranges can be made "signed" by

  /* If we have an unsigned anti-range convert it to the respective
     signed type.  */
  if (range_type == VR_ANTI_RANGE
      && TYPE_UNSIGNED (exptype)
      && wi::les_p (max, min))
    {
      std::swap (max, min);
      min = min + 1;
      max = max - 1;
      range_type = VR_RANGE;
    }

simplifying the anti-range handling to just the signed case.  Then you
run into the same issue in the signed anti-range handling.

      else if (wi::les_p (min - 1, wzero))
        {
          /* EXP is not in a negative-positive range.  That means EXP
             is either negative, or greater than max.  Since negative
             sizes are invalid make the range [MAX + 1, TYPE_MAX].  */
          min = max + 1;
          max = wmaxval;
        }

this has to use wi::lts_p (or les_p (min, 0).

Suggested cleanup (untested):

Index: gcc/calls.c
===================================================================
--- gcc/calls.c (revision 251217)
+++ gcc/calls.c (working copy)
@@ -1279,8 +1279,9 @@ get_size_range (tree exp, tree range[2])
     }

   wide_int min, max;
+  tree exptype = TREE_TYPE (exp);
   enum value_range_type range_type
-    = ((TREE_CODE (exp) == SSA_NAME && INTEGRAL_TYPE_P (TREE_TYPE (exp)))
+    = ((TREE_CODE (exp) == SSA_NAME && INTEGRAL_TYPE_P (exptype))
        ? get_range_info (exp, &min, &max) : VR_VARYING);

   if (range_type == VR_VARYING)
@@ -1291,49 +1292,40 @@ get_size_range (tree exp, tree range[2])
       return false;
     }

-  tree exptype = TREE_TYPE (exp);
-  unsigned expprec = TYPE_PRECISION (exptype);
-  wide_int wzero = wi::zero (expprec);
-  wide_int wmaxval = wide_int (TYPE_MAX_VALUE (exptype));
-
-  bool signed_p = !TYPE_UNSIGNED (exptype);
+  /* If we have an unsigned anti-range convert it to the respective
+     signed type.  */
+  if (range_type == VR_ANTI_RANGE
+      && TYPE_UNSIGNED (exptype)
+      && wi::les_p (max, min))
+    {
+      std::swap (max, min);
+      min = min + 1;
+      max = max - 1;
+      range_type = VR_RANGE;
+    }

   if (range_type == VR_ANTI_RANGE)
     {
-      if (signed_p)
+      unsigned expprec = TYPE_PRECISION (exptype);
+      wide_int wzero = wi::zero (expprec);
+      wide_int wmaxval = wi::max_value (expprec, TYPE_SIGN (exptype));
+
+      if (wi::lts_p (max, wzero))
        {
-         if (wi::les_p (max, wzero))
-           {
-             /* EXP is not in a strictly negative range.  That means
-                it must be in some (not necessarily strictly) positive
-                range which includes zero.  Since in signed to unsigned
-                conversions negative values end up converted to large
-                positive values, and otherwise they are not valid sizes,
-                the resulting range is in both cases [0, TYPE_MAX].  */
-             min = wzero;
-             max = wmaxval;
-           }
-         else if (wi::les_p (min - 1, wzero))
-           {
-             /* EXP is not in a negative-positive range.  That means EXP
-                is either negative, or greater than max.  Since negative
-                sizes are invalid make the range [MAX + 1, TYPE_MAX].  */
-             min = max + 1;
-             max = wmaxval;
-           }
-         else
-           {
-             max = min - 1;
-             min = wzero;
-           }
+         /* EXP is not in a strictly negative range.  That means
+            it must be in some (not necessarily strictly) positive
+            range which includes zero.  Since in signed to unsigned
+            conversions negative values end up converted to large
+            positive values, and otherwise they are not valid sizes,
+            the resulting range is in both cases [0, TYPE_MAX].  */
+         min = wzero;
+         max = wmaxval;
        }
-      else if (wi::eq_p (wzero, min - 1))
+      else if (wi::les_p (min, wzero))
        {
-         /* EXP is unsigned and not in the range [1, MAX].  That means
-            it's either zero or greater than MAX.  Even though 0 would
-            normally be detected by -Walloc-zero set the range to
-            [MAX, TYPE_MAX] so that when MAX is greater than the limit
-            the whole range is diagnosed.  */
+         /* EXP is not in a negative-positive range.  That means EXP
+            is either negative, or greater than max.  Since negative
+            sizes are invalid make the range [MAX + 1, TYPE_MAX].  */
          min = max + 1;
          max = wmaxval;
        }
>From gcc-bugs-return-572801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:28:52 2017
Return-Path: <gcc-bugs-return-572801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79963 invoked by alias); 21 Aug 2017 09:28: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 76135 invoked by uid 48); 21 Aug 2017 09:28:47 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81863] [7 regression] -mword-relocations is unreliable
Date: Mon, 21 Aug 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: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81863-4-EASFKzITNT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02360.txt.bz2
Content-length: 646

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

--- Comment #10 from Arnd Bergmann <arnd at linaro dot org> ---
(In reply to Yvan Roux from comment #8)
>  
>  /* Nonzero if this chip provides the MOVW and MOVT instructions.  */
> -#define TARGET_HAVE_MOVT       (arm_arch_thumb2 || arm_arch8)
> +#define TARGET_HAVE_MOVT       ((arm_arch_thumb2 || arm_arch8) \
> +                                && !target_word_relocations)


Confirmed, this addresses the link error for all kernel configurations for me
on gcc-7-branch (eight failing random configurations out of ~1000, failing in
five different source files without this patch).
>From gcc-bugs-return-572802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:31:31 2017
Return-Path: <gcc-bugs-return-572802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88241 invoked by alias); 21 Aug 2017 09:31: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 88198 invoked by uid 48); 21 Aug 2017 09:31:26 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81904] FMA and addsub instructions
Date: Mon, 21 Aug 2017 10:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81904-4-ewNafZ78YF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81904-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81904-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02361.txt.bz2
Content-length: 1357

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hmm, I think the issue is we see

f (__m128d x, __m128d y, __m128d z)
{
  vector(2) double _4;
  vector(2) double _6;

  <bb 2> [100.00%]:
  _4 = x_2(D) * y_3(D);
  _6 = __builtin_ia32_addsubpd (_4, z_5(D)); [tail call]
  return _6;

the vectorizer will implement addsub as

  _6 = _4 + z_5(D);
  _7 = _4 - z_5(D);
  _8 = __builtin_shuffle (_6, _7, {0, 1});
  return _8;

which would then end up as (if the non-single use allows)

  _6 = FMA <x_2, y_3, z_5(D)>
  _9 = -z_5(D);
  _7 = FMA <x_2, y_3, _9>
  _8 = __builtin_shuffle (_6, _7, {0, 1});
  return _8;

a bit interesting for combine to figure out but theoretically possible?
(I think we expand both FMAs properly).

Look at the addsub patterns.

That is, handling this requires open-coding _mm_addsub_pd with add, sub
and suffle ...
>From gcc-bugs-return-572803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:35:15 2017
Return-Path: <gcc-bugs-return-572803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107045 invoked by alias); 21 Aug 2017 09:35:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 106929 invoked by uid 48); 21 Aug 2017 09:35:09 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81904] FMA and addsub instructions
Date: Mon, 21 Aug 2017 10:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81904-4-a1Glo6bic5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81904-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81904-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02362.txt.bz2
Content-length: 613

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
__m128d h(__m128d x, __m128d y, __m128d z){
    __m128d tem = _mm_mul_pd (x,y);
    __m128d tem2 = tem + z;
    __m128d tem3 = tem - z;
    return __builtin_shuffle (tem2, tem3, (__m128i) {0, 3});
}

doesn't quite work (the combiner pattern for fmaddsub is missing).  Tried {0,
2} as well.

:
.LFB5021:
        .cfi_startproc
        vmovapd %xmm0, %xmm3
        vfmsub132pd     %xmm1, %xmm2, %xmm0
        vfmadd132pd     %xmm1, %xmm2, %xmm3
        vshufpd $2, %xmm0, %xmm3, %xmm0
>From gcc-bugs-return-572804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:36:25 2017
Return-Path: <gcc-bugs-return-572804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22409 invoked by alias); 21 Aug 2017 09:36:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22250 invoked by uid 48); 21 Aug 2017 09:36:20 -0000
From: "ktkachov at gcc dot gnu.org" <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: Mon, 21 Aug 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: 6.3.1
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-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-81907-4-9QY6lDfHtH@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-08/txt/msg02363.txt.bz2
Content-length: 682

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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |ktkachov at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #12 from ktkachov at gcc dot gnu.org ---
Confirmed the call on 6.4.1 but GCC 7 and trunk don't generate the call for
-mcpu=cortex-a9 .
I don't know off the top of my head what change fixed this though.
>From gcc-bugs-return-572805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:36:34 2017
Return-Path: <gcc-bugs-return-572805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23248 invoked by alias); 21 Aug 2017 09: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 22882 invoked by uid 48); 21 Aug 2017 09:36:28 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81910] New: [avr] ICE with "address" attribute on type
Date: Mon, 21 Aug 2017 10:41: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl 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-81910-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02364.txt.bz2
Content-length: 965

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

            Bug ID: 81910
           Summary: [avr] ICE with "address" attribute on type
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

struct { char a; } __attribute((address(1)));

ICEs the compiler:

cc1: warning: 'address' attribute only applies to variables
x.c:1:8: internal compiler error: Segmentation fault
 struct { char a; } __attribute((address(1)));
        ^
0xc32e2a lookup_attribute
        ../../../gcc.gnu.org/gcc-7-branch/gcc/tree.h:4194
0xc32e2a avr_handle_addr_attribute
        ../../../gcc.gnu.org/gcc-7-branch/gcc/config/avr/avr.c:9584
0x5a04a8 decl_attributes(tree_node**, tree_node*, int)
        ../../../gcc.gnu.org/gcc-7-branch/gcc/attribs.c:548
...
>From gcc-bugs-return-572806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:36:55 2017
Return-Path: <gcc-bugs-return-572806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24179 invoked by alias); 21 Aug 2017 09: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 24097 invoked by uid 48); 21 Aug 2017 09:36:51 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81910] [avr] ICE with "address" attribute on type
Date: Mon, 21 Aug 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: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget priority
Message-ID: <bug-81910-4-L4oAx7mPSP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02365.txt.bz2
Content-length: 412

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Target|                            |avr
           Priority|P3                          |P5
>From gcc-bugs-return-572807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:38:52 2017
Return-Path: <gcc-bugs-return-572807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29618 invoked by alias); 21 Aug 2017 09:38:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 29446 invoked by uid 48); 21 Aug 2017 09:38:44 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81901] false-positive -Warray-bounds
Date: Mon, 21 Aug 2017 10:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81901-4-NtvT4vnRJi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81901-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81901-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02366.txt.bz2
Content-length: 683

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-21
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
whoo, obfuscation.  For i = 0x30 we run into case 0x00, i & 0x0f < 8 is true
but you still access a[0x30]?  Do you want to access a[i & 0xf]?
>From gcc-bugs-return-572808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:42:01 2017
Return-Path: <gcc-bugs-return-572808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33888 invoked by alias); 21 Aug 2017 09:42:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 33803 invoked by uid 48); 21 Aug 2017 09:41:56 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81724] ICE in expand_stack_vars
Date: Mon, 21 Aug 2017 10:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
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:
Message-ID: <bug-81724-4-CDMGOQMXW5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81724-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81724-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02367.txt.bz2
Content-length: 369

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
More complete failure list:
...
FAIL: gcc.dg/stack-layout-dynamic-1.c (internal compiler error)
FAIL: gcc.dg/memcmp-1.c (internal compiler error)
FAIL: gcc.dg/strcmp-1.c (internal compiler error)
FAIL: gcc.dg/strncmp-1.c (internal compiler error)
...
>From gcc-bugs-return-572809-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:46:13 2017
Return-Path: <gcc-bugs-return-572809-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86322 invoked by alias); 21 Aug 2017 09:46: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 84871 invoked by uid 48); 21 Aug 2017 09:45:59 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81911] New: Constant expression from permitted result of a constant expression is not constexpr
Date: Mon, 21 Aug 2017 11:07: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: antoshkka at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81911-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02368.txt.bz2
Content-length: 1270

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

            Bug ID: 81911
           Summary: Constant expression from permitted result of a
                    constant expression is not constexpr
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

The following code fails to compile:



int main() {
    static const char someVar[] = "str";
    constexpr auto c0 = someVar[0];
}



error: the value of 'someVar' is not usable in a constant expression
     constexpr auto c0 = someVar[0];
                                  ^



This seems to be an error:

"In any constexpr variable declaration, the full-expression of the
initialization shall be a constant expression [expr.const]"

Where [expr.const] has the paragraphs:

"A constant expression is either a glvalue core constant expression that refers
to an entity that is a permitted result of a constant expression <skip>

An entity is a permitted result of a constant expression if it is an object
with static storage duration that is either not a temporary object <skip>"
>From gcc-bugs-return-572810-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:46:57 2017
Return-Path: <gcc-bugs-return-572810-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89093 invoked by alias); 21 Aug 2017 09:46:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 88950 invoked by uid 48); 21 Aug 2017 09:46:52 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 2017 11:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget priority component target_milestone
Message-ID: <bug-81906-4-vihV48TfMd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02369.txt.bz2
Content-length: 1226

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Target|                            |x86_64-*-*, i?86-*-*
           Priority|P3                          |P2
          Component|c++                         |target
   Target Milestone|---                         |7.3

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
rint () is inlined into an SSE sequence:

void
ix86_expand_rint (rtx operand0, rtx operand1)
{
  /* C code for the stuff we're doing below:
        xa = fabs (operand1);
        if (!isless (xa, 2**52))
          return operand1;
        xa = xa + 2**52 - 2**52;
        return copysign (xa, operand1);
   */

that doesn't work for rounding modes != to-nearest.  Previously we had
the pattern guarded by !flag_trapping_math.  Thus with GCC 6 the bug
persists with -frounding-math -fno-trapping-math.

For ! TARGET_ROUND we need to use ! flag_rounding_math (or fix the code
sequence in case there exists one that works).
>From gcc-bugs-return-572811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:48:06 2017
Return-Path: <gcc-bugs-return-572811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90827 invoked by alias); 21 Aug 2017 09:48:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90657 invoked by uid 48); 21 Aug 2017 09:47:57 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] [8 Regression] GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Mon, 21 Aug 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: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed
Message-ID: <bug-81900-4-m2LylqiGZ3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02370.txt.bz2
Content-length: 622

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-21
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-572812-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:53:06 2017
Return-Path: <gcc-bugs-return-572812-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91760 invoked by alias); 21 Aug 2017 09:53:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91673 invoked by uid 48); 21 Aug 2017 09:52:58 -0000
From: "vermaelen.wouter at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81901] false-positive -Warray-bounds
Date: Mon, 21 Aug 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: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vermaelen.wouter 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-81901-4-YFqK2bn0N7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81901-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81901-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02371.txt.bz2
Content-length: 415

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

--- Comment #2 from Wouter Vermaelen <vermaelen.wouter at gmail dot com> ---
Euhm, i=0x30 should not enter case 0x00. (Or did you mean the analysis pass
that produces the warning). This code should not store anything to a[].

(I know this reduced function is useless/obfuscated. The original code before
minimizing and manual inlining made more sense ;-)
>From gcc-bugs-return-572813-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 09:58:57 2017
Return-Path: <gcc-bugs-return-572813-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110244 invoked by alias); 21 Aug 2017 09:58: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 110179 invoked by uid 48); 21 Aug 2017 09:58:53 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Mon, 21 Aug 2017 11:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: schwab@linux-m68k.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-53037-4-7htOuhog67@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02372.txt.bz2
Content-length: 330

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

--- Comment #34 from Andreas Schwab <schwab@linux-m68k.org> ---
On ia64:

FAIL: g++.dg/pr53037-4.C  -std=gnu++11 (test for excess errors)
Excess errors:
/usr/local/gcc/gcc-20170821/gcc/testsuite/g++.dg/pr53037-4.C:9:1: error:
alignment for 'void foo2()' must be at least 16
>From gcc-bugs-return-572814-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:03:05 2017
Return-Path: <gcc-bugs-return-572814-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66077 invoked by alias); 21 Aug 2017 10:03:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65905 invoked by uid 48); 21 Aug 2017 10:03:01 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Mon, 21 Aug 2017 11:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: schwab@linux-m68k.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-53037-4-TBIZp4rtqq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02373.txt.bz2
Content-length: 1092

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

--- Comment #35 from Andreas Schwab <schwab@linux-m68k.org> ---
On m68k:

FAIL: gcc.dg/pr53037-1.c  (test for warnings, line 42)
FAIL: gcc.dg/pr53037-1.c  (test for warnings, line 75)
FAIL: gcc.dg/pr53037-1.c (test for excess errors)
Excess errors:
/daten/aranym/gcc/gcc-20170821/gcc/testsuite/gcc.dg/pr53037-1.c:42:1: warning:
alignment 2 of 'struct foo5' is less than 16 [-Wif-not-aligned]
/daten/aranym/gcc/gcc-20170821/gcc/testsuite/gcc.dg/pr53037-1.c:75:1: warning:
alignment 2 of 'union bar3' is less than 16 [-Wif-not-aligned]

FAIL: g++.dg/pr53037-1.C  -std=gnu++98  (test for warnings, line 38)
FAIL: g++.dg/pr53037-1.C  -std=gnu++98  (test for warnings, line 71)
FAIL: g++.dg/pr53037-1.C  -std=gnu++98 (test for excess errors)
Excess errors:
/daten/aranym/gcc/gcc-20170821/gcc/testsuite/g++.dg/pr53037-1.C:38:8: warning:
alignment 2 of 'foo5' is less than 16 [-Wif-not-aligned]
/daten/aranym/gcc/gcc-20170821/gcc/testsuite/g++.dg/pr53037-1.C:71:7: warning:
alignment 2 of 'bar3' is less than 16 [-Wif-not-aligned]
>From gcc-bugs-return-572815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:03:49 2017
Return-Path: <gcc-bugs-return-572815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68124 invoked by alias); 21 Aug 2017 10:03: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 68020 invoked by uid 48); 21 Aug 2017 10:03:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] [8 Regression] GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Mon, 21 Aug 2017 11:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
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: 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-81900-4-wREmkhoigz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02374.txt.bz2
Content-length: 1172

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
So while there is one simple issue with the iteration, fix:

@@ -2119,14 +2170,13 @@ static sbitmap has_abnormal_preds;
 static bool
 compute_antic_aux (basic_block block, bool block_has_abnormal_pred_edge)
 {
-  bool changed = false;
   bitmap_set_t S, old, ANTIC_OUT;
   bitmap_iterator bi;
   unsigned int bii;
   edge e;
   edge_iterator ei;
-  bool was_visited = BB_VISITED (block);

+  bool changed = ! BB_VISITED (block);
   old = ANTIC_OUT = S = NULL;
   BB_VISITED (block) = 1;

@@ -2217,7 +2267,7 @@ compute_antic_aux (basic_block block, bo
   /* clean (ANTIC_IN (block)) is defered to after the iteration converged
      because it can cause non-convergence, see for example PR81181.  */

-  if (!was_visited || !bitmap_set_equal (old, ANTIC_IN (block)))
+  if (!bitmap_set_equal (old, ANTIC_IN (block)))
     changed = true;

  maybe_dump_sets:

there is another issue as we think *_7 is antic and thus hoist the dereference
before the _7 == 0 check which will optimize that away as not necessary in
a later pass.
>From gcc-bugs-return-572816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:16:39 2017
Return-Path: <gcc-bugs-return-572816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108111 invoked by alias); 21 Aug 2017 10:16:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107995 invoked by uid 48); 21 Aug 2017 10:16:19 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] [8 Regression] GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Mon, 21 Aug 2017 12:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81900-4-ZOLzc1K6o0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02375.txt.bz2
Content-length: 404

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

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

@@ -2396,9 +2446,6 @@ compute_antic (void)
        if (e->flags & EDGE_ABNORMAL)
          {
            bitmap_set_bit (has_abnormal_preds, block->index);
-
-           /* We also anticipate nothing.  */
-           BB_VISITED (block) = 1;
            break;
          }
>From gcc-bugs-return-572817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:26:53 2017
Return-Path: <gcc-bugs-return-572817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117600 invoked by alias); 21 Aug 2017 10:26:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 114672 invoked by uid 48); 21 Aug 2017 10:26:47 -0000
From: "gcc at hazardy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81912] New: std::distance not constexpr in C++17 mode
Date: Mon, 21 Aug 2017 12:11: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: gcc at hazardy dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-81912-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02376.txt.bz2
Content-length: 4945

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

            Bug ID: 81912
           Summary: std::distance not constexpr in C++17 mode
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc at hazardy dot de
  Target Milestone: ---

Created attachment 42018
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42018&action=edit
The test file.

Although std::distance is marked with _GLIBCXX17_CONSTEXPR the called
std::__iterator_category is not and thus std::distance can not be called in a
constexpr environment.

Tested with MinGW 7.1 on Windows and GCC 7.1 and 7.2 on godbolt [1]. The only
parameter used is -std=c++1z.

[1] https://godbolt.org/g/87Edtw

$ g++ -v
Using built-in specs.
COLLECT_GCC=E:\MinGW64\bin\g++.exe
COLLECT_LTO_WRAPPER=E:/MinGW64/bin/../libexec/gcc/x86_64-w64-mingw32/7.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-7.1.0/configure --host=x86_64-w64-mingw32
--build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64
--with-sysroot=/c/mingw710/x86_64-710-posix-seh-rt_v5-rev0/mingw64
--enable-shared --enable-static --disable-multilib
--enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes
--enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto
--enable-graphite --enable-checking=release --enable-fully-dynamic-string
--enable-version-specific-runtime-libs --enable-libstdcxx-filesystem-ts=yes
--disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona
--with-tune=core2 --with-libiconv --with-system-zlib
--with-gmp=/c/mingw710/prerequisites/x86_64-w64-mingw32-static
--with-mpfr=/c/mingw710/prerequisites/x86_64-w64-mingw32-static
--with-mpc=/c/mingw710/prerequisites/x86_64-w64-mingw32-static
--with-isl=/c/mingw710/prerequisites/x86_64-w64-mingw32-static
--with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project'
--with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe
-fno-ident -I/c/mingw710/x86_64-710-posix-seh-rt_v5-rev0/mingw64/opt/include
-I/c/mingw710/prerequisites/x86_64-zlib-static/include
-I/c/mingw710/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2
-pipe -fno-ident
-I/c/mingw710/x86_64-710-posix-seh-rt_v5-rev0/mingw64/opt/include
-I/c/mingw710/prerequisites/x86_64-zlib-static/include
-I/c/mingw710/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS='
-I/c/mingw710/x86_64-710-posix-seh-rt_v5-rev0/mingw64/opt/include
-I/c/mingw710/prerequisites/x86_64-zlib-static/include
-I/c/mingw710/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe
-fno-ident -L/c/mingw710/x86_64-710-posix-seh-rt_v5-rev0/mingw64/opt/lib
-L/c/mingw710/prerequisites/x86_64-zlib-static/lib
-L/c/mingw710/prerequisites/x86_64-w64-mingw32-static/lib '
Thread model: posix
gcc version 7.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)

$ g++ -std=c++1z test.cpp
test.cpp: In function 'int main()':
test.cpp:6:5: error: non-constant condition for static assertion
     static_assert(std::distance(a.begin(), a.end()) == 2);
     ^~~~~~~~~~~~~
test.cpp:6:32: error: 'constexpr typename
std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator,
_InputIterator) [with _InputIterator = int*; typename
std::iterator_traits<_Iterator>::difference_type = long long int]' called in a
constant expression
     static_assert(std::distance(a.begin(), a.end()) == 2);
                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from
E:/MinGW64/lib/gcc/x86_64-w64-mingw32/7.1.0/include/c++/bits/stl_algobase.h:66:0,
                 from
E:/MinGW64/lib/gcc/x86_64-w64-mingw32/7.1.0/include/c++/algorithm:61,
                 from test.cpp:1:
E:/MinGW64/lib/gcc/x86_64-w64-mingw32/7.1.0/include/c++/bits/stl_iterator_base_funcs.h:138:5:
note: 'constexpr typename std::iterator_traits<_Iterator>::difference_type
std::distance(_InputIterator, _InputIterator) [with _InputIterator = int*;
typename std::iterator_traits<_Iterator>::difference_type = long long int]' is
not usable as a constexpr function because:
     distance(_InputIterator __first, _InputIterator __last)
     ^~~~~~~~
E:/MinGW64/lib/gcc/x86_64-w64-mingw32/7.1.0/include/c++/bits/stl_iterator_base_funcs.h:142:33:
error: call to non-constexpr function 'typename
std::iterator_traits<_Iterator>::iterator_category
std::__iterator_category(const _Iter&) [with _Iter = int*; typename
std::iterator_traits<_Iterator>::iterator_category =
std::random_access_iterator_tag]'
         std::__iterator_category(__first));
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
>From gcc-bugs-return-572818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:27:32 2017
Return-Path: <gcc-bugs-return-572818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9428 invoked by alias); 21 Aug 2017 10:27:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3263 invoked by uid 48); 21 Aug 2017 10:27:27 -0000
From: "gcc at hazardy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81912] std::distance not constexpr in C++17 mode
Date: Mon, 21 Aug 2017 12:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gcc at hazardy 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: attachments.created
Message-ID: <bug-81912-4-us62b7VyCi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81912-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02377.txt.bz2
Content-length: 255

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

--- Comment #1 from Björn Schäpers <gcc at hazardy dot de> ---
Created attachment 42019
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42019&action=edit
The preprocessed test file.
>From gcc-bugs-return-572819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:34:32 2017
Return-Path: <gcc-bugs-return-572819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70335 invoked by alias); 21 Aug 2017 10:34: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 70102 invoked by uid 48); 21 Aug 2017 10:34:28 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81912] std::distance not constexpr in C++17 mode
Date: Mon, 21 Aug 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: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed
Message-ID: <bug-81912-4-g7iSA7NcMn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81912-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02378.txt.bz2
Content-length: 605

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-21
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
   Target Milestone|---                         |7.3
     Ever confirmed|0                           |1
>From gcc-bugs-return-572820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:37:32 2017
Return-Path: <gcc-bugs-return-572820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118321 invoked by alias); 21 Aug 2017 10:37: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 116345 invoked by uid 48); 21 Aug 2017 10:37:28 -0000
From: "d.v.a at ngs dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/60936] [5/6 Regression] Binary code bloat with std::string
Date: Mon, 21 Aug 2017 12: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: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: d.v.a at ngs dot ru
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60936-4-2y8jAOKxYp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02379.txt.bz2
Content-length: 150

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

--- Comment #34 from __vic <d.v.a at ngs dot ru> ---
Fixed in 7.1.
Shouldn't we close this bug?
>From gcc-bugs-return-572821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:39:17 2017
Return-Path: <gcc-bugs-return-572821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96712 invoked by alias); 21 Aug 2017 10: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 94403 invoked by uid 48); 21 Aug 2017 10:39:11 -0000
From: "freddy77 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81879] Bad compilation of small program if LTO is used
Date: Mon, 21 Aug 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: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: freddy77 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-81879-4-G3yiFkSC4c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81879-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81879-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02380.txt.bz2
Content-length: 1812

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

--- Comment #3 from Frediano Ziglio <freddy77 at gmail dot com> ---
I noted that during the link the resolution file using -static or not is
different

without -static

750 6dacea834fb099d1 PREVAILING_DEF_IRONLY _ZNKSt5ctypeIcE8do_widenEc
753 6dacea834fb099d1 PREVAILING_DEF main
738 6dacea834fb099d1 RESOLVED_EXEC
_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
743 6dacea834fb099d1 RESOLVED_EXEC
_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
797 6dacea834fb099d1 UNDEF _ZSt4cout
761 6dacea834fb099d1 RESOLVED_EXEC _ZNSt8ios_base4InitD1Ev
766 6dacea834fb099d1 RESOLVED_EXEC _ZNKSt5ctypeIcE13_M_widen_initEv
771 6dacea834fb099d1 RESOLVED_EXEC _ZSt16__throw_bad_castv
776 6dacea834fb099d1 RESOLVED_EXEC _ZNSo5flushEv
782 6dacea834fb099d1 RESOLVED_EXEC _ZNSo3putEc
788 6dacea834fb099d1 RESOLVED_EXEC atexit
791 6dacea834fb099d1 RESOLVED_EXEC _ZNSt8ios_base4InitC1Ev

with -static

750 1b64a3a32ab1e36a PREEMPTED_REG _ZNKSt5ctypeIcE8do_widenEc
753 1b64a3a32ab1e36a PREVAILING_DEF main
738 1b64a3a32ab1e36a RESOLVED_EXEC
_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
743 1b64a3a32ab1e36a RESOLVED_EXEC
_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
797 1b64a3a32ab1e36a RESOLVED_EXEC _ZSt4cout
761 1b64a3a32ab1e36a RESOLVED_EXEC _ZNSt8ios_base4InitD1Ev
766 1b64a3a32ab1e36a RESOLVED_EXEC _ZNKSt5ctypeIcE13_M_widen_initEv
771 1b64a3a32ab1e36a RESOLVED_EXEC _ZSt16__throw_bad_castv
776 1b64a3a32ab1e36a RESOLVED_EXEC _ZNSo5flushEv
782 1b64a3a32ab1e36a RESOLVED_EXEC _ZNSo3putEc
788 1b64a3a32ab1e36a RESOLVED_EXEC atexit
791 1b64a3a32ab1e36a RESOLVED_EXEC _ZNSt8ios_base4InitC1Ev


Specifically the _ZNKSt5ctypeIcE8do_widenEc (our missing function) in the
failing case is PREEMPTED_REG while with the successful one is
PREVAILING_DEF_IRONLY.
>From gcc-bugs-return-572822-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:41:38 2017
Return-Path: <gcc-bugs-return-572822-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67952 invoked by alias); 21 Aug 2017 10:41:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 67866 invoked by uid 48); 21 Aug 2017 10:41:33 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/60936] [5/6 Regression] Binary code bloat with std::string
Date: Mon, 21 Aug 2017 12:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60936-4-RGUzitTzr6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02381.txt.bz2
Content-length: 232

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

--- Comment #35 from Richard Biener <rguenth at gcc dot gnu.org> ---
We keep regression bugs open until all maintained branches close to be able to
correctly set known-to-fail
>From gcc-bugs-return-572823-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:44:33 2017
Return-Path: <gcc-bugs-return-572823-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57422 invoked by alias); 21 Aug 2017 10: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 55483 invoked by uid 48); 21 Aug 2017 10:44:29 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81913] New: [8 Regression] wrong code at -O1
Date: Mon, 21 Aug 2017 12: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zsojka at seznam dot cz
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created
Message-ID: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02382.txt.bz2
Content-length: 1647

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

            Bug ID: 81913
           Summary: [8 Regression] wrong code at -O1
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

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

$ x86_64-pc-linux-gnu-gcc -O testcase.c
$ ./a.out
Aborted

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-251215-checking-yes-rtl-df-extra-nographite-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-251215-checking-yes-rtl-df-extra-nographite-amd64
Thread model: posix
gcc version 8.0.0 20170821 (experimental) (GCC) 


All tested targets are affected (not x86 specific).
>From gcc-bugs-return-572824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:57:11 2017
Return-Path: <gcc-bugs-return-572824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113693 invoked by alias); 21 Aug 2017 10:57: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 106712 invoked by uid 48); 21 Aug 2017 10:57:05 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81913] [8 Regression] wrong code at -O1
Date: Mon, 21 Aug 2017 12: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: 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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on cf_known_to_work target_milestone everconfirmed
Message-ID: <bug-81913-4-8jdnqbEqbx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02383.txt.bz2
Content-length: 644

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
      Known to work|                            |7.2.0
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-572825-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 10:59:52 2017
Return-Path: <gcc-bugs-return-572825-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54500 invoked by alias); 21 Aug 2017 10:59: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 54057 invoked by uid 48); 21 Aug 2017 10:59:46 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81913] [8 Regression] wrong code at -O1
Date: Mon, 21 Aug 2017 12:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.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: 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-81913-4-Amh09RLqhW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02384.txt.bz2
Content-length: 777

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

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

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
It's SCEV const-prop aka final value replacement (and thus likely niter
analysis):

Analyzing # of iterations of loop 1
  exit condition [0, + , 5] <= 0
  bounds on difference of bases: 0 ... 0
  result:
    # of iterations 1, bounded by 1
Replacing uses of: e_5 with: 4266897156
gimple_simplified to if (1 != 0)
>From gcc-bugs-return-572826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 11:07:43 2017
Return-Path: <gcc-bugs-return-572826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26726 invoked by alias); 21 Aug 2017 11:07:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 26630 invoked by uid 48); 21 Aug 2017 11:07:38 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81913] [8 Regression] wrong code at -O1
Date: Mon, 21 Aug 2017 13:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-81913-4-3Mkugq3uJm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02385.txt.bz2
Content-length: 401

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

amker at gcc dot gnu.org changed:

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

--- Comment #3 from amker at gcc dot gnu.org ---
Thanks for reporting, I will investigate this.
>From gcc-bugs-return-572827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 11:11:51 2017
Return-Path: <gcc-bugs-return-572827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32733 invoked by alias); 21 Aug 2017 11:11: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 32644 invoked by uid 48); 21 Aug 2017 11:11:46 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81913] [8 Regression] wrong code at -O1
Date: Mon, 21 Aug 2017 13:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.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: P1
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81913-4-Q17iAJRoth@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02386.txt.bz2
Content-length: 410

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

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

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r249778.
>From gcc-bugs-return-572828-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 11:16:59 2017
Return-Path: <gcc-bugs-return-572828-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28115 invoked by alias); 21 Aug 2017 11:16:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27461 invoked by uid 48); 21 Aug 2017 11:16:51 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81913] [8 Regression] wrong code at -O1
Date: Mon, 21 Aug 2017 13:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81913-4-lO3m2iKiXu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02387.txt.bz2
Content-length: 229

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

--- Comment #5 from amker at gcc dot gnu.org ---
(In reply to Martin Liška from comment #4)
> Started with r249778.

Looks like overflow handling.  Thanks for bisecting.
>From gcc-bugs-return-572829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 11:40:38 2017
Return-Path: <gcc-bugs-return-572829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31218 invoked by alias); 21 Aug 2017 11:40: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 31146 invoked by uid 48); 21 Aug 2017 11:40:33 -0000
From: "bugzilla@poradnik-webmastera.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81914] New: gcc 7.1 generates branch for code which was branchless in earlier gcc version
Date: Mon, 21 Aug 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: c
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bugzilla@poradnik-webmastera.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81914-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02388.txt.bz2
Content-length: 922

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

            Bug ID: 81914
           Summary: gcc 7.1 generates branch for code which was branchless
                    in earlier gcc version
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugzilla@poradnik-webmastera.com
  Target Milestone: ---

Code:

#include <stdint.h>

int cmp(int64_t a, int64_t b)
{
    return a < b ? -1 : a > b;
}

Above function compiled with gcc 4.5 or above and -O2 is compiled in following
way. It is branchless:

cmp(long, long):
  xor eax, eax
  cmp rdi, rsi
  mov edx, -1
  setg al
  cmovl eax, edx
  ret

gcc 7.1 generates different code. It has branch:

cmp(long, long):
  cmp rdi, rsi
  jl .L3
  setg al
  movzx eax, al
  ret
.L3:
  mov eax, -1
  ret
>From gcc-bugs-return-572830-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 11:41:40 2017
Return-Path: <gcc-bugs-return-572830-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39024 invoked by alias); 21 Aug 2017 11:41: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 38503 invoked by uid 48); 21 Aug 2017 11:41:34 -0000
From: "nico at josuttis dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81915] New: bug with thread_local inline variables
Date: Mon, 21 Aug 2017 14:17: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: nico at josuttis 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-81915-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02389.txt.bz2
Content-length: 1202

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

            Bug ID: 81915
           Summary: bug with thread_local inline variables
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nico at josuttis dot de
  Target Milestone: ---

Consider:

inlinetls.hpp:
  #include <string>
  inline thread_local std::string tlsString = "hello";

inlinetls1.cpp:
  #include "inlinetls.hpp"
  int main()
  {
  }

inlinetls2.cpp:
  #include "inlinetls.hpp"

IMO, this is valid code since C++17 having a thread-local tlsString.

But I get:
> /cygdrive/p/gcc/gcc72/bin/g++72 --std=c++17 -O2 --pedantic --pedantic-errors -Wall -Wextra -Wnon-virtual-dtor -Wconversion inlinetls1.cpp inlinetls2.cpp -latomic -o inlinetlsraw17.exe
> /cygdrive/c/Users/nico/AppData/Local/Temp/ccyiFSQ3.o:inlinetls2.cpp:(.text+0x0): multiple definition of `TLS init function for tlsString[abi:cxx11]'
> /cygdrive/c/Users/nico/AppData/Local/Temp/cc5mSIJv.o:inlinetls1.cpp:(.text+0x0): first defined here
> collect2: error: ld returned 1 exit status
>From gcc-bugs-return-572831-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 11:47:29 2017
Return-Path: <gcc-bugs-return-572831-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119007 invoked by alias); 21 Aug 2017 11:47: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 112471 invoked by uid 48); 21 Aug 2017 11:47:23 -0000
From: "noloader at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/67317] [x86] Silly code generation for _addcarry_u32/_addcarry_u64
Date: Mon, 21 Aug 2017 14:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
X-Bugzilla-Who: noloader at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 5.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-67317-4-9I2gSemoNt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67317-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67317-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02390.txt.bz2
Content-length: 573

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

Jeffrey Walton <noloader at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |noloader at gmail dot com

--- Comment #10 from Jeffrey Walton <noloader at gmail dot com> ---
I'm not sure why Bugzilla did not return this result when I searched for the
instructions earlier. Adding search terms that might help others find this:

    ADCX
    adcx
    ADOX
    adox
>From gcc-bugs-return-572832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 11:50:20 2017
Return-Path: <gcc-bugs-return-572832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62505 invoked by alias); 21 Aug 2017 11:50:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 62467 invoked by uid 48); 21 Aug 2017 11:50:16 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81914] [7/8 Regression] gcc 7.1 generates branch for code which was branchless in earlier gcc version
Date: Mon, 21 Aug 2017 14:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc component short_desc everconfirmed
Message-ID: <bug-81914-4-xS7LfJlnrS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81914-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81914-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02391.txt.bz2
Content-length: 923

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |mpolacek at gcc dot gnu.org
          Component|c                           |middle-end
            Summary|gcc 7.1 generates branch    |[7/8 Regression] gcc 7.1
                   |for code which was          |generates branch for code
                   |branchless in earlier gcc   |which was branchless in
                   |version                     |earlier gcc version
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r237185.
>From gcc-bugs-return-572833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:05:42 2017
Return-Path: <gcc-bugs-return-572833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88082 invoked by alias); 21 Aug 2017 12:05: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 85777 invoked by uid 48); 21 Aug 2017 12:05:36 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81915] bug with thread_local inline variables
Date: Mon, 21 Aug 2017 14:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81915-4-idKrOQL2gb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81915-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81915-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02392.txt.bz2
Content-length: 446

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

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

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

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Must be a target issue. What target are you on?
>From gcc-bugs-return-572834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:11:40 2017
Return-Path: <gcc-bugs-return-572834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96176 invoked by alias); 21 Aug 2017 12:11: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 96112 invoked by uid 48); 21 Aug 2017 12:11:35 -0000
From: "pipcet at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] [8 Regression] GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Mon, 21 Aug 2017 14:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pipcet at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81900-4-FS66cia8OR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02393.txt.bz2
Content-length: 151

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

--- Comment #7 from pipcet at gmail dot com ---
I can confirm that fixes things here, thank you!
>From gcc-bugs-return-572835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:16:31 2017
Return-Path: <gcc-bugs-return-572835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26244 invoked by alias); 21 Aug 2017 12:16: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 26160 invoked by uid 48); 21 Aug 2017 12:16:26 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81915] bug with thread_local inline variables
Date: Mon, 21 Aug 2017 14:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
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: UNCONFIRMED
X-Bugzilla-Resolution:
X-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 component
Message-ID: <bug-81915-4-2AxWlWeB5M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81915-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81915-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02394.txt.bz2
Content-length: 454

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |*-*-cygwin
          Component|c++                         |target

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, this works OK on GNU/Linux.
>From gcc-bugs-return-572836-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:23:49 2017
Return-Path: <gcc-bugs-return-572836-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43207 invoked by alias); 21 Aug 2017 12:23: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 43112 invoked by uid 48); 21 Aug 2017 12:23:44 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Mon, 21 Aug 2017 14: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, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-53037-4-ugbx0yLHwB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02395.txt.bz2
Content-length: 468

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

--- Comment #36 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andreas Schwab from comment #34)
> On ia64:
> 
> FAIL: g++.dg/pr53037-4.C  -std=gnu++11 (test for excess errors)
> Excess errors:
> /usr/local/gcc/gcc-20170821/gcc/testsuite/g++.dg/pr53037-4.C:9:1: error:
> alignment for 'void foo2()' must be at least 16

A patch is posted at

https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01192.html
>From gcc-bugs-return-572837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:25:15 2017
Return-Path: <gcc-bugs-return-572837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45114 invoked by alias); 21 Aug 2017 12:25: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 44974 invoked by uid 48); 21 Aug 2017 12:25:05 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Mon, 21 Aug 2017 14:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-53037-4-kAnexddGkB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02396.txt.bz2
Content-length: 1250

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

--- Comment #37 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andreas Schwab from comment #35)
> On m68k:
> 
> FAIL: gcc.dg/pr53037-1.c  (test for warnings, line 42)
> FAIL: gcc.dg/pr53037-1.c  (test for warnings, line 75)
> FAIL: gcc.dg/pr53037-1.c (test for excess errors)
> Excess errors:
> /daten/aranym/gcc/gcc-20170821/gcc/testsuite/gcc.dg/pr53037-1.c:42:1:
> warning: alignment 2 of 'struct foo5' is less than 16 [-Wif-not-aligned]
> /daten/aranym/gcc/gcc-20170821/gcc/testsuite/gcc.dg/pr53037-1.c:75:1:
> warning: alignment 2 of 'union bar3' is less than 16 [-Wif-not-aligned]
> 
> FAIL: g++.dg/pr53037-1.C  -std=gnu++98  (test for warnings, line 38)
> FAIL: g++.dg/pr53037-1.C  -std=gnu++98  (test for warnings, line 71)
> FAIL: g++.dg/pr53037-1.C  -std=gnu++98 (test for excess errors)
> Excess errors:
> /daten/aranym/gcc/gcc-20170821/gcc/testsuite/g++.dg/pr53037-1.C:38:8:
> warning: alignment 2 of 'foo5' is less than 16 [-Wif-not-aligned]
> /daten/aranym/gcc/gcc-20170821/gcc/testsuite/g++.dg/pr53037-1.C:71:7:
> warning: alignment 2 of 'bar3' is less than 16 [-Wif-not-aligned]

A patch is posted at

https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01193.html
>From gcc-bugs-return-572838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:27:28 2017
Return-Path: <gcc-bugs-return-572838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48363 invoked by alias); 21 Aug 2017 12:27:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48279 invoked by uid 48); 21 Aug 2017 12:27:23 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81914] [7/8 Regression] gcc 7.1 generates branch for code which was branchless in earlier gcc version
Date: Mon, 21 Aug 2017 14:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget target_milestone
Message-ID: <bug-81914-4-YbbIiOiOG4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81914-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81914-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02397.txt.bz2
Content-length: 483

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*, i?86-*-*
   Target Milestone|---                         |7.3

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
But are you sure the branchless variant is faster?
>From gcc-bugs-return-572840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:43:24 2017
Return-Path: <gcc-bugs-return-572840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17647 invoked by alias); 21 Aug 2017 12:43:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 17576 invoked by uid 55); 21 Aug 2017 12:43:20 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79883] avr i18n: untranslated "interrupt" or "signal"
Date: Mon, 21 Aug 2017 14:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79883-4-f11UwkSFAZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02399.txt.bz2
Content-length: 456

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

--- Comment #13 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Mon Aug 21 12:42:47 2017
New Revision: 251224

URL: https://gcc.gnu.org/viewcvs?rev=251224&root=gcc&view=rev
Log:
        PR target/79883
        * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.

Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/avr/avr.c
>From gcc-bugs-return-572839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:40:43 2017
Return-Path: <gcc-bugs-return-572839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11526 invoked by alias); 21 Aug 2017 12:40:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11351 invoked by uid 55); 21 Aug 2017 12:40:38 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79883] avr i18n: untranslated "interrupt" or "signal"
Date: Mon, 21 Aug 2017 14:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79883-4-SEbxMo6Pif@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02398.txt.bz2
Content-length: 424

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

--- Comment #12 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Mon Aug 21 12:39:59 2017
New Revision: 251223

URL: https://gcc.gnu.org/viewcvs?rev=251223&root=gcc&view=rev
Log:
        PR target/79883
        * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr.c
>From gcc-bugs-return-572841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:45:04 2017
Return-Path: <gcc-bugs-return-572841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24028 invoked by alias); 21 Aug 2017 12:45: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 23900 invoked by uid 55); 21 Aug 2017 12:44:57 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79883] avr i18n: untranslated "interrupt" or "signal"
Date: Mon, 21 Aug 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: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79883-4-sdy5uA6nKP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02400.txt.bz2
Content-length: 456

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

--- Comment #14 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Mon Aug 21 12:44:23 2017
New Revision: 251225

URL: https://gcc.gnu.org/viewcvs?rev=251225&root=gcc&view=rev
Log:
        PR target/79883
        * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.

Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/avr/avr.c
>From gcc-bugs-return-572842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 12:46:15 2017
Return-Path: <gcc-bugs-return-572842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19191 invoked by alias); 21 Aug 2017 12:46: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 3131 invoked by uid 48); 21 Aug 2017 12:46:05 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79883] avr i18n: untranslated "interrupt" or "signal"
Date: Mon, 21 Aug 2017 15:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79883-4-md4S1wWsIs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02401.txt.bz2
Content-length: 421

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

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

--- Comment #15 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
#
>From gcc-bugs-return-572843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 13:19:13 2017
Return-Path: <gcc-bugs-return-572843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47088 invoked by alias); 21 Aug 2017 13:19:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 43092 invoked by uid 48); 21 Aug 2017 13:18:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] [8 Regression] GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Mon, 21 Aug 2017 15: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: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: 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-81900-4-xOkUnfSw9D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02402.txt.bz2
Content-length: 429

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

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

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-572844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 13:19:19 2017
Return-Path: <gcc-bugs-return-572844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48399 invoked by alias); 21 Aug 2017 13:19:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 47594 invoked by uid 55); 21 Aug 2017 13:19:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81900] [8 Regression] GCC trunk miscompiles Perl / __sigsetjmp issue
Date: Mon, 21 Aug 2017 15:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81900-4-L54MN6suqa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81900-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02403.txt.bz2
Content-length: 733

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

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Aug 21 13:18:35 2017
New Revision: 251226

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

        PR tree-optimization/81900
        * tree-ssa-pre.c (compute_antic_aux): Properly compute changed
        for blocks with abnormal predecessors.
        (compute_antic): Do not set visited flag prematurely.

        * gcc.dg/torture/pr81900.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr81900.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-pre.c
>From gcc-bugs-return-572845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 13:30:02 2017
Return-Path: <gcc-bugs-return-572845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128175 invoked by alias); 21 Aug 2017 13:30: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 127766 invoked by uid 55); 21 Aug 2017 13:29:53 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81899] [8 Regression] ICE: Segmentation fault
Date: Mon, 21 Aug 2017 15:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81899-4-5VPfzLOzQ4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02404.txt.bz2
Content-length: 608

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

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Mon Aug 21 13:29:20 2017
New Revision: 251227

URL: https://gcc.gnu.org/viewcvs?rev=251227&root=gcc&view=rev
Log:
        PR c++/81899
        * pt.c (instantiate_class_template_1):
        BOUND_TEMPLATE_TEMPLATE_PARM is never friend-injected.

        PR c++/81899
        * g++.dg/template/pr81899.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/pr81899.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 13:32:59 2017
Return-Path: <gcc-bugs-return-572846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5594 invoked by alias); 21 Aug 2017 13:32: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 5527 invoked by uid 48); 21 Aug 2017 13:32:54 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81899] [8 Regression] ICE: Segmentation fault
Date: Mon, 21 Aug 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81899-4-iGVHl9PNLJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81899-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02405.txt.bz2
Content-length: 436

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

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

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

--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed in 251226
>From gcc-bugs-return-572847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:17:01 2017
Return-Path: <gcc-bugs-return-572847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65571 invoked by alias); 21 Aug 2017 14:17: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 65281 invoked by uid 48); 21 Aug 2017 14:16:57 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/55809] Doesn't differentiate elaborated type specifier and typename specifier in dependent types
Date: Mon, 21 Aug 2017 15:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-55809-4-2gx1wSw84x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55809-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55809-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02406.txt.bz2
Content-length: 629

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 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-572848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:19:57 2017
Return-Path: <gcc-bugs-return-572848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73789 invoked by alias); 21 Aug 2017 14: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 73719 invoked by uid 48); 21 Aug 2017 14:19:53 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/64928] [5/6/7/8 Regression] Inordinate cpu time and memory usage in "phase opt and generate" with -ftest-coverage -fprofile-arcs
Date: Mon, 21 Aug 2017 15:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords: compile-time-hog, memory-hog
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_reconfirmed_on
Message-ID: <bug-64928-4-lUTbym2SJ2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02407.txt.bz2
Content-length: 666

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2015-02-09 00:00:00         |2017-8-21

--- Comment #24 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think we made LIM more powerful and/or changed coalescing.  We didn't really
address the issue with LIMs lack of a costmodel or out-of-SSA coalescing being
quadratic in size requirement (but I see RTL passes bumping up to 5GB of memory
use as well, REE for example, also noted elsewhere).
>From gcc-bugs-return-572849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:23:42 2017
Return-Path: <gcc-bugs-return-572849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84527 invoked by alias); 21 Aug 2017 14:23:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84440 invoked by uid 48); 21 Aug 2017 14:23:36 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56272] Poor diagnostics for error: specialization of ... after instantiation
Date: Mon, 21 Aug 2017 15:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-56272-4-cJN9wvBUWo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56272-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56272-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02408.txt.bz2
Content-length: 1194

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
With a caret, that is:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 56272.cc
56272.cc:11:40: error: specialization of ‘void A<T>::Invert() [with T =
double]’ after instantiation
 template <> void A < double >::Invert ();
                                        ^
56272.cc: In instantiation of ‘void A<T>::Invert() [with T = double]’:
56272.cc:9:16:   required from here
56272.cc:5:16: warning: unused variable ‘a’ [-Wunused-variable]
    A < double >a;
                ^
$

Confirmed that it could use an extra note.
>From gcc-bugs-return-572850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:27:58 2017
Return-Path: <gcc-bugs-return-572850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4184 invoked by alias); 21 Aug 2017 14:27:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 4121 invoked by uid 48); 21 Aug 2017 14:27:53 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56951] Poor diagnostics for error: invalid abstract return type 'XXX'
Date: Mon, 21 Aug 2017 15:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-56951-4-8m0JBYRkSb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56951-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56951-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02409.txt.bz2
Content-length: 626

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 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-572851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:30:56 2017
Return-Path: <gcc-bugs-return-572851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13299 invoked by alias); 21 Aug 2017 14:30: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 12872 invoked by uid 55); 21 Aug 2017 14:30:36 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 2017 15:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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:
Message-ID: <bug-81906-4-1STR4OKAtW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02410.txt.bz2
Content-length: 467

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

--- Comment #10 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
A correct (for -frounding-math) SSE sequence would (for arguments with 
absolute value < 2**52) add and subtract 2**52 for a positive operand, 
-2**52 for a negative operand.  Then it would need to copy the sign of the 
original operand to the result to ensure zero results get the correct sign 
in all cases.
>From gcc-bugs-return-572852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:32:54 2017
Return-Path: <gcc-bugs-return-572852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37424 invoked by alias); 21 Aug 2017 14:32:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 37247 invoked by uid 55); 21 Aug 2017 14:32:48 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 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: 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: 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:
Message-ID: <bug-81906-4-jpLlq8EXsx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02411.txt.bz2
Content-length: 384

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

--- Comment #11 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
(That's essentially what the generic C implementation of rint in glibc 
does.  I make no assertions about whether inlining this long expansion of 
rint for SSE, or even the shorter -fno-rounding-math version, actually 
makes sense.)
>From gcc-bugs-return-572853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:38:48 2017
Return-Path: <gcc-bugs-return-572853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55704 invoked by alias); 21 Aug 2017 14:38:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55305 invoked by uid 48); 21 Aug 2017 14:38:40 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57170] No diagnostic for a negative case when switching over unsigned
Date: Mon, 21 Aug 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: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: diagnostic
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: keywords bug_status cc resolution
Message-ID: <bug-57170-4-qwloU6IvxG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02412.txt.bz2
Content-length: 1503

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Use -Wsign-conversion to get a warning:

$ /usr/local/bin/gcc -c -Wall -Wextra -Wconversion -Wnarrowing -pedantic
-Wswitch -Wsign-promo -Wtype-limits -Wsign-conversion -std=c++98 57170.cc
57170.cc: In function ‘int main()’:
57170.cc:4:3: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes
value from ‘-1’ to ‘4294967295’ [-Wsign-conversion]
   case -1:
   ^~~~
$

-Wsign-conversion has to be specified explicitly in c++, but in plain c, it's
implied by -Wconversion:

$ /usr/local/bin/gcc -c -x c -Wall -Wextra -Wconversion -pedantic -Wswitch
-Wtype-limits 57170.cc
57170.cc: In function ‘main’:
57170.cc:4:3: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes
value from ‘-1’ to ‘4294967295’ [-Wsign-conversion]
   case -1:
   ^~~~
$
>From gcc-bugs-return-572854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:43:48 2017
Return-Path: <gcc-bugs-return-572854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66477 invoked by alias); 21 Aug 2017 14:43:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66176 invoked by uid 48); 21 Aug 2017 14:43:35 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81836] ill-formed qualified name not diagnosed
Date: Mon, 21 Aug 2017 15:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: accepts-invalid, 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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81836-4-xPnWR9Wda3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81836-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81836-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02413.txt.bz2
Content-length: 990

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, clang's message is:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 81836.cc
$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic 81836.cc
81836.cc:8:1: error: expected a class or namespace
foo ::Foo::g() { return 1; }
^
81836.cc:8:12: error: C++ requires a type specifier for all declarations
foo ::Foo::g() { return 1; }
~~~        ^
2 errors generated.
$
>From gcc-bugs-return-572855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:47:24 2017
Return-Path: <gcc-bugs-return-572855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70005 invoked by alias); 21 Aug 2017 14:47:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69926 invoked by uid 48); 21 Aug 2017 14:47:19 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template
Date: Mon, 21 Aug 2017 16:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: accepts-invalid, 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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-55588-4-nIc2yjrOQq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55588-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55588-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02414.txt.bz2
Content-length: 626

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-572856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:52:02 2017
Return-Path: <gcc-bugs-return-572856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64605 invoked by alias); 21 Aug 2017 14:52: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 64166 invoked by uid 48); 21 Aug 2017 14:51:56 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81906] [7/8 Regression] Calls to rint() wrongly optimized away starting in g++ 6
Date: Mon, 21 Aug 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: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81906-4-nheIa59NWk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02415.txt.bz2
Content-length: 953

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

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

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

--- Comment #12 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
[my comment collided with Joseph's, I'm pointing out that one additional
copysign is sufficient under -frounding-math)

I think this expansion works as intended for to-nearest and towards-zero
rounding modes, and swaps upwards and downwards rounding for negative operands.
Which implies that under -frounding-math the approach is fixable by swapping
signs of the 2**52 operands:

  xa = fabs (operand1);
  a2_52 = 2**52;
  [if flag_rounding_math]
    a2_52 = copysign (a2_52, operand1);
  xa = xa + a2_52 - a2_52;
  return copysign (xa, operand1);
>From gcc-bugs-return-572857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:52:20 2017
Return-Path: <gcc-bugs-return-572857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65849 invoked by alias); 21 Aug 2017 14:52:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65790 invoked by uid 48); 21 Aug 2017 14:52:15 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60917] sub-optimal diagnostic when instantiating template
Date: Mon, 21 Aug 2017 16:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-60917-4-RrhMVLBOyI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60917-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60917-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02416.txt.bz2
Content-length: 626

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 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-572858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 14:58:32 2017
Return-Path: <gcc-bugs-return-572858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13775 invoked by alias); 21 Aug 2017 14:58:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13483 invoked by uid 48); 21 Aug 2017 14:58:19 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/63374] unhelpful diagnostics for missing initializer
Date: Mon, 21 Aug 2017 16:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.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-63374-4-uWVcrPiInL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63374-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63374-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02417.txt.bz2
Content-length: 1739

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, the output I get is:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wmissing-field-initializers
-Weffc++ 63374.cc
63374.cc: In constructor ‘A::A(int)’:
63374.cc:16:2: warning: ‘A::a1’ should be initialized in the member
initialization list [-Weffc++]
  A(int x) : b1(x), b2(x), b3(x), b4(x) {}
  ^
63374.cc:16:2: warning: ‘A::a2’ should be initialized in the member
initialization list [-Weffc++]
63374.cc:16:2: warning: ‘A::a4’ should be initialized in the member
initialization list [-Weffc++]
63374.cc:16:38: error: no matching function for call to ‘B::B()’
  A(int x) : b1(x), b2(x), b3(x), b4(x) {}
                                      ^
63374.cc:3:2: note: candidate: ‘B::B(int)’
  B(int x) : z(x) {}
  ^
63374.cc:3:2: note:   candidate expects 1 argument, 0 provided
63374.cc:1:7: note: candidate: ‘constexpr B::B(const B&)’
 class B {
       ^
63374.cc:1:7: note:   candidate expects 1 argument, 0 provided
63374.cc:1:7: note: candidate: ‘constexpr B::B(B&&)’
63374.cc:1:7: note:   candidate expects 1 argument, 0 provided
$
>From gcc-bugs-return-572859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:08:09 2017
Return-Path: <gcc-bugs-return-572859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43072 invoked by alias); 21 Aug 2017 15:08: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 41562 invoked by uid 48); 21 Aug 2017 15:08:05 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66968] Incorrect template argument shown in diagnostic
Date: Mon, 21 Aug 2017 16:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.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 see_also everconfirmed
Message-ID: <bug-66968-4-6AWWwTgzaC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66968-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66968-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02418.txt.bz2
Content-length: 788

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirming as a separate bug from bug 99, but still adding it to "See Also"
though.
>From gcc-bugs-return-572860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:15:31 2017
Return-Path: <gcc-bugs-return-572860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60756 invoked by alias); 21 Aug 2017 15:15: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 60467 invoked by uid 55); 21 Aug 2017 15:15:02 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81912] std::distance not constexpr in C++17 mode
Date: Mon, 21 Aug 2017 16:31: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: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81912-4-oDwtD3TOIa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81912-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02419.txt.bz2
Content-length: 1128

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Aug 21 15:14:27 2017
New Revision: 251234

URL: https://gcc.gnu.org/viewcvs?rev=251234&root=gcc&view=rev
Log:
PR libstdc++/81912 make std::__iterator_category constexpr

        PR libstdc++/81912
        * include/bits/stl_iterator_base_types.h (__iterator_category): Add
        constexpr for C++11 and later.
        * testsuite/24_iterators/container_access.cc: Add target selector.
        * testsuite/24_iterators/range_access.cc: Fix clause number in
        comment.
        * testsuite/24_iterators/range_access_cpp14.cc: Likewise.
        * testsuite/24_iterators/range_access_cpp17.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/24_iterators/range_access_cpp17.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_iterator_base_types.h
    trunk/libstdc++-v3/testsuite/24_iterators/container_access.cc
    trunk/libstdc++-v3/testsuite/24_iterators/range_access.cc
    trunk/libstdc++-v3/testsuite/24_iterators/range_access_cpp14.cc
>From gcc-bugs-return-572861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:16:34 2017
Return-Path: <gcc-bugs-return-572861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65017 invoked by alias); 21 Aug 2017 15:16:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64916 invoked by uid 55); 21 Aug 2017 15:16:26 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/46091] missed optimization: x86 bt/btc/bts instructions
Date: Mon, 21 Aug 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: 4.3.5
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: uros 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-46091-4-EZu46qnN6y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-46091-4@http.gcc.gnu.org/bugzilla/>
References: <bug-46091-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02420.txt.bz2
Content-length: 1164

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

--- Comment #4 from uros at gcc dot gnu.org ---
Author: uros
Date: Mon Aug 21 15:15:07 2017
New Revision: 251235

URL: https://gcc.gnu.org/viewcvs?rev=251235&root=gcc&view=rev
Log:
        PR target/46091
        * config/i386/i386.md (*btsq_imm): Rename from *btsq.
        (*btrq_imm): Rename from *btrq.
        (*btcq_imm): Rename from *btcq.
        (btsc): New code attribute.
        (*<btsc><mode>): New insn pattern.
        (*btr<mode>): Ditto.
        (*<btsc><mode>_mask): New insn_and_split pattern.
        (*btr<mode>_mask): Ditto.

testsuite/ChangeLog:

        PR target/46091
        * gcc.target/i386/pr46091-4.c: New test.
        * gcc.target/i386/pr46091-4a.c: Ditto.
        * gcc.target/i386/pr46091-5.c: Ditto.
        * gcc.target/i386/pr46091-5a.c: Ditto.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr46091-4.c
    trunk/gcc/testsuite/gcc.target/i386/pr46091-4a.c
    trunk/gcc/testsuite/gcc.target/i386/pr46091-5.c
    trunk/gcc/testsuite/gcc.target/i386/pr46091-5a.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.md
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:17:31 2017
Return-Path: <gcc-bugs-return-572862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67204 invoked by alias); 21 Aug 2017 15:17: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 66719 invoked by uid 48); 21 Aug 2017 15:17:26 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68301] self-dependent reference member initialization not diagnosed
Date: Mon, 21 Aug 2017 16:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.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: bug_status cf_reconfirmed_on cc see_also everconfirmed
Message-ID: <bug-68301-4-63hfl1C8zJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02421.txt.bz2
Content-length: 1057

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |egallager at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=2972,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=19808
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #1)
> This seems related to bug 2972 or bug 19808 and probably falls under the
> Wuninitialized alias.

Confirming as related to but separate from those bugs.
>From gcc-bugs-return-572863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:22:19 2017
Return-Path: <gcc-bugs-return-572863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84416 invoked by alias); 21 Aug 2017 15:22: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 84159 invoked by uid 48); 21 Aug 2017 15:22:14 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81916] New: expansion of rint/nearbyint can simplified under -fno-signed-zeros
Date: Mon, 21 Aug 2017 16:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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-81916-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02422.txt.bz2
Content-length: 756

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

            Bug ID: 81916
           Summary: expansion of rint/nearbyint can simplified under
                    -fno-signed-zeros
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amonakov at gcc dot gnu.org
  Target Milestone: ---

When -fno-signed-zeros is enabled, rint/nearbyint do not need to produce
negative zeros as appropriate, and if -fno-rounding-math [+ -fno-trapping-math
for rint] are also enabled, GCC can use a two-operation expansion 'x + 1.5p52 -
1.5p52'.
>From gcc-bugs-return-572864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:24:58 2017
Return-Path: <gcc-bugs-return-572864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102751 invoked by alias); 21 Aug 2017 15:24:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 102472 invoked by uid 48); 21 Aug 2017 15:24:49 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81893] [8 regression] compilation error in libgo starting with r251127
Date: Mon, 21 Aug 2017 16:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81893-4-vZ9MoyiReM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81893-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02423.txt.bz2
Content-length: 137

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

--- Comment #6 from seurer at gcc dot gnu.org ---
Yes, it looks good now.  Thanks!
>From gcc-bugs-return-572865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:25:41 2017
Return-Path: <gcc-bugs-return-572865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119216 invoked by alias); 21 Aug 2017 15:25: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 115244 invoked by uid 48); 21 Aug 2017 15:25:36 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69103] Misleading diagnostic for invalid constexpr initialization
Date: Mon, 21 Aug 2017 17:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.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-69103-4-qqzjVVBp8C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69103-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69103-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02424.txt.bz2
Content-length: 2298

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to TC from comment #0)
> Consider:
> 
> static int i;
> static int* temp = &i;
> static constexpr int *&&r = static_cast<int*&&>(temp) + 1;
> 
> This correctly doesn't compile, but produces the misleading error message
> 
> prog.cc:3:57: error: modification of '_ZGRL1r0' is not a constant-expression
>  static constexpr int *&&r = static_cast<int*&&>(temp) + 1;
>                                                          ^

The '_ZGRL1r0' is now '<temporary>':

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 69103.cc
69103.cc:3:57: error: modification of ‘<temporary>’ is not a constant
expression
 static constexpr int *&&r = static_cast<int*&&>(temp) + 1;
                                                         ^
$

(In reply to Mikhail Maltsev from comment #1)
> Link to the original thread, for the record:
> https://groups.google.com/a/isocpp.org/forum/#!topic/std-discussion/
> WS5pLaXwC8Y
> 
> _ZGRL1r0 demangles as "reference temporary #0 for r"

Confirmed that demangling it like that would still be better though.

(In reply to TC from comment #0)
> 
> We aren't modifying anything in the initializer.
> 
> In contrast, Clang produces:
> 
> prog.cc:3:25: error: constexpr variable 'r' must be initialized by a
> constant expression
> static constexpr int *&&r = static_cast<int*&&>(temp) + 1;
>                         ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> prog.cc:3:29: note: read of non-constexpr variable 'temp' is not allowed in
> a constant expression
> static constexpr int *&&r = static_cast<int*&&>(temp) + 1;
>                             ^
> prog.cc:2:13: note: declared here
> static int* temp = &i;

...and of course doing like clang here would be the best.
>From gcc-bugs-return-572866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:31:48 2017
Return-Path: <gcc-bugs-return-572866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10279 invoked by alias); 21 Aug 2017 15:31:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9546 invoked by uid 48); 21 Aug 2017 15:31:40 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67928] Ambiguous call not diagnosed
Date: Mon, 21 Aug 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: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: accepts-invalid, 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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-67928-4-wuHvCj3G79@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02425.txt.bz2
Content-length: 2304

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -O2 -std=c++14 67928.cc
67928.cc: In instantiation of ‘void print(const T&, const types& ...) [with T =
test; types = {int}; unsigned int U = 8]’:
67928.cc:20:21:   required from here
67928.cc:7:22: warning: unused parameter ‘arg1’ [-Wunused-parameter]
 void print( const T& arg1, const types&... args ) {
                      ^~~~
67928.cc: In instantiation of ‘void print(const T&, const types& ...) [with T =
int; types = {}]’:
67928.cc:8:6:   required from ‘void print(const T&, const types& ...) [with T =
test; types = {int}; unsigned int U = 8]’
67928.cc:20:21:   required from here
67928.cc:12:22: warning: unused parameter ‘arg1’ [-Wunused-parameter]
 void print( const T& arg1, const types&... args ) {
                      ^~~~
$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic -O2 -std=c++11
67928.cc
67928.cc:7:22: warning: unused parameter 'arg1' [-Wunused-parameter]
void print( const T& arg1, const types&... args ) {
                     ^
67928.cc:12:22: warning: unused parameter 'arg1' [-Wunused-parameter]
void print( const T& arg1, const types&... args ) {
                     ^
67928.cc:20:4: error: call to 'print' is ambiguous
        print( test{}, 1 );
        ^~~~~
67928.cc:7:6: note: candidate function [with T = test, types = <int>, U = 8]
void print( const T& arg1, const types&... args ) {
     ^
67928.cc:12:6: note: candidate function [with T = test, types = <int>]
void print( const T& arg1, const types&... args ) {
     ^
2 warnings and 1 error generated.
$
>From gcc-bugs-return-572867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:32:13 2017
Return-Path: <gcc-bugs-return-572867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16507 invoked by alias); 21 Aug 2017 15:32: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 13642 invoked by uid 48); 21 Aug 2017 15:32:07 -0000
From: "bugzilla@poradnik-webmastera.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81914] [7/8 Regression] gcc 7.1 generates branch for code which was branchless in earlier gcc version
Date: Mon, 21 Aug 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: middle-end
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bugzilla@poradnik-webmastera.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:
Message-ID: <bug-81914-4-Y7OI9IU09w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81914-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81914-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02426.txt.bz2
Content-length: 919

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

--- Comment #3 from Daniel Fruzynski <bugzilla@poradnik-webmastera.com> ---
Yes, branchless version is faster. Here are results for code compiled with gcc
4.8.5:

Benchmark            Time           CPU Iterations
--------------------------------------------------
BM_memcmp            6 ns          6 ns  111001949
BM_int64cmp          4 ns          4 ns  183761752

And here for gcc 7.1.0:

Benchmark            Time           CPU Iterations
--------------------------------------------------
BM_memcmp            6 ns          6 ns  113198940
BM_int64cmp          8 ns          8 ns   82036754

Note: Code tested accepted values passed via pointer instead of value, to
better compare it with memcmp function. Functions were comparing random values,
generated before tests and stored in arrays. srand was called with constant
value to get repeatable results.
>From gcc-bugs-return-572868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:49:15 2017
Return-Path: <gcc-bugs-return-572868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33541 invoked by alias); 21 Aug 2017 15:49: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 32990 invoked by uid 48); 21 Aug 2017 15:49:08 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81917] New: internal compiler error: in finish_member_declaration, at cp/semantics.c:3004
Date: Mon, 21 Aug 2017 17: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: 8.0
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81917-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02427.txt.bz2
Content-length: 2542

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

            Bug ID: 81917
           Summary: internal compiler error: in finish_member_declaration,
                    at cp/semantics.c:3004
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

The attached preprocessed source file ICEs with:

internal compiler error: in finish_member_declaration, at cp/semantics.c:3004
0xa45741 finish_member_declaration(tree_node*)
        /home/marek/src/gcc/gcc/cp/semantics.c:3004
0x9d442e instantiate_class_template_1
        /home/marek/src/gcc/gcc/cp/pt.c:10675
0x9d4fae instantiate_class_template(tree_node*)
        /home/marek/src/gcc/gcc/cp/pt.c:10892
0xa8e08e complete_type(tree_node*)
        /home/marek/src/gcc/gcc/cp/typeck.c:136
0x9e42dc tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/marek/src/gcc/gcc/cp/pt.c:14042
0x9d501e tsubst_template_arg
        /home/marek/src/gcc/gcc/cp/pt.c:10905
0x9d8267 tsubst_template_args
        /home/marek/src/gcc/gcc/cp/pt.c:11778
0x9d8efe tsubst_aggr_type
        /home/marek/src/gcc/gcc/cp/pt.c:11980
0x9e1b5b tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/marek/src/gcc/gcc/cp/pt.c:13472
0x9df347 tsubst_decl
        /home/marek/src/gcc/gcc/cp/pt.c:12884
0x9e120b tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/marek/src/gcc/gcc/cp/pt.c:13389
0x9d416f instantiate_class_template_1
        /home/marek/src/gcc/gcc/cp/pt.c:10608
0x9d4fae instantiate_class_template(tree_node*)
        /home/marek/src/gcc/gcc/cp/pt.c:10892
0xa8e08e complete_type(tree_node*)
        /home/marek/src/gcc/gcc/cp/typeck.c:136
0x9e42dc tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/marek/src/gcc/gcc/cp/pt.c:14042
0x9df347 tsubst_decl
        /home/marek/src/gcc/gcc/cp/pt.c:12884
0x9e120b tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/marek/src/gcc/gcc/cp/pt.c:13389
0x9d416f instantiate_class_template_1
        /home/marek/src/gcc/gcc/cp/pt.c:10608
0x9d4fae instantiate_class_template(tree_node*)
        /home/marek/src/gcc/gcc/cp/pt.c:10892
0xa8e08e complete_type(tree_node*)
        /home/marek/src/gcc/gcc/cp/typeck.c:136
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
>From gcc-bugs-return-572869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:51:52 2017
Return-Path: <gcc-bugs-return-572869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35629 invoked by alias); 21 Aug 2017 15:51: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 15933 invoked by uid 48); 21 Aug 2017 15:51:38 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71007] Divergence between treatment of char[0] between OR (=> SFINAE failure) and diagnostic printing (no failure)
Date: Mon, 21 Aug 2017 17:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords: compile-time-hog, 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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-71007-4-gcDh3n9Mat@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71007-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71007-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02428.txt.bz2
Content-length: 4174

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |compile-time-hog,
                   |                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Johannes Schaub from comment #0)
> The following is supposed to tell the user that char[0] is an invalid type,
> during diagnostic printing. But instead, it infinitely recurses up to
> SIZE_MAX or something during printing the diagnostic message, eventually
> crashing
> 
>    #include <utility>
>    #include <tuple>
> 
>    template<typename T, T ...I>
>    auto ignore_n(std::integer_sequence<T, I...>) {
>     return std::make_tuple((I, std::ignore)...);
>    }
> 
>    template<typename... Ts>
>    auto function(Ts... ts)
>       -> decltype((std::tuple_cat(
>            
> ignore_n(std::make_index_sequence<sizeof(char[int(sizeof...(Ts))-1])-1>  
> ()),
>             std::tuple<double, bool>()) = std::forward_as_tuple(ts...)),
> void())
>    {
>    
>    }
> 
>    int main() {
>       function(2);
>       function(1, 2, 3);
>    }
> 

This un-reduced version was taking forever to compile, so I had to kill it
before it could crash:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -time -ftime-report 71007.cc
71007.cc: In function ‘int main()’:
71007.cc:19:12: error: no matching function for call to ‘function(int)’
  function(2);
            ^
71007.cc:10:6: note: candidate: ‘template<class ... Ts> decltype
((std::tuple_cat(ignore_n(typename std::_Make_integer_sequence<long unsigned
int, sizeof (char[int(sizeof ... (Ts ...)) - 1]) - 1, typename
std::_Build_index_tuple<sizeof (char[int(sizeof ... (Ts ...)) - 1]) -
1>::__type>::make_index_sequence()), std::tuple<double, bool>())=
std::forward_as_tuple(function::ts ...), void())) function(Ts ...)’
 auto function(Ts... ts)
      ^~~~~~~~
71007.cc:10:6: note:   template argument deduction/substitution failed:
71007.cc: In substitution of ‘template<class ... Ts> decltype
((std::tuple_cat(ignore_n(typename std::_Make_integer_sequence<long unsigned
int, sizeof (char[int(sizeof ... (Ts ...)) - 1]) - 1, typename
std::_Build_index_tuple<sizeof (char[int(sizeof ... (Ts ...)) - 1]) -
1>::__type>::make_index_sequence()), std::tuple<double, bool>())=
std::forward_as_tuple(function::ts ...), void())) function(Ts ...) [with Ts =
{int}]’:
71007.cc:19:12:   required from here
71007.cc:12:42: warning: ISO C++ forbids zero-size array [-Wpedantic]
        ignore_n(std::make_index_sequence<sizeof(char[int(sizeof...(Ts))-1])-1>
  ()),
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^C
$

(In reply to Johannes Schaub from comment #1)
> Sorry, forgot to actually add the code of the reduced testcase:
> 
>    template<int N, typename T = char[N-1]>
>    void f(char(&)[N])
>    { }
> 
>    int main() {
>       char x[1];
>       f(x);
>    }

Confirmed:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 71007_reduced.cc
71007_reduced.cc: In function ‘int main()’:
71007_reduced.cc:7:4: error: no matching function for call to ‘f(char [1])’
 f(x);
    ^
71007_reduced.cc:2:6: note: candidate: ‘template<int N, class T> void f(char
(&)[N])’
 void f(char(&)[N])
      ^
71007_reduced.cc:2:6: note:   template argument deduction/substitution failed:
71007_reduced.cc:1:17: warning: ISO C++ forbids zero-size array [-Wpedantic]
 template<int N, typename T = char[N-1]>
                 ^~~~~~~~
$

Weird that the underlining here points to the typename before T rather than the
actual array size.
>From gcc-bugs-return-572870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:56:48 2017
Return-Path: <gcc-bugs-return-572870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101465 invoked by alias); 21 Aug 2017 15:56: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 101418 invoked by uid 48); 21 Aug 2017 15:56:43 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81917] internal compiler error: in finish_member_declaration, at cp/semantics.c:3004
Date: Mon, 21 Aug 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: c++
X-Bugzilla-Version: 8.0
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: attachments.created
Message-ID: <bug-81917-4-YeumnaxVy3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81917-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81917-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02429.txt.bz2
Content-length: 239

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

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Created attachment 42021
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42021&action=edit
q.ii.gz

q.ii.gz
>From gcc-bugs-return-572871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 15:58:20 2017
Return-Path: <gcc-bugs-return-572871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106072 invoked by alias); 21 Aug 2017 15:58:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 106024 invoked by uid 48); 21 Aug 2017 15:58:14 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81917] internal compiler error: in finish_member_declaration, at cp/semantics.c:3004
Date: Mon, 21 Aug 2017 17:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
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:
Message-ID: <bug-81917-4-hJlLQE7qQI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81917-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81917-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02430.txt.bz2
Content-length: 858

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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I couldn't reduce it further because creduce is crashing for me.  

Started with

commit 996ae1f4f1d512b4ccad62c7d52eb2f14b3e814c
Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Sat Nov 8 06:06:42 2014 +0000

            DR 1558
            * pt.c (dependent_alias_template_spec_p): New.
            (dependent_type_p_r): Handle dependent alias template
specialization.
            (template_args_equal): A dependent alias template specializations
            is not equal to its underlying type as a template argument.
            * tree.c (strip_typedefs): Don't strip a dependent alias
            template-id.

    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217250
138bc75d-0d04-0410-961f-82ee72b054a4
>From gcc-bugs-return-572872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:01:19 2017
Return-Path: <gcc-bugs-return-572872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115999 invoked by alias); 21 Aug 2017 16:01:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 111529 invoked by uid 48); 21 Aug 2017 16:00:23 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60095] Dubious diagnostics for attempted surrogate call function
Date: Mon, 21 Aug 2017 17:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-60095-4-FVuyhePm23@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60095-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60095-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02431.txt.bz2
Content-length: 2269

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-21
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to lucdanton from comment #0)
> Using ‘gcc version 4.9.0 20140123 (experimental) (GCC)’ with the following
> snippet:
> 
> //--------
> 
> struct foo {
>     typedef void(*ptr)(int&);
>     operator ptr() const;
> };
> 
> int main()
> {
>     foo f;
>     void* p = 0;
>     f(p);
> }
> 
> //--------
> 
> $ g++-trunk -std=c++03 main.cpp 
> main.cpp: In function 'int main()':
> main.cpp:10:8: error: no match for call to '(foo) (void*&)'
>      f(p);
>         ^
> main.cpp:1:8: note: candidate is:
>  struct foo {
>         ^
> main.cpp:10:8: note: foo::ptr {aka void (*)(int&)} <conversion>
>      f(p);
>         ^
> main.cpp:10:8: note:   candidate expects 2 arguments, 2 provided
> 
> Same output for all -std=c++{03,11,1y} modes. If e.g. foo has a call
> operator instead, then the appropriate ‘no known conversion for argument 1
> from 'void*' to 'int&'’ is produced.

Message is now:

$ /usr/local/bin/g++ -c -std=c++03 -Wall -Wextra -pedantic 60095.cc
60095.cc: In function ‘int main()’:
60095.cc:10:8: error: no match for call to ‘(foo) (void*&)’
     f(p);
        ^
60095.cc:10:8: note: candidate: ‘foo::ptr {aka void (*)(int&)}’ <conversion>
60095.cc:10:8: note:   conversion of argument 2 would be ill-formed:
60095.cc:10:8: error: invalid conversion from ‘void*’ to ‘int’ [-fpermissive]
60095.cc:10:8: error: cannot bind rvalue ‘(int)p’ to ‘int&’
$

Is that better enough for you? I think it's still kinda confusing, but at least
there's no longer the bogus "expects 2 arguments, 2 provided" note anymore.
>From gcc-bugs-return-572873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:07:12 2017
Return-Path: <gcc-bugs-return-572873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45150 invoked by alias); 21 Aug 2017 16:07: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 42756 invoked by uid 48); 21 Aug 2017 16:07:00 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66924] Bad diagnostic for parameter name used as non-type template argument
Date: Mon, 21 Aug 2017 18:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.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-66924-4-yh9KErDgJC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66924-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66924-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02432.txt.bz2
Content-length: 1108

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 66924.cc
66924.cc: In function ‘int main()’:
66924.cc:5:37: error: parse error in template argument list
     auto f = [] (int x) -> decltype(variable<x>) {return{};};
                                     ^~~~~~~~~~~
66924.cc:5:37: error: template argument 1 is invalid
66924.cc: In lambda function:
66924.cc:5:22: warning: unused parameter ‘x’ [-Wunused-parameter]
     auto f = [] (int x) -> decltype(variable<x>) {return{};};
                      ^
$
>From gcc-bugs-return-572874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:25:36 2017
Return-Path: <gcc-bugs-return-572874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20970 invoked by alias); 21 Aug 2017 16:25: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 20842 invoked by uid 48); 21 Aug 2017 16:25:30 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77540] Confusing diagnostics due to stray comma in ctor-init-list
Date: Mon, 21 Aug 2017 18:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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-77540-4-g8Meszb2Yb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77540-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77540-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02433.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 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-572875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:25:37 2017
Return-Path: <gcc-bugs-return-572875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21110 invoked by alias); 21 Aug 2017 16: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 20910 invoked by uid 48); 21 Aug 2017 16:25:31 -0000
From: "nsz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Mon, 21 Aug 2017 18: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: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: nsz at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-53037-4-b2exDTKEE2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02434.txt.bz2
Content-length: 2920

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

nsz at gcc dot gnu.org changed:

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

--- Comment #38 from nsz at gcc dot gnu.org ---
(In reply to Eric Botcazou from comment #32)
> > Sparc defines STRICT_ALIGNMENT which leads to
> > 
> >       unsigned mode_align = GET_MODE_ALIGNMENT (TYPE_MODE (type));
> > 
> >       /* Don't override a larger alignment requirement coming from a user
> >          alignment of one of the fields.  */
> >       if (mode_align >= TYPE_ALIGN (type))
> >         {
> >           SET_TYPE_ALIGN (type, mode_align);
> >           TYPE_USER_ALIGN (type) = 0; 
> >         }
> > 
> > so __attribute__ ((packed)) is basically ignored on Sparc.
> 
> I don't think that's correct.  Simply, on strict-alignment targets, you
> cannot have an aggregate type less aligned than its scalar mode, if any; for
> other targets, that's only true for scalar types.  But you can have an
> aggregate type with alignment 1 if it has BLKmode.
> 

i don't quite understand this reasoning, i would
not expect the internal STRICT_ALIGNMENT setting
to change how types behave (e.g. it might mean
some code errors out, but the semantics of packed
and aligned attributes are not changed).

> > diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
> > index 3028d55773a..6dd605810ac 100644
> > --- a/gcc/stor-layout.c
> > +++ b/gcc/stor-layout.c
> > @@ -1784,7 +1784,7 @@ finalize_type_size (tree type)
> >  
> >        /* Don't override a larger alignment requirement coming from a user
> >     alignment of one of the fields.  */
> > -      if (mode_align >= TYPE_ALIGN (type))
> > +      if (mode_align > TYPE_ALIGN (type))
> >    {
> >      SET_TYPE_ALIGN (type, mode_align);
> >      TYPE_USER_ALIGN (type) = 0;
> > 
> > works with cross compiler.
> 
> The existing code works as intended: if the alignment given by the mode is
> larger than or equal to the type's alignment, then this alignment given by
> the mode becomes the natural alignment and TYPE_USER_ALIGN becomes
> obsolete/wrong.
> 

i don't see this on arm/sparc, instead i see wrong
alignment given:

struct __attribute__ ((aligned (8))) S8 { char a[8]; };
struct __attribute__ ((packed)) S1 { struct S8 s8; };

char a[_Alignof(struct S8)] = {0};
char b[_Alignof(struct S1)] = {0};

compiles into a size 8 array for a and size 1 array for b,
so _Alignof is inconsistent, which i'd expect to be an
error (or warning at least).

> So I think that the absence of warning is correct on strict-alignment
> platforms and that, if you want to make the tests portable, then you must
> use structures whose rounded size is not a power of 2 or is larger than 128
> bits, so that they don't get a scalar mode.
>From gcc-bugs-return-572876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:27:58 2017
Return-Path: <gcc-bugs-return-572876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23816 invoked by alias); 21 Aug 2017 16:27:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23768 invoked by uid 48); 21 Aug 2017 16:27:53 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78119] wrong diagnostic pointer for -Werror=ignored-qualifiers
Date: Mon, 21 Aug 2017 18: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: 6.2.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-78119-4-W5iZSWWWX3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78119-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78119-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02435.txt.bz2
Content-length: 610

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-21
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Could you provide a more complete testcase please?
>From gcc-bugs-return-572877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:31:51 2017
Return-Path: <gcc-bugs-return-572877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31004 invoked by alias); 21 Aug 2017 16:31:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30914 invoked by uid 48); 21 Aug 2017 16:31:46 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78157] Incorrect diagnostic for variable template declaration
Date: Mon, 21 Aug 2017 19:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.2.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-78157-4-X5AdmmLLx3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78157-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78157-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02436.txt.bz2
Content-length: 695

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, the "got 1 template parameters" message should probably also use
gcc's internationalization routines to handle plurals properly.
>From gcc-bugs-return-572878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:40:38 2017
Return-Path: <gcc-bugs-return-572878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56456 invoked by alias); 21 Aug 2017 16:40: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 56325 invoked by uid 48); 21 Aug 2017 16:40:32 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79013] Inconsistent auto diagnostic in member declarations
Date: Mon, 21 Aug 2017 19:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: accepts-invalid, 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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79013-4-m0WKsdxJuT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79013-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79013-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02437.txt.bz2
Content-length: 771

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |accepts-invalid, diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, although changing from rejects-valid to accepts-invalid since g++
accepts all of the examples without printing any diagnostics.
>From gcc-bugs-return-572879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:44:51 2017
Return-Path: <gcc-bugs-return-572879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62691 invoked by alias); 21 Aug 2017 16:44: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 62612 invoked by uid 48); 21 Aug 2017 16:44:46 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79595] Inconsistent grammar in diagnostic "partial specialization %q+D does not specialize"
Date: Mon, 21 Aug 2017 19:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
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 component everconfirmed bug_severity
Message-ID: <bug-79595-4-lKdsj30SVF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79595-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79595-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02438.txt.bz2
Content-length: 721

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |egallager at gcc dot gnu.org
          Component|c++                         |translation
     Ever confirmed|0                           |1
           Severity|normal                      |minor

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirming and changing component to translation.
>From gcc-bugs-return-572880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:45:59 2017
Return-Path: <gcc-bugs-return-572880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64612 invoked by alias); 21 Aug 2017 16: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 64132 invoked by uid 48); 21 Aug 2017 16:45:53 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81903] [OOP] problem with ASSOCIATE and class pointer (Invalid character in name at)
Date: Mon, 21 Aug 2017 19:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-81903-4-KBdcROXkg6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81903-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02439.txt.bz2
Content-length: 733

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|compiler reports a language |[OOP] problem with
                   |problem (Invalid character  |ASSOCIATE and class pointer
                   |in name at)                 |(Invalid character in name
                   |                            |at)

--- Comment #2 from janus at gcc dot gnu.org ---
Further reduction:

Implicit None
Type :: TestType_A
  Real :: a
End type

class(TestType_A), Pointer :: TT(:)
real, pointer :: a
associate(y => TT)
    a => y(0)%a
end associate

end
>From gcc-bugs-return-572881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 16:54:57 2017
Return-Path: <gcc-bugs-return-572881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24411 invoked by alias); 21 Aug 2017 16:54:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90306 invoked by uid 48); 21 Aug 2017 16:51:20 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/80191] diagnostic placeholder "new initializer" must be marked for translation
Date: Mon, 21 Aug 2017 20:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
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: keywords cc component bug_severity
Message-ID: <bug-80191-4-26kH8K11fn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80191-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80191-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02440.txt.bz2
Content-length: 665

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |egallager at gcc dot gnu.org
          Component|c++                         |translation
           Severity|normal                      |minor

--- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> ---
Changing component to translation, but leaving UNCONFIRMED since there seems to
be disagreement
>From gcc-bugs-return-572882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 17:00:55 2017
Return-Path: <gcc-bugs-return-572882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111506 invoked by alias); 21 Aug 2017 17:00:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90959 invoked by uid 48); 21 Aug 2017 17:00:07 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79592] incomplete diagnostic "is not usable as a constexpr function because:"
Date: Mon, 21 Aug 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: 6.3.1
X-Bugzilla-Keywords: accepts-invalid, 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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79592-4-3DUXxCrr8j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79592-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79592-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02441.txt.bz2
Content-length: 1807

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #0)
> struct pthread_mutex {
>   void *m_ptr;
> };
> 
> struct M {
>   pthread_mutex m = { ((void *) 1LL) };
> };
> 
> constexpr M m;
> 
> pt.cc:9:13: error: ‘constexpr M::M()’ called in a constant expression
>  constexpr M m;
>              ^
> pt.cc:5:8: note: ‘constexpr M::M()’ is not usable as a constexpr function
> because:
>  struct M {
>         ^
> 
> It just says "because:" without saying what the problem is (the cast is not
> allowed in a constant expression).
> 
> If the expression is (void*)1 rather than (void*)1LL then it is incorrectly
> accepted.

On a 32-bit target, it is always incorrectly accepted; adding -m64 is necessary
to get the incomplete diagnostic:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -std=c++11 79592.cc
$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -std=c++11 -m64 79592.cc
79592.cc:9:13: error: ‘constexpr M::M()’ called in a constant expression
 constexpr M m;
             ^
79592.cc:5:8: note: ‘constexpr M::M()’ is not usable as a constexpr function
because:
 struct M {
        ^
$

Confirmed.
>From gcc-bugs-return-572883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 17:06:38 2017
Return-Path: <gcc-bugs-return-572883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88129 invoked by alias); 21 Aug 2017 17:06: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 87939 invoked by uid 48); 21 Aug 2017 17:06:26 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80144] Concept introduced with "template<OtherConcept T>" is not diagnosed
Date: Tue, 22 Aug 2017 00:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: c++-concepts
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-80144-4-ZCsUuozZsm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80144-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80144-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02442.txt.bz2
Content-length: 1362

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Arthur O'Dwyer from comment #0)
> Compile this code with GCC trunk and -fconcepts:
> 
> template<typename T>
> concept bool Never = requires(T t) {
>     { t != 42 };
> };
> 
> template<typename T> concept bool First = Never<T>;
> template<Never T> concept bool Second = true;
> 
> int main()
> {
>     static_assert(!Never<void*>);
>     static_assert(!First<void*>);
>     static_assert(!Second<void*>);  // static assertion failed
> }
> 
> I claim that the final static_assert should not fail, or else GCC should
> diagnose some kind of syntax error in my concept definitions (perhaps the
> syntax "Never T" is not intended to be supported).

Confirmed, although I'm not sure which of those 2 options is correct...
>From gcc-bugs-return-572884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 17:09:56 2017
Return-Path: <gcc-bugs-return-572884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92909 invoked by alias); 21 Aug 2017 17:09:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92858 invoked by uid 48); 21 Aug 2017 17:09:51 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80496] missing diagnostic regarding noreturn mismatch in function pointer initialization
Date: Tue, 22 Aug 2017 01:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords: 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-80496-4-THjknIomYg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80496-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80496-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02443.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 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-572885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 17:12:29 2017
Return-Path: <gcc-bugs-return-572885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121390 invoked by alias); 21 Aug 2017 17:12: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 121325 invoked by uid 48); 21 Aug 2017 17:12:23 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70125] attributes diagnostics missing essential context
Date: Tue, 22 Aug 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: 6.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 cf_known_to_fail
Message-ID: <bug-70125-4-BgQ4lQIYxp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70125-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70125-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02444.txt.bz2
Content-length: 619

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |8.0

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-572886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 17:19:07 2017
Return-Path: <gcc-bugs-return-572886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129743 invoked by alias); 21 Aug 2017 17:19:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 129669 invoked by uid 48); 21 Aug 2017 17:19:03 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71138] [concepts] ill-formed non-constant expression use in nested requirement produces duplicated diagnostics with poor source locations
Date: Tue, 22 Aug 2017 01: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: unknown
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-71138-4-cpQlSFVcAk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71138-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71138-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02445.txt.bz2
Content-length: 626

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 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-572888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 17:34:49 2017
Return-Path: <gcc-bugs-return-572888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101278 invoked by alias); 21 Aug 2017 17:34:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 94241 invoked by uid 48); 21 Aug 2017 17:34:38 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57039] -Wsequence-point missing warning for such case
Date: Tue, 22 Aug 2017 02: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: 4.7.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cc resolution
Message-ID: <bug-57039-4-5IBv260DTz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57039-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57039-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02447.txt.bz2
Content-length: 1168

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
I get a -Wsequence-point warning with gcc8:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wsequence-point 57039.cc
57039.cc: In function ‘int main(int, char**)’:
57039.cc:5:5: warning: operation on ‘color’ may be undefined [-Wsequence-point]
     ++color = (color > 3) ? 0 : color;
     ^~~~~~~
57039.cc:2:31: warning: unused parameter ‘argv’ [-Wunused-parameter]
 int main(int argc, char* argv[])
                               ^
$

Was probably FIXED, but I don't have the computing resources for bisection, so
I'll just say WORKSFORME.
>From gcc-bugs-return-572887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 17:27:07 2017
Return-Path: <gcc-bugs-return-572887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66275 invoked by alias); 21 Aug 2017 17:27:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66179 invoked by uid 48); 21 Aug 2017 17:27:02 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81178] [concepts] poor (partial?) diagnostic for alias substitution failure in a concept body
Date: Tue, 22 Aug 2017 02:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.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 blocked everconfirmed
Message-ID: <bug-81178-4-pls5LFPjhb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81178-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81178-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02446.txt.bz2
Content-length: 2593

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Casey Carter from comment #0)
> GCC 6.3/7.1/trunk as of 20170621 all diagnose this ill-formed program
> (https://wandbox.org/permlink/uatmNSnlLbhvSvls):
> 
> template<class>
> concept bool C1 = true;
> 
> template<class T>
> using alias = typename T::type;
> 
> template<class T>
> concept bool C2 = C1<alias<T>>;
> 
> void bar(C2) {}
> 
> int main() { bar(42); }
> 
> with:
> 
> prog.cc: In function 'int main()':
> prog.cc:12:20: error: cannot call function 'void bar(auto:1) [with auto:1 =
> int]'
>  int main() { bar(42); }
>                     ^
> prog.cc:10:6: note:   constraints not satisfied
>  void bar(C2) {}
>       ^~~
> prog.cc:10:6: note: in the expansion of concept 'C2<auto:1> template<class
> T> concept const bool C2<T> [with T = int]'
> 
> (Yes, that is the entire diagnostic.)

Confirmed for this first testcase.

> If we expand the definition of C2 fully into bar
> (https://wandbox.org/permlink/GKW0vWSPIY5XrGRE):
> 
> template<class T>
>   requires C1<alias<T>>
> void bar(T) {}
> 
> the compiler gives a more complete diagnostic:
> 
> prog.cc: In function 'int main()':
> prog.cc:14:20: error: cannot call function 'void bar(T) [with T = int]'
>  int main() { bar(42); }
>                     ^
> prog.cc:12:6: note:   constraints not satisfied
>  void bar(T) {}
>       ^~~
> prog.cc:12:6: note: invalid use of the concept 'C1<typename T::type>'
> prog.cc:14:20: error: 'int' is not a class, struct, or union type
>  int main() { bar(42); }
>                     ^

...and actually confirmed for this second part, too. (At first I thought it was
a separate standalone testcase, and when compiling it like that it gave me a
different error, but then I noticed it was actually a modification to the first
one, so after modifying the first one accordingly, I got the same result as you
did.)


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491
[Bug 67491] [meta-bug] concepts issues
>From gcc-bugs-return-572889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 17:37:32 2017
Return-Path: <gcc-bugs-return-572889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23347 invoked by alias); 21 Aug 2017 17:37:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19286 invoked by uid 48); 21 Aug 2017 17:37:26 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57078] Unhelpful -Wunused-variable warning
Date: Tue, 22 Aug 2017 02:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-57078-4-bIAZ4UhOUr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57078-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57078-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02448.txt.bz2
Content-length: 626

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-21
                 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-572890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 18:06:13 2017
Return-Path: <gcc-bugs-return-572890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47908 invoked by alias); 21 Aug 2017 18:06: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 47195 invoked by uid 48); 21 Aug 2017 18:06:06 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class
Date: Tue, 22 Aug 2017 02:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 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-81898-4-qey6xgKP04@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02449.txt.bz2
Content-length: 602

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

--- Comment #2 from janus at gcc dot gnu.org ---
Comparing the dump that is produced by version 6 and 7, I see that the latter
contains an additional line, just before the type-bound call which produces the
segfault:

       (struct __vtype_amodule_Btype *) a._data->obj._vptr =
&__vtab_amodule_Btype;
+      a._vptr = (struct __vtype_amodule_Atype * {ref-all}) a._data->obj._vptr;
       a._data->bobj = a._data->obj._data;

It seems to come from the pointer assignment, but is certainly wrong (it
effectively sets a's vptr to Btype).
>From gcc-bugs-return-572891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 18:31:53 2017
Return-Path: <gcc-bugs-return-572891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117562 invoked by alias); 21 Aug 2017 18:31:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 117460 invoked by uid 48); 21 Aug 2017 18:31:48 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/53037] warn_if_not_aligned(X)
Date: Tue, 22 Aug 2017 05:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: enhancement
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:
Message-ID: <bug-53037-4-GuxUQPUKn2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02450.txt.bz2
Content-length: 1473

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

--- Comment #39 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> i don't quite understand this reasoning, i would
> not expect the internal STRICT_ALIGNMENT setting
> to change how types behave (e.g. it might mean
> some code errors out, but the semantics of packed
> and aligned attributes are not changed).

That's not what I said.  I only described how modes work on strict-alignment
targets: modes have alignment and you cannot have a type with a mode and the
type's alignment be lower than the mode's alignment.

> i don't see this on arm/sparc, instead i see wrong
> alignment given:
> 
> struct __attribute__ ((aligned (8))) S8 { char a[8]; };
> struct __attribute__ ((packed)) S1 { struct S8 s8; };
> 
> char a[_Alignof(struct S8)] = {0};
> char b[_Alignof(struct S1)] = {0};
> 
> compiles into a size 8 array for a and size 1 array for b,
> so _Alignof is inconsistent, which i'd expect to be an
> error (or warning at least).

I don't see any inconsistency here, __attribute__ ((packed)) is expected to
lower the alignment and takes precedence.  Whether or not this is the best
possible implementation is debatable, but it's the historical one.  We might
indeed want to warn about that, but the proposed patch is IMO not correct.

Would this patch be sufficient for:

struct __attribute__ ((aligned (4))) S8 { char a[8]; };
struct __attribute__ ((packed)) S1 { struct S8 s8; };

for example?
>From gcc-bugs-return-572892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 18:35:43 2017
Return-Path: <gcc-bugs-return-572892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113300 invoked by alias); 21 Aug 2017 18:35:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 113214 invoked by uid 48); 21 Aug 2017 18:35:38 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81908] [8 Regression] FAIL: gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
Date: Tue, 22 Aug 2017 06:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81908-4-EEFIiMaCF8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02451.txt.bz2
Content-length: 2223

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

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)

The code was originally designed for -Walloc-size-larger-than and does the
right thing for that warning.  The range I see is

  _248: ~[1, 2147483647]
  __builtin_memcpy (_251, _259, _248);

leaving 0 as the only valid value less than SIZE_MAX / 2 in ILP32.  Zero is not
really a valid allocation size so the code excludes it.

But the code is also used for -Wstringop-overflow and the same logic doesn't
apply equally well there.  The warning does suggest that the memcpy could be
eliminated, so as in most instances of it, the true root cause is really a
missed optimization opportunity.   In fact, this whole block must be
unreachable because if it were executed it would either attempt to allocate
more than SIZE_MAX / 2 bytes (which would fail) or allocate and write past the
end of the 1-byte block:

  <bb 46> [0.43%] [count: INV]:
  vect_cst__246 = { -1, 265, 1, 1 };
  _247 = ubound.2_35 * 4;
  _248 = (character(kind=4)) _247;                                     // _248
is ~[1, 2147483647]
  _249 = MAX_EXPR <_248, 1>;                                           // _249
must be 1
  _251 = __builtin_malloc (_249);                                      // _251
= malloc(1)
  __builtin_memcpy (_251, _259, _248);                                 // no-op
  MEM[(struct grid_index_region *)&D.3501] = _251;
  MEM[(struct grid_index_region *)&D.3501 + 4B] = { -1, 265, 1, 1 };   //
invalid/write-past-end
  MEM[(struct grid_index_region *)&D.3501 + 20B] = ubound.2_35;        //
invalid/write-past-end


(In reply to Richard Biener from comment #1)

get_size_range() sets the RANGE[] array to the unsigned bounds of the range of
sizes.  It can't set RANGE[0] > RANGE[1].  For example, the following must not
be diagnosed but is with the suggested cleanup in comment #2.  There may be a
way to clean up the code but the suggested patch is not sufficient (it causes
test suite regressions).

void __attribute__ ((alloc_size (1))) f (unsigned long);

void g (int n)
{
  if (n < -9 || 9 < n)
    n = -9;

  f (n);
}
>From gcc-bugs-return-572893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 18:57:10 2017
Return-Path: <gcc-bugs-return-572893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87231 invoked by alias); 21 Aug 2017 18:57: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 86936 invoked by uid 48); 21 Aug 2017 18:57:05 -0000
From: "webrown.cpp at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80144] Concept introduced with "template<OtherConcept T>" is not diagnosed
Date: Tue, 22 Aug 2017 06: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: c++-concepts
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: webrown.cpp 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-80144-4-q1nA5tLJjT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80144-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80144-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02452.txt.bz2
Content-length: 466

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

--- Comment #2 from W E Brown <webrown.cpp at gmail dot com> ---
> Confirmed, although I'm not sure which of those 2 options is correct...

Per N4687, [temp.concept]/4:
  A concept shall not have associated constraints (17.4.2).

Since Second's declaration does specify Never as an associated constraint,
Second's declaration appears to be in error.  Any such declarations ought
likely be diagnosed accordingly.
>From gcc-bugs-return-572894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 19:07:39 2017
Return-Path: <gcc-bugs-return-572894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79248 invoked by alias); 21 Aug 2017 19:07: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 77440 invoked by uid 48); 21 Aug 2017 19:07:33 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class
Date: Tue, 22 Aug 2017 07:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: cc
Message-ID: <bug-81898-4-zcU57OsUKc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02453.txt.bz2
Content-length: 477

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

janus at gcc dot gnu.org changed:

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

--- Comment #3 from janus at gcc dot gnu.org ---
I think the regression has been introduced by r241439, in particular the
resolve.c part. Reverting it makes the segfault disappear.
>From gcc-bugs-return-572895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 19:20:50 2017
Return-Path: <gcc-bugs-return-572895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128898 invoked by alias); 21 Aug 2017 19:20:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128859 invoked by uid 48); 21 Aug 2017 19:20:46 -0000
From: "jesse at mind dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81918] New: muddles Concept confuses compiler (segfault)
Date: Tue, 22 Aug 2017 07:31: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jesse at mind dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-81918-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02454.txt.bz2
Content-length: 1002

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

            Bug ID: 81918
           Summary: muddles Concept confuses compiler (segfault)
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jesse at mind dot net
  Target Milestone: ---

Created attachment 42022
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42022&action=edit
Triggers segfault

g++ (SUSE Linux) 7.1.1 20170629 [gcc-7-branch revision 249772]

g++ -Wall -Wextra -std=c++17 -fconcepts -o segfault segfault.cpp 

segfault.cpp: In instantiation of ‘main()::<lambda(const auto:1&)> [with auto:1
= std::_Fwd_list_iterator<int>]’:
segfault.cpp:9:5:   required from here
segfault.cpp:25:40: internal compiler error: Segmentation fault
          [](const auto& x) { return x; });

A confused Concept appears to also confuse GCC.
>From gcc-bugs-return-572896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 19:40:36 2017
Return-Path: <gcc-bugs-return-572896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76900 invoked by alias); 21 Aug 2017 19:40:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76806 invoked by uid 48); 21 Aug 2017 19:40:28 -0000
From: "porton at narod dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/81919] New: Compiler refuses to compile valid code
Date: Tue, 22 Aug 2017 07:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: porton at narod 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-81919-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02455.txt.bz2
Content-length: 1069

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

            Bug ID: 81919
           Summary: Compiler refuses to compile valid code
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: porton at narod dot ru
  Target Milestone: ---

Created attachment 42023
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42023&action=edit
A file which does not compile

The compiler refuses to verify the code in attached file.

$ gnatgcc -gnatc -gnat2012 -c my.ads 
my.ads:23:09: type must be declared abstract or "First" overridden
my.ads:23:09: "First" has been inherited from subprogram at a-iteint.ads:26,
instance at line 9

We think that the refusal to compile it is a compiler bug.

Note that if I remove "type Iterated_Object is access all Integer;" and replace
"type Cursor is new Iterated_Object;" with "type Cursor is access all Integer;"
then the compiler does not complaint.
>From gcc-bugs-return-572897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 19:51:32 2017
Return-Path: <gcc-bugs-return-572897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97364 invoked by alias); 21 Aug 2017 19:51: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 97258 invoked by uid 48); 21 Aug 2017 19:51:26 -0000
From: "anatol.pomozov at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81709] __attribute__((interrupt)) should handle SSE registers
Date: Tue, 22 Aug 2017 07:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anatol.pomozov at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81709-4-MSaYxc5WM7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81709-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81709-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02456.txt.bz2
Content-length: 321

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

--- Comment #4 from Anatol <anatol.pomozov at gmail dot com> ---
> you need to save the complete vector state

It is a good point. Would it make sense for compiler to do it? Instead of
forcing users to track if SSE registers are used and doing xsave/xrstor
manually?
>From gcc-bugs-return-572898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 20:05:41 2017
Return-Path: <gcc-bugs-return-572898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43114 invoked by alias); 21 Aug 2017 20:05: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 43042 invoked by uid 48); 21 Aug 2017 20:05:35 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81709] __attribute__((interrupt)) should handle SSE registers
Date: Tue, 22 Aug 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: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81709-4-cigyIWAGqG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81709-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81709-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02457.txt.bz2
Content-length: 763

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

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Anatol from comment #4)
> > you need to save the complete vector state
> 
> It is a good point. Would it make sense for compiler to do it? Instead of
> forcing users to track if SSE registers are used and doing xsave/xrstor
> manually?

To save and restore the complete vector state, you need to do

Check if CPU supports xsave/restore
if yes
  Query CPU for the complete vector state size
  Allocate space on stack for the complete vector state
  xsave
else
  Allocate space on stack for the fxsave area.
  fxsave
endif
...
if CPU supports xsave/restore
  xrstor
else
  fxrstor
endif

I don't believe compiler needs to do all that.
>From gcc-bugs-return-572899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 21 20:51:28 2017
Return-Path: <gcc-bugs-return-572899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16541 invoked by alias); 21 Aug 2017 20:51: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 16338 invoked by uid 48); 21 Aug 2017 20:51:21 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class
Date: Tue, 22 Aug 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: 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-81898-4-gIiaX5ZS0R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02458.txt.bz2
Content-length: 1666

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

--- Comment #4 from janus at gcc dot gnu.org ---
(In reply to janus from comment #3)
> I think the regression has been introduced by r241439, in particular the
> resolve.c part. Reverting it makes the segfault disappear.

Unfortunately reverting that part seems to cause quite a number of regressions
in the testsuite:

FAIL: gfortran.dg/allocate_with_source_16.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/allocate_with_source_6.f90   -O  execution test
FAIL: gfortran.dg/associated_target_4.f90   -O0  execution test
FAIL: gfortran.dg/class_10.f03   -O  (internal compiler error)
FAIL: gfortran.dg/class_array_15.f03   -O0  (internal compiler error)
FAIL: gfortran.dg/coarray_allocate_4.f08   -O0  execution test
FAIL: gfortran.dg/dtio_5.f90   -O0  execution test
FAIL: gfortran.dg/dynamic_dispatch_6.f03   -O0  (internal compiler error)
FAIL: gfortran.dg/interface_32.f90   -O  (internal compiler error)
FAIL: gfortran.dg/pointer_assign_9.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/pointer_assign_11.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/select_type_35.f03   -O0  execution test
FAIL: gfortran.dg/select_type_4.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/typebound_proc_25.f90   -O  (internal compiler error)
FAIL: gfortran.dg/unlimited_polymorphic_22.f90   -O0  execution test
FAIL: gfortran.dg/unlimited_polymorphic_24.f03   -O0  (internal compiler error)
FAIL: gfortran.dg/unlimited_polymorphic_3.f03   -O0  execution test
FAIL: gfortran.dg/prof/dynamic_dispatch_6.f03 compilation,  -fprofile-generate
-D_PROFILE_GENERATE (internal compiler error)
>From gcc-bugs-return-572900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 00:43:13 2017
Return-Path: <gcc-bugs-return-572900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27803 invoked by alias); 22 Aug 2017 00:43:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27703 invoked by uid 48); 22 Aug 2017 00:43:04 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54052] g++ takes excessive time in opt and generate phase; can lead to Segmentation Fault when not enough memory available
Date: Tue, 22 Aug 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: 4.6.3
X-Bugzilla-Keywords: compile-time-hog, memory-hog
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: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-54052-4-Pdj4XJiK6A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54052-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54052-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02459.txt.bz2
Content-length: 22214

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |compile-time-hog,
                   |                            |memory-hog
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|2012-07-24 00:00:00         |2017-08-22
                 CC|                            |egallager at gcc dot gnu.org
            Summary|Segmentation Fault          |g++ takes excessive time in
                   |                            |opt and generate phase; can
                   |                            |lead to Segmentation Fault
                   |                            |when not enough memory
                   |                            |available
     Ever confirmed|0                           |1

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Christophe DUVERGER from comment #5)
> Created attachment 27868 [details]
> test08.ii file

Doesn't ICE for me, just takes an inordinately long time to compile (once I add
-fpermissive):

$ /usr/local/bin/g++ -Wno-system-headers -Wall -Wextra -ansi -pedantic -O6 -c
-o test08.o test08.ii
In file included from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ext/new_allocator.h:33:0,
                 from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/c++allocator.h:34,
                 from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/allocator.h:48,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/string:43,
                 from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/locale_classes.h:42,
                 from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/ios_base.h:43,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ios:43,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ostream:40,
                 from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:40,
                 from test08.cpp:1:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/new:93:54: error: ‘operator new’
takes type ‘size_t’ (‘long unsigned int’) as first parameter [-fpermissive]
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/new:94:56: error: ‘operator new’
takes type ‘size_t’ (‘long unsigned int’) as first parameter [-fpermissive]
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/new:97:62: error: ‘operator new’
takes type ‘size_t’ (‘long unsigned int’) as first parameter [-fpermissive]
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/new:98:64: error: ‘operator new’
takes type ‘size_t’ (‘long unsigned int’) as first parameter [-fpermissive]
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/new:103:57: error: ‘operator new’
takes type ‘size_t’ (‘long unsigned int’) as first parameter [-fpermissive]
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/new:104:59: error: ‘operator new’
takes type ‘size_t’ (‘long unsigned int’) as first parameter [-fpermissive]
$ /usr/local/bin/g++ -Wno-system-headers -Wall -Wextra -ansi -pedantic -O6
-fpermissive -time -ftime-report -c -o test08.o test08.ii

Execution times (seconds)
 phase setup             :   0.03 ( 0%) usr   0.01 ( 0%) sys   0.06 ( 0%) wall 
   641 kB ( 0%) ggc
 phase parsing           : 384.38 (10%) usr   4.41 ( 2%) sys 390.09 ( 2%) wall 
 48551 kB (12%) ggc
 phase lang. deferred    :   0.23 ( 0%) usr   0.06 ( 0%) sys   0.30 ( 0%) wall 
  2462 kB ( 1%) ggc
 phase opt and generate  :3355.32 (90%) usr 241.76 (98%) sys15451.71 (98%) wall
 362698 kB (88%) ggc
 phase last asm          :   0.00 ( 0%) usr   0.01 ( 0%) sys   1.07 ( 0%) wall 
     7 kB ( 0%) ggc
 phase finalize          :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.24 ( 0%) wall 
     0 kB ( 0%) ggc
 |name lookup            :   1.21 ( 0%) usr   0.50 ( 0%) sys   1.83 ( 0%) wall 
  1946 kB ( 0%) ggc
 |overload resolution    :   1.88 ( 0%) usr   0.50 ( 0%) sys   2.43 ( 0%) wall 
 13196 kB ( 3%) ggc
 garbage collection      :   3.70 ( 0%) usr   3.27 ( 1%) sys 577.45 ( 4%) wall 
     0 kB ( 0%) ggc
 dump files              :   0.04 ( 0%) usr   0.04 ( 0%) sys   0.77 ( 0%) wall 
     0 kB ( 0%) ggc
 callgraph construction  :   0.86 ( 0%) usr   0.15 ( 0%) sys   4.51 ( 0%) wall 
  8014 kB ( 2%) ggc
 callgraph optimization  :   0.85 ( 0%) usr   0.20 ( 0%) sys   2.05 ( 0%) wall 
    11 kB ( 0%) ggc
 ipa function summary    :   0.27 ( 0%) usr   0.03 ( 0%) sys   0.34 ( 0%) wall 
    44 kB ( 0%) ggc
 ipa dead code removal   :   0.06 ( 0%) usr   0.03 ( 0%) sys   0.25 ( 0%) wall 
     0 kB ( 0%) ggc
 ipa virtual call target :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
     0 kB ( 0%) ggc
 ipa devirtualization    :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
     0 kB ( 0%) ggc
 ipa cp                  :   0.65 ( 0%) usr   0.12 ( 0%) sys   1.81 ( 0%) wall 
  4870 kB ( 1%) ggc
 ipa inlining heuristics :   1.14 ( 0%) usr   0.03 ( 0%) sys   2.88 ( 0%) wall 
    73 kB ( 0%) ggc
 ipa function splitting  :   0.04 ( 0%) usr   0.01 ( 0%) sys   0.09 ( 0%) wall 
     5 kB ( 0%) ggc
 ipa various optimizations:   0.32 ( 0%) usr   0.07 ( 0%) sys   1.12 ( 0%) wall
   4517 kB ( 1%) ggc
 ipa reference           :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.06 ( 0%) wall 
     0 kB ( 0%) ggc
 ipa profile             :   0.07 ( 0%) usr   0.00 ( 0%) sys   0.08 ( 0%) wall 
     0 kB ( 0%) ggc
 ipa pure const          :   0.39 ( 0%) usr   0.06 ( 0%) sys   0.52 ( 0%) wall 
     1 kB ( 0%) ggc
 ipa icf                 :  10.64 ( 0%) usr   0.04 ( 0%) sys  10.90 ( 0%) wall 
     0 kB ( 0%) ggc
 ipa SRA                 :   0.57 ( 0%) usr   0.06 ( 0%) sys   1.44 ( 0%) wall 
   480 kB ( 0%) ggc
 ipa free lang data      :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.03 ( 0%) wall 
     0 kB ( 0%) ggc
 ipa free inline summary :   0.05 ( 0%) usr   0.00 ( 0%) sys   0.33 ( 0%) wall 
     0 kB ( 0%) ggc
 cfg construction        :   0.20 ( 0%) usr   0.10 ( 0%) sys   2.36 ( 0%) wall 
  1351 kB ( 0%) ggc
 cfg cleanup             :   1.62 ( 0%) usr   0.48 ( 0%) sys  51.91 ( 0%) wall 
    69 kB ( 0%) ggc
 CFG verifier            :  23.67 ( 1%) usr   3.87 ( 2%) sys 137.69 ( 1%) wall 
     0 kB ( 0%) ggc
 trivially dead code     :   0.83 ( 0%) usr   0.07 ( 0%) sys   8.91 ( 0%) wall 
     0 kB ( 0%) ggc
 df scan insns           :   1.74 ( 0%) usr   0.33 ( 0%) sys  34.18 ( 0%) wall 
     0 kB ( 0%) ggc
 df multiple defs        : 100.31 ( 3%) usr   3.58 ( 1%) sys 232.47 ( 1%) wall 
     0 kB ( 0%) ggc
 df reaching defs        :  12.27 ( 0%) usr  18.83 ( 8%) sys 603.74 ( 4%) wall 
     0 kB ( 0%) ggc
 df live regs            :   4.59 ( 0%) usr   0.57 ( 0%) sys  32.18 ( 0%) wall 
     0 kB ( 0%) ggc
 df live&initialized regs:   1.57 ( 0%) usr   0.46 ( 0%) sys  30.30 ( 0%) wall 
     0 kB ( 0%) ggc
 df must-initialized regs:  12.65 ( 0%) usr  57.49 (23%) sys3155.48 (20%) wall 
     0 kB ( 0%) ggc
 df use-def / def-use chains:  12.43 ( 0%) usr  26.27 (11%) sys 866.06 ( 5%)
wall       0 kB ( 0%) ggc
 df reg dead/unused notes:   3.56 ( 0%) usr   0.37 ( 0%) sys  21.13 ( 0%) wall 
  7331 kB ( 2%) ggc
 register information    :   0.31 ( 0%) usr   0.03 ( 0%) sys   0.43 ( 0%) wall 
     0 kB ( 0%) ggc
 alias analysis          :   1.59 ( 0%) usr   0.09 ( 0%) sys   8.15 ( 0%) wall 
  5939 kB ( 1%) ggc
 alias stmt walking      :   3.45 ( 0%) usr   0.97 ( 0%) sys  10.51 ( 0%) wall 
    11 kB ( 0%) ggc
 register scan           :   0.16 ( 0%) usr   0.00 ( 0%) sys   0.30 ( 0%) wall 
    14 kB ( 0%) ggc
 rebuild jump labels     :   0.45 ( 0%) usr   0.00 ( 0%) sys   0.47 ( 0%) wall 
     0 kB ( 0%) ggc
 preprocessing           :   1.14 ( 0%) usr   0.75 ( 0%) sys   2.05 ( 0%) wall 
   611 kB ( 0%) ggc
 parser (global)         :   1.88 ( 0%) usr   1.14 ( 0%) sys   2.80 ( 0%) wall 
 16188 kB ( 4%) ggc
 parser struct body      :   0.79 ( 0%) usr   0.27 ( 0%) sys   1.24 ( 0%) wall 
  7204 kB ( 2%) ggc
 parser enumerator list  :   0.00 ( 0%) usr   0.01 ( 0%) sys   0.01 ( 0%) wall 
    42 kB ( 0%) ggc
 parser function body    : 378.87 (10%) usr   1.76 ( 1%) sys 381.80 ( 2%) wall 
 16462 kB ( 4%) ggc
 parser inl. func. body  :   0.09 ( 0%) usr   0.03 ( 0%) sys   0.16 ( 0%) wall 
   419 kB ( 0%) ggc
 parser inl. meth. body  :   0.46 ( 0%) usr   0.16 ( 0%) sys   0.62 ( 0%) wall 
  2714 kB ( 1%) ggc
 template instantiation  :   0.62 ( 0%) usr   0.25 ( 0%) sys   0.87 ( 0%) wall 
  6456 kB ( 2%) ggc
 constant expression evaluation:   0.27 ( 0%) usr   0.10 ( 0%) sys   0.37 ( 0%)
wall     857 kB ( 0%) ggc
 early inlining heuristics:   0.62 ( 0%) usr   0.09 ( 0%) sys   0.82 ( 0%) wall
  29327 kB ( 7%) ggc
 inline parameters       :   0.60 ( 0%) usr   0.09 ( 0%) sys   1.46 ( 0%) wall 
   345 kB ( 0%) ggc
 integration             : 146.07 ( 4%) usr   1.44 ( 1%) sys 151.31 ( 1%) wall 
 51407 kB (12%) ggc
 tree gimplify           :   0.98 ( 0%) usr   0.02 ( 0%) sys   1.04 ( 0%) wall 
  9632 kB ( 2%) ggc
 tree eh                 :  18.74 ( 1%) usr   0.28 ( 0%) sys  19.83 ( 0%) wall 
 25171 kB ( 6%) ggc
 tree CFG construction   :   0.27 ( 0%) usr   0.01 ( 0%) sys   0.27 ( 0%) wall 
 12439 kB ( 3%) ggc
 tree CFG cleanup        :   1.74 ( 0%) usr   0.20 ( 0%) sys   2.13 ( 0%) wall 
     4 kB ( 0%) ggc
 tree tail merge         :   0.28 ( 0%) usr   0.02 ( 0%) sys   0.31 ( 0%) wall 
    12 kB ( 0%) ggc
 tree VRP                :   2.46 ( 0%) usr   0.19 ( 0%) sys   3.39 ( 0%) wall 
   717 kB ( 0%) ggc
 tree Early VRP          :   0.29 ( 0%) usr   0.03 ( 0%) sys   0.65 ( 0%) wall 
   195 kB ( 0%) ggc
 tree copy propagation   :   0.24 ( 0%) usr   0.04 ( 0%) sys   0.28 ( 0%) wall 
     0 kB ( 0%) ggc
 tree PTA                :   3.57 ( 0%) usr   0.24 ( 0%) sys  12.60 ( 0%) wall 
   243 kB ( 0%) ggc
 tree PHI insertion      :   0.28 ( 0%) usr   0.01 ( 0%) sys   1.03 ( 0%) wall 
  4789 kB ( 1%) ggc
 tree SSA rewrite        :   0.49 ( 0%) usr   0.04 ( 0%) sys   1.57 ( 0%) wall 
  8149 kB ( 2%) ggc
 tree SSA other          :   0.79 ( 0%) usr   0.48 ( 0%) sys   1.15 ( 0%) wall 
    16 kB ( 0%) ggc
 tree SSA incremental    :   1.66 ( 0%) usr   0.07 ( 0%) sys   1.91 ( 0%) wall 
   422 kB ( 0%) ggc
 tree operand scan       :   1.73 ( 0%) usr   1.53 ( 1%) sys   3.27 ( 0%) wall 
  4572 kB ( 1%) ggc
 dominator optimization  :   0.69 ( 0%) usr   0.07 ( 0%) sys   0.87 ( 0%) wall 
  1999 kB ( 0%) ggc
 backwards jump threading:   0.34 ( 0%) usr   0.08 ( 0%) sys   0.41 ( 0%) wall 
    43 kB ( 0%) ggc
 tree SRA                :   0.13 ( 0%) usr   0.00 ( 0%) sys   0.17 ( 0%) wall 
    20 kB ( 0%) ggc
 isolate eroneous paths  :   0.05 ( 0%) usr   0.00 ( 0%) sys   0.08 ( 0%) wall 
     0 kB ( 0%) ggc
 tree CCP                :   1.13 ( 0%) usr   0.18 ( 0%) sys   2.24 ( 0%) wall 
  2955 kB ( 1%) ggc
 tree PHI const/copy prop:   0.25 ( 0%) usr   0.05 ( 0%) sys   0.30 ( 0%) wall 
     0 kB ( 0%) ggc
 tree split crit edges   :   0.85 ( 0%) usr   0.18 ( 0%) sys   1.23 ( 0%) wall 
 12640 kB ( 3%) ggc
 tree reassociation      :   0.27 ( 0%) usr   0.09 ( 0%) sys   0.81 ( 0%) wall 
     0 kB ( 0%) ggc
 tree PRE                :   1.30 ( 0%) usr   0.12 ( 0%) sys   2.63 ( 0%) wall 
  2499 kB ( 1%) ggc
 tree FRE                :   1.34 ( 0%) usr   0.17 ( 0%) sys   2.06 ( 0%) wall 
  1186 kB ( 0%) ggc
 tree code sinking       :   0.25 ( 0%) usr   0.07 ( 0%) sys   0.59 ( 0%) wall 
    33 kB ( 0%) ggc
 tree linearize phis     :   0.34 ( 0%) usr   0.05 ( 0%) sys   0.48 ( 0%) wall 
     5 kB ( 0%) ggc
 tree backward propagate :   0.10 ( 0%) usr   0.00 ( 0%) sys   0.14 ( 0%) wall 
     0 kB ( 0%) ggc
 tree forward propagate  :   0.53 ( 0%) usr   0.06 ( 0%) sys   0.77 ( 0%) wall 
   345 kB ( 0%) ggc
 tree phiprop            :   0.09 ( 0%) usr   0.03 ( 0%) sys   0.10 ( 0%) wall 
     0 kB ( 0%) ggc
 tree conservative DCE   :   1.45 ( 0%) usr   0.58 ( 0%) sys   1.91 ( 0%) wall 
    20 kB ( 0%) ggc
 tree aggressive DCE     :  24.30 ( 1%) usr   0.59 ( 0%) sys  34.37 ( 0%) wall 
   113 kB ( 0%) ggc
 tree buildin call DCE   :   0.06 ( 0%) usr   0.01 ( 0%) sys   0.12 ( 0%) wall 
     0 kB ( 0%) ggc
 tree DSE                :   0.65 ( 0%) usr   0.07 ( 0%) sys   0.70 ( 0%) wall 
  1059 kB ( 0%) ggc
 PHI merge               :   0.30 ( 0%) usr   0.08 ( 0%) sys   0.35 ( 0%) wall 
     0 kB ( 0%) ggc
 tree loop optimization  :   0.08 ( 0%) usr   0.01 ( 0%) sys   0.09 ( 0%) wall 
     0 kB ( 0%) ggc
 loopless fn             :   0.08 ( 0%) usr   0.01 ( 0%) sys   0.09 ( 0%) wall 
     0 kB ( 0%) ggc
 tree loop invariant motion:   0.08 ( 0%) usr   0.03 ( 0%) sys   0.09 ( 0%)
wall       0 kB ( 0%) ggc
 tree canonical iv       :   0.00 ( 0%) usr   0.01 ( 0%) sys   0.00 ( 0%) wall 
    82 kB ( 0%) ggc
 scev constant prop      :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.06 ( 0%) wall 
     5 kB ( 0%) ggc
 tree loop unswitching   :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall 
    14 kB ( 0%) ggc
 complete unrolling      :   0.04 ( 0%) usr   0.02 ( 0%) sys   0.08 ( 0%) wall 
   163 kB ( 0%) ggc
 tree vectorization      :   0.01 ( 0%) usr   0.01 ( 0%) sys   0.35 ( 0%) wall 
    66 kB ( 0%) ggc
 tree slp vectorization  :   0.68 ( 0%) usr   0.02 ( 0%) sys   1.19 ( 0%) wall 
  5499 kB ( 1%) ggc
 tree loop distribution  :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.04 ( 0%) wall 
     5 kB ( 0%) ggc
 tree iv optimization    :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.22 ( 0%) wall 
    64 kB ( 0%) ggc
 predictive commoning    :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.11 ( 0%) wall 
     6 kB ( 0%) ggc
 tree copy headers       :   0.05 ( 0%) usr   0.01 ( 0%) sys   0.12 ( 0%) wall 
     6 kB ( 0%) ggc
 tree SSA uncprop        :   0.24 ( 0%) usr   0.03 ( 0%) sys   0.29 ( 0%) wall 
     0 kB ( 0%) ggc
 tree NRV optimization   :   0.04 ( 0%) usr   0.00 ( 0%) sys   0.10 ( 0%) wall 
     0 kB ( 0%) ggc
 tree SSA verifier       :  22.73 ( 1%) usr   1.49 ( 1%) sys  26.05 ( 0%) wall 
     0 kB ( 0%) ggc
 tree STMT verifier      :  41.99 ( 1%) usr   1.83 ( 1%) sys  50.22 ( 0%) wall 
     0 kB ( 0%) ggc
 tree switch conversion  :   0.07 ( 0%) usr   0.01 ( 0%) sys   0.08 ( 0%) wall 
     0 kB ( 0%) ggc
 tree strlen optimization:   0.38 ( 0%) usr   0.05 ( 0%) sys   2.46 ( 0%) wall 
    57 kB ( 0%) ggc
 callgraph verifier      :  21.32 ( 1%) usr   0.61 ( 0%) sys  22.15 ( 0%) wall 
     0 kB ( 0%) ggc
 dominance frontiers     : 112.16 ( 3%) usr   9.62 ( 4%) sys1381.58 ( 9%) wall 
     0 kB ( 0%) ggc
 dominance computation   :   7.13 ( 0%) usr   2.48 ( 1%) sys  50.39 ( 0%) wall 
     0 kB ( 0%) ggc
 control dependences     : 130.30 ( 3%) usr   1.02 ( 0%) sys 150.31 ( 1%) wall 
     0 kB ( 0%) ggc
 out of ssa              :   0.13 ( 0%) usr   0.02 ( 0%) sys   0.29 ( 0%) wall 
   129 kB ( 0%) ggc
 expand vars             :2427.62 (65%) usr  13.21 ( 5%) sys2539.52 (16%) wall 
  2400 kB ( 1%) ggc
 expand                  :   3.44 ( 0%) usr   1.36 ( 1%) sys  64.61 ( 0%) wall 
 51257 kB (12%) ggc
 post expand cleanups    :   0.47 ( 0%) usr   0.40 ( 0%) sys   7.77 ( 0%) wall 
 13965 kB ( 3%) ggc
 varconst                :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.06 ( 0%) wall 
    53 kB ( 0%) ggc
 lower subreg            :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.36 ( 0%) wall 
     0 kB ( 0%) ggc
 jump                    :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.21 ( 0%) wall 
     0 kB ( 0%) ggc
 forward prop            :   1.40 ( 0%) usr   1.31 ( 1%) sys 135.48 ( 1%) wall 
  1679 kB ( 0%) ggc
 CSE                     :   1.21 ( 0%) usr   0.08 ( 0%) sys   2.94 ( 0%) wall 
   517 kB ( 0%) ggc
 dead code elimination   :   0.86 ( 0%) usr   0.08 ( 0%) sys   3.12 ( 0%) wall 
     0 kB ( 0%) ggc
 dead store elim1        :   1.85 ( 0%) usr   0.69 ( 0%) sys  19.98 ( 0%) wall 
  8918 kB ( 2%) ggc
 dead store elim2        :   7.28 ( 0%) usr  11.90 ( 5%) sys1344.73 ( 8%) wall 
  7215 kB ( 2%) ggc
 loop analysis           :   0.13 ( 0%) usr   0.03 ( 0%) sys   0.26 ( 0%) wall 
     0 kB ( 0%) ggc
 loop init               :   7.14 ( 0%) usr   1.42 ( 1%) sys  12.83 ( 0%) wall 
   182 kB ( 0%) ggc
 loop invariant motion   :   0.11 ( 0%) usr   0.03 ( 0%) sys   0.13 ( 0%) wall 
     0 kB ( 0%) ggc
 loop fini               :   0.02 ( 0%) usr   0.02 ( 0%) sys   0.68 ( 0%) wall 
     0 kB ( 0%) ggc
 CPROP                   :   2.73 ( 0%) usr   0.05 ( 0%) sys   4.01 ( 0%) wall 
  1393 kB ( 0%) ggc
 PRE                     :   1.21 ( 0%) usr   0.09 ( 0%) sys   4.28 ( 0%) wall 
   372 kB ( 0%) ggc
 CSE 2                   :   1.32 ( 0%) usr   0.20 ( 0%) sys  22.27 ( 0%) wall 
    92 kB ( 0%) ggc
 branch prediction       :   0.55 ( 0%) usr   0.05 ( 0%) sys   0.82 ( 0%) wall 
    86 kB ( 0%) ggc
 combiner                :  69.67 ( 2%) usr   0.42 ( 0%) sys  83.40 ( 1%) wall 
  4166 kB ( 1%) ggc
 if-conversion           :   0.20 ( 0%) usr   0.14 ( 0%) sys   5.47 ( 0%) wall 
    87 kB ( 0%) ggc
 mode switching          :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.04 ( 0%) wall 
     0 kB ( 0%) ggc
 integrated RA           :  13.09 ( 0%) usr   1.18 ( 0%) sys 114.80 ( 1%) wall 
 25242 kB ( 6%) ggc
 LRA non-specific        :   2.65 ( 0%) usr   0.47 ( 0%) sys  43.68 ( 0%) wall 
   622 kB ( 0%) ggc
 LRA virtuals elimination:   0.53 ( 0%) usr   0.01 ( 0%) sys   0.70 ( 0%) wall 
  2678 kB ( 1%) ggc
 LRA reload inheritance  :   0.05 ( 0%) usr   0.00 ( 0%) sys   0.03 ( 0%) wall 
    14 kB ( 0%) ggc
 LRA create live ranges  :   0.64 ( 0%) usr   0.21 ( 0%) sys   4.13 ( 0%) wall 
   745 kB ( 0%) ggc
 LRA hard reg assignment :   0.14 ( 0%) usr   0.11 ( 0%) sys   6.37 ( 0%) wall 
     0 kB ( 0%) ggc
 LRA rematerialization   :   0.05 ( 0%) usr   0.00 ( 0%) sys   0.05 ( 0%) wall 
     0 kB ( 0%) ggc
 reload                  :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.08 ( 0%) wall 
     0 kB ( 0%) ggc
 reload CSE regs         :   3.39 ( 0%) usr   0.10 ( 0%) sys   4.34 ( 0%) wall 
 12061 kB ( 3%) ggc
 load CSE after reload   :   0.55 ( 0%) usr   0.01 ( 0%) sys   2.31 ( 0%) wall 
     8 kB ( 0%) ggc
 ree                     :   1.42 ( 0%) usr  38.06 (15%) sys1725.83 (11%) wall 
     0 kB ( 0%) ggc
 thread pro- & epilogue  :   3.10 ( 0%) usr   0.52 ( 0%) sys  32.75 ( 0%) wall 
    18 kB ( 0%) ggc
 if-conversion 2         :   0.69 ( 0%) usr   0.02 ( 0%) sys   1.76 ( 0%) wall 
     0 kB ( 0%) ggc
 split paths             :   0.11 ( 0%) usr   0.02 ( 0%) sys   0.13 ( 0%) wall 
     0 kB ( 0%) ggc
 combine stack adjustments:   0.40 ( 0%) usr   0.32 ( 0%) sys   3.36 ( 0%) wall
    210 kB ( 0%) ggc
 peephole 2              :   0.69 ( 0%) usr   0.22 ( 0%) sys  26.28 ( 0%) wall 
  3153 kB ( 1%) ggc
 hard reg cprop          :   4.09 ( 0%) usr   0.21 ( 0%) sys  37.25 ( 0%) wall 
     0 kB ( 0%) ggc
 scheduling 2            :   9.79 ( 0%) usr   4.28 ( 2%) sys  65.16 ( 0%) wall 
  4181 kB ( 1%) ggc
 machine dep reorg       :   0.54 ( 0%) usr  13.99 ( 6%) sys 595.61 ( 4%) wall 
     0 kB ( 0%) ggc
 reorder blocks          :   3.72 ( 0%) usr   1.27 ( 1%) sys  85.59 ( 1%) wall 
  1437 kB ( 0%) ggc
 shorten branches        :   0.42 ( 0%) usr   0.08 ( 0%) sys   0.62 ( 0%) wall 
     0 kB ( 0%) ggc
 reg stack               :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.06 ( 0%) wall 
     0 kB ( 0%) ggc
 final                   :   1.41 ( 0%) usr   0.48 ( 0%) sys  28.18 ( 0%) wall 
  4336 kB ( 1%) ggc
 variable output         :   0.00 ( 0%) usr   0.02 ( 0%) sys   3.47 ( 0%) wall 
     0 kB ( 0%) ggc
 symout                  :   0.01 ( 0%) usr   0.01 ( 0%) sys   0.51 ( 0%) wall 
     0 kB ( 0%) ggc
 tree if-combine         :   0.10 ( 0%) usr   0.02 ( 0%) sys   0.11 ( 0%) wall 
     0 kB ( 0%) ggc
 uninit var analysis     :   0.09 ( 0%) usr   0.02 ( 0%) sys   0.19 ( 0%) wall 
     0 kB ( 0%) ggc
 straight-line strength reduction:   0.16 ( 0%) usr   0.02 ( 0%) sys   0.24 (
0%) wall       1 kB ( 0%) ggc
 store merging           :   0.09 ( 0%) usr   0.02 ( 0%) sys   0.16 ( 0%) wall 
     0 kB ( 0%) ggc
 initialize rtl          :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.49 ( 0%) wall 
     5 kB ( 0%) ggc
 address lowering        :   0.05 ( 0%) usr   0.01 ( 0%) sys   0.10 ( 0%) wall 
     0 kB ( 0%) ggc
 early local passes      :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall 
     0 kB ( 0%) ggc
 unaccounted optimizations:   0.02 ( 0%) usr   0.00 ( 0%) sys   0.03 ( 0%) wall
      0 kB ( 0%) ggc
 rest of compilation     :   8.99 ( 0%) usr   5.49 ( 2%) sys 616.64 ( 4%) wall 
  6420 kB ( 2%) ggc
 remove unused locals    :   0.49 ( 0%) usr   0.00 ( 0%) sys   0.72 ( 0%) wall 
     0 kB ( 0%) ggc
 address taken           :   0.25 ( 0%) usr   0.04 ( 0%) sys   0.27 ( 0%) wall 
     0 kB ( 0%) ggc
 verify loop closed      :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall 
     0 kB ( 0%) ggc
 verify RTL sharing      :  16.50 ( 0%) usr   0.83 ( 0%) sys  56.55 ( 0%) wall 
     0 kB ( 0%) ggc
 repair loop structures  :   0.35 ( 0%) usr   0.09 ( 0%) sys   0.50 ( 0%) wall 
     0 kB ( 0%) ggc
 TOTAL                 :3739.96           246.26          15843.82            
414369 kB
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --enable-checking=release to disable checks.
# cc1plus 3739.97 246.74
# as 2.20 0.10
$

Confirming as a memory and compile time hog. (I probably would've just killed
it if I hadn't had to leave my computer to its own devices for a while)
>From gcc-bugs-return-572901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 01:02:54 2017
Return-Path: <gcc-bugs-return-572901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38303 invoked by alias); 22 Aug 2017 01: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 38113 invoked by uid 55); 22 Aug 2017 01:02:48 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81296] derived type I/o problem
Date: Tue, 22 Aug 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: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81296-4-gOh3DJJ3O2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02460.txt.bz2
Content-length: 690

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

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Tue Aug 22 01:02:15 2017
New Revision: 251254

URL: https://gcc.gnu.org/viewcvs?rev=251254&root=gcc&view=rev
Log:
2017-08-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/81296
        * trans-io.c (get_dtio_proc): Add check for format label and set
        formatted flag accordingly. Reorganize the code a little.

        * gfortran.dg/dtio_12.f90: Update test.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-io.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/dtio_12.f90
>From gcc-bugs-return-572902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 01:09:30 2017
Return-Path: <gcc-bugs-return-572902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51235 invoked by alias); 22 Aug 2017 01: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 51169 invoked by uid 48); 22 Aug 2017 01:09:25 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51836] -Wsequence-point fails when convoluted expressions with multiple side effects are used
Date: Tue, 22 Aug 2017 09:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.6
X-Bugzilla-Keywords: diagnostic
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: keywords cc
Message-ID: <bug-51836-4-pxDBz2zDb9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51836-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51836-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02461.txt.bz2
Content-length: 1880

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Prasoon from comment #0)
> Consider the following example
> 
> 
> int main()
> { 
>       int i=10;
>       i += (i , i++, i) + i; // also invokes UB
> }
> 
> 
> prasoon@Prasoon:~/test_code$ cat ub.cpp
> int main()
> { 
>       int i=10;
>       i += (i , i++, i) + i; // also invokes UB
> }
> prasoon@Prasoon:~/test_code$ g++ -Wsequence-point ub.cpp
> prasoon@Prasoon:~/test_code$ 
> 
> I don't get any warning like 'operation on 'i' may be undefined.
> 

This one now warns:

$ /usr/local/bin/g++ -c -Wsequence-point 51836.cc
51836.cc: In function ‘int main()’:
51836.cc:4:13: warning: operation on ‘i’ may be undefined [-Wsequence-point]
  i += (i , i++, i) + i; // also invokes UB
            ~^~
$

> Another similar example
> 
> int main()
> {
>     char *str;
>     char array[100]= "Hello";
>     if((str = array)[0] == 'H'){
>          //do something
>     }
> }
> 
> As per my understanding (str = array)[0] also invokes UB but no warning is
> given by g++ even after using that option.
> 
> Another example is 
> 
> int main()
> {
>    int a = 10;
>    ++a = 100; // UB
> }

These next ones still don't warn, although I think they might be duplicates of
other bugs. Your 3rd example looks like bug 57039 but the example in that one
now warns. Gonna leave this UNCONFIRMED until I finish searching for
duplicates.
>From gcc-bugs-return-572903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 01:29:02 2017
Return-Path: <gcc-bugs-return-572903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102862 invoked by alias); 22 Aug 2017 01:29:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 102758 invoked by uid 48); 22 Aug 2017 01:28:57 -0000
From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/32415] libgcc_s not found in library search path with --enable-version-specific-runtime-libs
Date: Tue, 22 Aug 2017 09:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 4.1.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryxi at stu dot xidian.edu.cn
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-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-32415-4-j2YQna61AA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-32415-4@http.gcc.gnu.org/bugzilla/>
References: <bug-32415-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02462.txt.bz2
Content-length: 1029

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

Xi Ruoyao <ryxi at stu dot xidian.edu.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ryxi at stu dot xidian.edu.cn

--- Comment #16 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
(In reply to Bruno Haible from comment #14)

> Conclusion:
> 
> So it looks really like a bug in the installation rules for libgcc_s.
> - The 32-bit libgcc_s ought to be installed in
> PREFIX/lib/gcc/x86_64-pc-linux-gnu/4.9.0/32, not
> PREFIX/lib/gcc/x86_64-pc-linux-gnu/lib32.
> - The 64-bit libgcc_s ought to be installed in
> PREFIX/lib/gcc/x86_64-pc-linux-gnu/4.9.0, not
> PREFIX/lib/gcc/x86_64-pc-linux-gnu/lib64.

But if we do that there would be no PREFIX/lib(64)/libgcc_s.so.1.  Then we
have to add PREFIX/lib/gcc/{arch}/{version}/{multilibdir} to ld.so.conf.  I
think we should create symlink PREFIX/lib(64)/libgcc_s.so.1 as well.
>From gcc-bugs-return-572904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 02:42:39 2017
Return-Path: <gcc-bugs-return-572904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37696 invoked by alias); 22 Aug 2017 02:42: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 37601 invoked by uid 48); 22 Aug 2017 02:42:34 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/51834] -Wsequence-point fails when convoluted expressions with multiple side effects are used
Date: Tue, 22 Aug 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: c
X-Bugzilla-Version: 4.4.6
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-51834-4-vsBfA7Dyle@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51834-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51834-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02463.txt.bz2
Content-length: 185

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 51836 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-572905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 02:42:39 2017
Return-Path: <gcc-bugs-return-572905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37708 invoked by alias); 22 Aug 2017 02:42: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 37588 invoked by uid 48); 22 Aug 2017 02:42:34 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51836] -Wsequence-point fails when convoluted expressions with multiple side effects are used
Date: Tue, 22 Aug 2017 09:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.6
X-Bugzilla-Keywords: diagnostic
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: bug_status resolution
Message-ID: <bug-51836-4-pbmYp86oZw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51836-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51836-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02464.txt.bz2
Content-length: 584

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Oh looks like you actually already had another version of this bug with more
discussion on it

*** This bug has been marked as a duplicate of bug 51834 ***
>From gcc-bugs-return-572907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 02:53:53 2017
Return-Path: <gcc-bugs-return-572907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65123 invoked by alias); 22 Aug 2017 02:53: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 60206 invoked by uid 48); 22 Aug 2017 02:53:49 -0000
From: "ryan at mounce dot com.au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81037] Xcode 9 requires back ports on gcc-5-branch for bootstrapping under Xcode 9
Date: Tue, 22 Aug 2017 09:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryan at mounce dot com.au
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-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-81037-4-2Z3OInuQej@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02466.txt.bz2
Content-length: 653

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

Ryan Mounce <ryan at mounce dot com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ryan at mounce dot com.au

--- Comment #10 from Ryan Mounce <ryan at mounce dot com.au> ---
I had also submitted a backport of r235361 and r235362 to the mailing list to
address the same issue.

https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00476.html
https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00478.html
https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00477.html
>From gcc-bugs-return-572906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 02:52:13 2017
Return-Path: <gcc-bugs-return-572906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119597 invoked by alias); 22 Aug 2017 02:52:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 111270 invoked by uid 48); 22 Aug 2017 02:52:07 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60342] -Wsign-conversion ignores explicit conversion
Date: Tue, 22 Aug 2017 09:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cc resolution
Message-ID: <bug-60342-4-YPsITNQ2ri@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02465.txt.bz2
Content-length: 1160

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
gcc8 no longer prints the -Wsign-conversion warning, but instead prints one for
-Wuninitialized:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wconversion -Wsign-conversion
60342.cc
60342.cc: In function ‘int main()’:
60342.cc:7:43: warning: ‘int_value’ is used uninitialized in this function
[-Wuninitialized]
  if (std::numeric_limits<size_t>::max() - static_cast<size_t>(int_value))
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$

Maybe -Wsign-conversion was fixed, but I dunno for sure, so I'll just say
WORKSFORME.
>From gcc-bugs-return-572908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 05:49:41 2017
Return-Path: <gcc-bugs-return-572908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13105 invoked by alias); 22 Aug 2017 05:48:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11689 invoked by uid 48); 22 Aug 2017 05:46:20 -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: Tue, 22 Aug 2017 09:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81907-4-ZUsq3zCAkj@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-08/txt/msg02467.txt.bz2
Content-length: 666

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

--- Comment #13 from dongkyun.s at samsung dot com ---
> Confirmed the call on 6.4.1 but GCC 7 and trunk don't generate the call for -mcpu=cortex-a9 .

I also verified memset call is not generated with GCC 7.1 + "-mcpu=cortex-a9 or
-mtune=cortex-a9" or lower.

It seems interesting that 
in GCC6,
- don't generate the memset call for -mcpu=cortex-a12 or higer(e.g, cortex-a15,
V7 big.LITTLE)
- always generate the memset call for -mcpu=cortex-a9 or lower(e.g, cortex-a7,
cotex-a5)

in GCC7.1
- always don't generate the memset call (even with V3 Architecture Processors.
e.g, -mcpu=arm7)
>From gcc-bugs-return-572909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 06:19:56 2017
Return-Path: <gcc-bugs-return-572909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36845 invoked by alias); 22 Aug 2017 06:19: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 36751 invoked by uid 48); 22 Aug 2017 06:19:51 -0000
From: "harald at gigawatt dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/32415] libgcc_s not found in library search path with --enable-version-specific-runtime-libs
Date: Tue, 22 Aug 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: other
X-Bugzilla-Version: 4.1.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: harald at gigawatt dot nl
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-32415-4-yc6hVdJhHb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-32415-4@http.gcc.gnu.org/bugzilla/>
References: <bug-32415-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02468.txt.bz2
Content-length: 845

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

--- Comment #17 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to Xi Ruoyao from comment #16)
> But if we do that there would be no PREFIX/lib(64)/libgcc_s.so.1.

Indeed, and there shouldn't be. Not providing libgcc* in that location is
exactly how --enable-version-specific-runtime-libs used to work.

> Then we
> have to add PREFIX/lib/gcc/{arch}/{version}/{multilibdir} to ld.so.conf.

As mentioned on
<https://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html>, this option
can be used to install multiple versions of GCC side by side. If one version of
GCC is built without --enable-version-specific-runtime-libs, that version of
GCC provides the version of the libraries to be used at run-time.

Alternatively, indeed, ld.so.conf. Or manually create symlinks.
>From gcc-bugs-return-572910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 06:42:54 2017
Return-Path: <gcc-bugs-return-572910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36539 invoked by alias); 22 Aug 2017 06:42: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 36497 invoked by uid 48); 22 Aug 2017 06:42:50 -0000
From: "venkataramanan.kumar at amd dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80820] _mm_set_epi64x shouldn't store/reload for -mtune=haswell, Zen should avoid store/reload, and generic should think about it.
Date: Tue, 22 Aug 2017 10:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: venkataramanan.kumar at amd 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-80820-4-SrIbz8KgW2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80820-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80820-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02469.txt.bz2
Content-length: 1149

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

Venkataramanan <venkataramanan.kumar at amd dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |venkataramanan.kumar at amd dot co
                   |                            |m

--- Comment #4 from Venkataramanan <venkataramanan.kumar at amd dot com> ---
(In reply to Peter Cordes from comment #0)
> gcc with -mtune=generic likes to bounce through memory when moving data from
> integer registers to xmm for things like _mm_set_epi32.
> 
> There are 3 related tuning issues here:
> 
> * -mtune=haswell -mno-sse4 still uses one store/reload for _mm_set_epi64x.
> 
> * -mtune=znver1 should definitely favour movd/movq instead of store/reload.
>   (Ryzen has 1 m-op movd/movq between vector and integer with 3c latency,
> shorter than store-forwarding.  All the reasons to favour store/reload on
> other AMD uarches are gone.)
> 

Yes for Ryzen, using direct move instructions should be better than using
store-forwarding.
>From gcc-bugs-return-572911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 07:22:12 2017
Return-Path: <gcc-bugs-return-572911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88185 invoked by alias); 22 Aug 2017 07:22: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 88142 invoked by uid 48); 22 Aug 2017 07:22:07 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/81920] New: Improve timing-sensitive libgomp.oacc testcases
Date: Tue, 22 Aug 2017 10:02: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: enhancement
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81920-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02470.txt.bz2
Content-length: 1597

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

            Bug ID: 81920
           Summary: Improve timing-sensitive libgomp.oacc testcases
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

There is a number of libgomp.oacc testcases that tests timing behaviour, and
fails on and off. In the .sum file they show up as execution failure, which
normally is associated with a wrong-code bug:
...
FAIL: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/lib-81.c
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none  -O0 
execution test
...

In the .log file we find evidence that in fact it's a timing issue, but the
message doesn't tell us what is the actual and expected time:
...
'./lib-81.exe'; echo XYZ$?ZYX^M
actual time too long^M
Aborted (core dumped)^M
XYZ134ZYX^M
OK>
Elapsed time: 1031 ms
FAIL: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/lib-81.c
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -fofflo\
ad=nvptx-none  -O0  execution test
...

1. These should fail in output testing, not in execution, making clear in the
.sum file we're dealing with a timing issue.
2. The error message in the .log file should give details about actual and
expected time.
3. Having more detailed reporting may give us a better idea whether we need to
recalibrate, or whether there's an underlying issue that really needs fixing.
>From gcc-bugs-return-572912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 07:31:09 2017
Return-Path: <gcc-bugs-return-572912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112351 invoked by alias); 22 Aug 2017 07: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 112246 invoked by uid 48); 22 Aug 2017 07:31:03 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81917] internal compiler error: in finish_member_declaration, at cp/semantics.c:3004
Date: Tue, 22 Aug 2017 10: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: 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-81917-4-brhYOdu8pi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81917-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81917-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02471.txt.bz2
Content-length: 977

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:

template <typename> using a void;
template <typename, typename = void> class b
{
  typedef int c
} template <typename d> class b<d, a<d::e>>;
template <typename d, typename = typename b<d>::c> class f;
template <typename> class g;
template <typename, typename> class h
{
  class i;
  typedef g<f<i>> j class i
  {
    j k
  }
} typename h<int, int>::

Marek was it a valid test-case at the beginning?
>From gcc-bugs-return-572913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 07:35:59 2017
Return-Path: <gcc-bugs-return-572913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124071 invoked by alias); 22 Aug 2017 07:35: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 124024 invoked by uid 48); 22 Aug 2017 07:35:53 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81916] expansion of rint/nearbyint can simplified under -fno-signed-zeros
Date: Tue, 22 Aug 2017 10:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81916-4-YL2g6UBdCR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81916-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81916-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02472.txt.bz2
Content-length: 593

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The i386 backend already does this (in a slightly incorrect way), so you want
to move this expansion to generic code?
>From gcc-bugs-return-572914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 07:53:20 2017
Return-Path: <gcc-bugs-return-572914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54685 invoked by alias); 22 Aug 2017 07:53: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 54641 invoked by uid 55); 22 Aug 2017 07:53:14 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81910] [avr] ICE with "address" attribute on type
Date: Tue, 22 Aug 2017 10:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81910-4-uqwh98B6cE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02473.txt.bz2
Content-length: 590

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

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 07:52:42 2017
New Revision: 251256

URL: https://gcc.gnu.org/viewcvs?rev=251256&root=gcc&view=rev
Log:
gcc/
        PR target/81910
        * config/avr/avr.c (avr_handle_addr_attribute): Early return if
        not VAR_P. Filter attribute warnings with OPT_Wattributes.
        (avr_attribute_table) <io, io_low, address>: Initialize
        .decl_required with true.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr.c
>From gcc-bugs-return-572915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 07:56:12 2017
Return-Path: <gcc-bugs-return-572915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58906 invoked by alias); 22 Aug 2017 07:56: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 58873 invoked by uid 55); 22 Aug 2017 07:56:07 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81910] [avr] ICE with "address" attribute on type
Date: Tue, 22 Aug 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: unknown
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81910-4-nV4WF4fXgb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02474.txt.bz2
Content-length: 670

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

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 07:55:34 2017
New Revision: 251257

URL: https://gcc.gnu.org/viewcvs?rev=251257&root=gcc&view=rev
Log:
gcc/
        Backport from 2017-08-22 trunk r251256.
        PR target/81910
        * config/avr/avr.c (avr_handle_addr_attribute): Early return if
        not VAR_P. Filter attribute warnings with OPT_Wattributes.
        (avr_attribute_table) <io, io_low, address>: Initialize
        .decl_required with true.

Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/avr/avr.c
>From gcc-bugs-return-572916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 07:58:20 2017
Return-Path: <gcc-bugs-return-572916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62916 invoked by alias); 22 Aug 2017 07:58:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 62860 invoked by uid 55); 22 Aug 2017 07:58:14 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81910] [avr] ICE with "address" attribute on type
Date: Tue, 22 Aug 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: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81910-4-HO1VA9axwR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02475.txt.bz2
Content-length: 665

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

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 07:57:40 2017
New Revision: 251258

URL: https://gcc.gnu.org/viewcvs?rev=251258&root=gcc&view=rev
Log:
        Backport from 2017-08-22 trunk r251256.
        PR target/81910
        * config/avr/avr.c (avr_handle_addr_attribute): Early return if
        not VAR_P. Filter attribute warnings with OPT_Wattributes.
        (avr_attribute_table) <io, io_low, address>: Initialize
        .decl_required with true.

Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/avr/avr.c
>From gcc-bugs-return-572917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 08:17:49 2017
Return-Path: <gcc-bugs-return-572917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60260 invoked by alias); 22 Aug 2017 08:17:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 58438 invoked by uid 48); 22 Aug 2017 08:17:44 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81916] expansion of rint/nearbyint can simplified under -fno-signed-zeros
Date: Tue, 22 Aug 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: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81916-4-ltRFXsTVn5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81916-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81916-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02476.txt.bz2
Content-length: 451

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

--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
I've opened this PR for the -fno-signed-zeros aspect specifically, which the
i386 backend doesn't exploit at all: it expands to
copysign(abs(x)+1.0p52-1.0p52, x).

I think handling these expansions in a generic manner would be right (provided
that costs are checked so target-specific insns are still used if available).
>From gcc-bugs-return-572918-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 08:41:42 2017
Return-Path: <gcc-bugs-return-572918-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56940 invoked by alias); 22 Aug 2017 08:41:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55158 invoked by uid 55); 22 Aug 2017 08:41:33 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81910] [avr] ICE with "address" attribute on type
Date: Tue, 22 Aug 2017 11:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81910-4-AtGISaBSfy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02477.txt.bz2
Content-length: 670

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

--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 08:40:15 2017
New Revision: 251261

URL: https://gcc.gnu.org/viewcvs?rev=251261&root=gcc&view=rev
Log:
gcc/
        Backport from 2017-08-22 trunk r251256.
        PR target/81910
        * config/avr/avr.c (avr_handle_addr_attribute): Early return if
        not VAR_P. Filter attribute warnings with OPT_Wattributes.
        (avr_attribute_table) <io, io_low, address>: Initialize
        .decl_required with true.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/avr/avr.c
>From gcc-bugs-return-572919-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 09:17:27 2017
Return-Path: <gcc-bugs-return-572919-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101695 invoked by alias); 22 Aug 2017 09:17: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 101029 invoked by uid 48); 22 Aug 2017 09:16:52 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54052] g++ takes excessive time in opt and generate phase; can lead to Segmentation Fault when not enough memory available
Date: Tue, 22 Aug 2017 11:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.3
X-Bugzilla-Keywords: compile-time-hog, memory-hog
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-54052-4-AabDaQaHeb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54052-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54052-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02478.txt.bz2
Content-length: 761

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #6)
> Doesn't ICE for me, just takes an inordinately long time to compile (once I
> add -fpermissive):

You should have used -m32 not -fpermissive, the preprocessed source was created
on i686-pc-cygwin i.e. an ILP32 target. That's why you got those warnings on
x86_64.

> Extra diagnostic checks enabled; compiler may run slowly.
> Configure with --enable-checking=release to disable checks.

It's expected that compilation takes longer when those checks are enabled.

The code has an unreasonably large expression, so it's not entirely surprising
that it takes unreasonable long to optimize.
>From gcc-bugs-return-572920-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 09:31:02 2017
Return-Path: <gcc-bugs-return-572920-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41039 invoked by alias); 22 Aug 2017 09:30: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 40417 invoked by uid 55); 22 Aug 2017 09:30:04 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80462] [avr] Incorrect "warning: uninitialized variable 'xxx' put into program memory area" for identical strings
Date: Tue, 22 Aug 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: 6.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: gjl at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80462-4-0bnvGSxhm9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02479.txt.bz2
Content-length: 1113

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

--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 09:29:30 2017
New Revision: 251267

URL: https://gcc.gnu.org/viewcvs?rev=251267&root=gcc&view=rev
Log:
gcc/
        Backport from 2017-04-19 trunk r246997.
        PR target/80462
        * config/avr/avr.c (tree.h): Include it.
        (hash-table.h): Include it.
        (hash-set.h): Include it.
        (symtab.h): Include it.
        (inchash.h): Include it.
        (function.h): Include it.
        (hash-map.h): Include it.
        (plugin-api.h): Include it.
        (ipa-ref.h): Include it.
        (cgraph.h): Include it.
        (avr_encode_section_info): Don't warn for uninitialized progmem
        variable if it's just an alias.

        Backport from 2017-07-12 trunk r250151.
        PR target/81407
        * config/avr/avr.c (avr_encode_section_info)
        [progmem && !TREE_READONLY]: Error if progmem object needs
        constructing.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/avr/avr.c
>From gcc-bugs-return-572921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 09:31:03 2017
Return-Path: <gcc-bugs-return-572921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41133 invoked by alias); 22 Aug 2017 09:31:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40409 invoked by uid 55); 22 Aug 2017 09:30:03 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81407] [avr] Diagnose if a variable in progmem needs constructing.
Date: Tue, 22 Aug 2017 11:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: accepts-invalid, diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81407-4-L4IRnlFHPH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81407-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02480.txt.bz2
Content-length: 1113

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

--- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 09:29:30 2017
New Revision: 251267

URL: https://gcc.gnu.org/viewcvs?rev=251267&root=gcc&view=rev
Log:
gcc/
        Backport from 2017-04-19 trunk r246997.
        PR target/80462
        * config/avr/avr.c (tree.h): Include it.
        (hash-table.h): Include it.
        (hash-set.h): Include it.
        (symtab.h): Include it.
        (inchash.h): Include it.
        (function.h): Include it.
        (hash-map.h): Include it.
        (plugin-api.h): Include it.
        (ipa-ref.h): Include it.
        (cgraph.h): Include it.
        (avr_encode_section_info): Don't warn for uninitialized progmem
        variable if it's just an alias.

        Backport from 2017-07-12 trunk r250151.
        PR target/81407
        * config/avr/avr.c (avr_encode_section_info)
        [progmem && !TREE_READONLY]: Error if progmem object needs
        constructing.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/avr/avr.c
>From gcc-bugs-return-572922-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 09:33:16 2017
Return-Path: <gcc-bugs-return-572922-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47394 invoked by alias); 22 Aug 2017 09:33: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 47323 invoked by uid 55); 22 Aug 2017 09:33:10 -0000
From: "yroux at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80287] C++ crash with __attribute((may_alias))
Date: Tue, 22 Aug 2017 11:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yroux 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-80287-4-GbXNIUZXQM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80287-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80287-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02481.txt.bz2
Content-length: 455

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

--- Comment #9 from Yvan Roux <yroux at gcc dot gnu.org> ---
Author: yroux
Date: Tue Aug 22 09:32:38 2017
New Revision: 251268

URL: https://gcc.gnu.org/viewcvs?rev=251268&root=gcc&view=rev
Log:
2017-08-22  Yvan Roux  <yvan.roux@linaro.org>

        PR c++/80287
        * g++.dg/pr80287.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/pr80287.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572923-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 09:49:38 2017
Return-Path: <gcc-bugs-return-572923-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51706 invoked by alias); 22 Aug 2017 09:49:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34534 invoked by uid 55); 22 Aug 2017 09:49:25 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79883] avr i18n: untranslated "interrupt" or "signal"
Date: Tue, 22 Aug 2017 11:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79883-4-4SGZc9ydPE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02482.txt.bz2
Content-length: 938

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

--- Comment #16 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 09:48:48 2017
New Revision: 251269

URL: https://gcc.gnu.org/viewcvs?rev=251269&root=gcc&view=rev
Log:
gcc/
        Backport from 2016-06-15 trunk r237486.
        Backport from 2017-07-12 trunk r250156.
        PR target/79883
        PR target/67353
        * config/avr/avr.c (avr_set_current_function): Warn misspelled ISR
        only if -Wmisspelled-isr is on.  In diagnostic messages: Quote
        keywords and (parts of) identifiers.
        [WITH_AVRLIBC]: Warn functions named "ISR", "SIGNAL" or "INTERUPT".
        * doc/invoke.texi (AVR Options) <-Wmisspelled-isr>: Document.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/avr/avr.c
    branches/gcc-5-branch/gcc/config/avr/avr.opt
    branches/gcc-5-branch/gcc/doc/invoke.texi
>From gcc-bugs-return-572924-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 09:49:38 2017
Return-Path: <gcc-bugs-return-572924-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52594 invoked by alias); 22 Aug 2017 09:49: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 37580 invoked by uid 55); 22 Aug 2017 09:49:28 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/67353] [avr] Option-ize Warning "appears to be a misspelled signal / interrupt handler"
Date: Tue, 22 Aug 2017 12:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67353-4-V8KGdmwQEd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67353-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67353-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02483.txt.bz2
Content-length: 937

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

--- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 09:48:48 2017
New Revision: 251269

URL: https://gcc.gnu.org/viewcvs?rev=251269&root=gcc&view=rev
Log:
gcc/
        Backport from 2016-06-15 trunk r237486.
        Backport from 2017-07-12 trunk r250156.
        PR target/79883
        PR target/67353
        * config/avr/avr.c (avr_set_current_function): Warn misspelled ISR
        only if -Wmisspelled-isr is on.  In diagnostic messages: Quote
        keywords and (parts of) identifiers.
        [WITH_AVRLIBC]: Warn functions named "ISR", "SIGNAL" or "INTERUPT".
        * doc/invoke.texi (AVR Options) <-Wmisspelled-isr>: Document.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/avr/avr.c
    branches/gcc-5-branch/gcc/config/avr/avr.opt
    branches/gcc-5-branch/gcc/doc/invoke.texi
>From gcc-bugs-return-572925-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 09:57:09 2017
Return-Path: <gcc-bugs-return-572925-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99378 invoked by alias); 22 Aug 2017 09:57:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 99285 invoked by uid 48); 22 Aug 2017 09:57:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81921] New: Fails to always-inline intrinsics with -flto
Date: Tue, 22 Aug 2017 12:15: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: lto, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-81921-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02484.txt.bz2
Content-length: 1919

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

            Bug ID: 81921
           Summary: Fails to always-inline intrinsics with -flto
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: lto, rejects-valid
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-*-*, i?86-*-*

With -flto free_lang_data forces a DECL_FUNCTION_SPECIFIC_TARGET node if not
set
(target_option_default_node).  The way ix86_can_inline_p works this causes
behavioral differences for

extern __inline int  __attribute__((__gnu_inline__, __always_inline__,
__artificial__, target("sse2")))
_mm_loadu_si128 (int const *__P)
{
    return *__P;
}   

void __attribute__((target("ssse3"))) foo (void *p)
{
  volatile int x = _mm_loadu_si128 (p);
}

with -m32 vs. -m32 -flto.  The following fixes it (and allows free-lang-data
to be turned on unconditionally).

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c  (revision 251266)
+++ config/i386/i386.c  (working copy)
@@ -7507,12 +7507,12 @@ ix86_can_inline_p (tree caller, tree cal
   tree callee_tree = DECL_FUNCTION_SPECIFIC_TARGET (callee);

   /* If callee has no option attributes, then it is ok to inline.  */
-  if (!callee_tree)
+  if (!callee_tree || callee_tree == target_option_default_node)
     ret = true;

   /* If caller has no option attributes, but callee does then it is not ok to
      inline.  */
-  else if (!caller_tree)
+  else if (!caller_tree && caller_tree != target_option_default_node)
     ret = false;

   else
>From gcc-bugs-return-572926-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 09:58:09 2017
Return-Path: <gcc-bugs-return-572926-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100801 invoked by alias); 22 Aug 2017 09:58: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 100752 invoked by uid 48); 22 Aug 2017 09:58:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81921] [5/6/7/8 Regression] Fails to always-inline intrinsics with -flto
Date: Tue, 22 Aug 2017 12:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: lto, rejects-valid
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work assigned_to target_milestone short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-81921-4-7ZduG1tmaL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81921-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81921-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02485.txt.bz2
Content-length: 889

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-22
      Known to work|                            |4.8.5
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |5.5
            Summary|Fails to always-inline      |[5/6/7/8 Regression] Fails
                   |intrinsics with -flto       |to always-inline intrinsics
                   |                            |with -flto
     Ever confirmed|0                           |1
      Known to fail|                            |5.4.0, 6.4.0, 7.2.0, 8.0
>From gcc-bugs-return-572927-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 10:01:35 2017
Return-Path: <gcc-bugs-return-572927-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104883 invoked by alias); 22 Aug 2017 10:01:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 104595 invoked by uid 48); 22 Aug 2017 10:00:57 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81922] New: ICE in output_constructor_regular_field, at varasm.c:5030
Date: Tue, 22 Aug 2017 12:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
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: ---
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 attachments.created
Message-ID: <bug-81922-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02486.txt.bz2
Content-length: 962

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

            Bug ID: 81922
           Summary: ICE in output_constructor_regular_field, at
                    varasm.c:5030
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-*-*

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

> g++-7 -std=gnu++1z -S floc.cc 
floc.cc:187:1: internal compiler error: in output_constructor_regular_field, at
varasm.c:5030
    continue;
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.

same ICE with gcc 6 and trunk.
>From gcc-bugs-return-572928-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 10:02:17 2017
Return-Path: <gcc-bugs-return-572928-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117002 invoked by alias); 22 Aug 2017 10:02:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 114829 invoked by uid 55); 22 Aug 2017 10:02:12 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81305] [avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.
Date: Tue, 22 Aug 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: target
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81305-4-LGE8C8SjKR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81305-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81305-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02487.txt.bz2
Content-length: 1443

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

--- Comment #7 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 10:01:38 2017
New Revision: 251270

URL: https://gcc.gnu.org/viewcvs?rev=251270&root=gcc&view=rev
Log:
gcc/
        Backport from 2017-07-05 trunk r249995.
        PR target/81305
        * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
        Don't depend on "optimize > 0".
        (out_movhi_r_mr, out_movqi_mr_r): Same.
        (out_movhi_mr_r, out_movqi_r_mr): Same.
        (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
        io_address_operand on "optimize > 0".
gcc/testsuite/
        Backport from 2017-07-05 trunk r249995, r249996.
        PR target/81305
        * gcc.target/avr/isr-test.h: New file.
        * gcc.target/avr/torture/isr-01-simple.c: New test.
        * gcc.target/avr/torture/isr-02-call.c: New test.
        * gcc.target/avr/torture/isr-03-fixed.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.target/avr/isr-test.h
    branches/gcc-5-branch/gcc/testsuite/gcc.target/avr/torture/isr-01-simple.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/avr/torture/isr-02-call.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/avr/torture/isr-03-fixed.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/avr/avr.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572929-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 10:08:30 2017
Return-Path: <gcc-bugs-return-572929-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111944 invoked by alias); 22 Aug 2017 10: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 111865 invoked by uid 55); 22 Aug 2017 10:08:24 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/75964] insn combiner removes comparison after ABS
Date: Tue, 22 Aug 2017 13:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.1.1
X-Bugzilla-Keywords: diagnostic, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-75964-4-NyYRPfiwmF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-75964-4@http.gcc.gnu.org/bugzilla/>
References: <bug-75964-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02488.txt.bz2
Content-length: 834

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

--- Comment #11 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 10:07:51 2017
New Revision: 251271

URL: https://gcc.gnu.org/viewcvs?rev=251271&root=gcc&view=rev
Log:
gcc/
        Backport from 2017-05-06 trunk r247719.
        PR rtl-optimization/75964
        * simplify-rtx.c (simplify_const_relational_operation): Remove
        invalid handling of comparisons of integer ABS.
gcc/testsuite/
        Backport from 2017-05-06 trunk r247719.
        PR rtl-optimization/75964
        * gcc.dg/torture/pr75964.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr75964.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/simplify-rtx.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572930-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 10:11:41 2017
Return-Path: <gcc-bugs-return-572930-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28514 invoked by alias); 22 Aug 2017 10:11: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 28412 invoked by uid 48); 22 Aug 2017 10:11:34 -0000
From: "rearnsha at gcc dot gnu.org" <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: Tue, 22 Aug 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: 6.3.1
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rearnsha at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81907-4-WhyWCpEZ2I@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-08/txt/msg02489.txt.bz2
Content-length: 934

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

--- Comment #14 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to dongkyun.s from comment #13)
> > Confirmed the call on 6.4.1 but GCC 7 and trunk don't generate the call for -mcpu=cortex-a9 .
> 
> I also verified memset call is not generated with GCC 7.1 + "-mcpu=cortex-a9
> or -mtune=cortex-a9" or lower.
> 
> It seems interesting that 
> in GCC6,
> - don't generate the memset call for -mcpu=cortex-a12 or higer(e.g,
> cortex-a15, V7 big.LITTLE)
> - always generate the memset call for -mcpu=cortex-a9 or lower(e.g,
> cortex-a7, cotex-a5)
> 
> in GCC7.1
> - always don't generate the memset call (even with V3 Architecture
> Processors. e.g, -mcpu=arm7)

There's nothing in the compiler that explicitly says: use memset for these
cores and not for others.  The choice will be down to available instructions
and their relative costs.
>From gcc-bugs-return-572931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 10:33:16 2017
Return-Path: <gcc-bugs-return-572931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106104 invoked by alias); 22 Aug 2017 10: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 105908 invoked by uid 55); 22 Aug 2017 10:33:09 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81487] [mingw32] ld.exe: error: asprintf failed
Date: Tue, 22 Aug 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: lto
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl 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.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81487-4-n1rCptKawz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02490.txt.bz2
Content-length: 873

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

--- Comment #7 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Tue Aug 22 10:32:36 2017
New Revision: 251272

URL: https://gcc.gnu.org/viewcvs?rev=251272&root=gcc&view=rev
Log:
lto-plugin/
        Backport from 2017-07-26 gcc-7-branch r250562.
        PR lto/81487
        * lto-plugin.c (claim_file_handler): Use xasprintf instead of
        asprintf.
        [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
gcc/
        Backport from 2017-07-26 gcc-7-branch r250562.
        PR 81487
        * tree-ssa-structalias.c (alias_get_name): Use xasprintf instead
        of asprintf.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/tree-ssa-structalias.c
    branches/gcc-5-branch/lto-plugin/ChangeLog
    branches/gcc-5-branch/lto-plugin/lto-plugin.c
>From gcc-bugs-return-572932-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 10:39:07 2017
Return-Path: <gcc-bugs-return-572932-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125918 invoked by alias); 22 Aug 2017 10:39: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 125654 invoked by uid 48); 22 Aug 2017 10:39:01 -0000
From: "d.khalikov at partner dot samsung.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/81923] New: [ASAN] gcc emites wrong odr asan instrumentation for glibc
Date: Tue, 22 Aug 2017 13:54: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: d.khalikov at partner dot samsung.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-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-08/txt/msg02491.txt.bz2
Content-length: 2165

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

            Bug ID: 81923
           Summary: [ASAN] gcc emites wrong odr asan instrumentation for
                    glibc
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: d.khalikov at partner dot samsung.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: ---

Hello,
I'm currently working on enabling the build of glibc with ASan instrumentation
and facing this type of error:

/tmp/ccKWa1tS.s: Assembler messages:
/tmp/ccKWa1tS.s:20: Error: junk at end of line, first unrecognized character is
`*'
/tmp/ccKWa1tS.s:21: Error: junk at end of line, first unrecognized character is
`*'
/tmp/ccKWa1tS.s:23: Error: unrecognized symbol type ""
/tmp/ccKWa1tS.s:23: Error: junk at end of line, first unrecognized character is
`*'
/tmp/ccKWa1tS.s:24: Error: expected comma after name `__odr_asan.' in .size
directive
/tmp/ccKWa1tS.s:25: Error: invalid character '*' in mnemonic
/tmp/ccKWa1tS.s:53: Error: invalid operands (*UND* and .rodata sections) for
`*'

As far as I understood, the KASAN disables this type of instrumentation:

2567 static bool
2568 asan_needs_odr_indicator_p (tree decl)
2569 {
2570   /* Don't emit ODR indicators for kernel because:
2571      a) Kernel is written in C thus doesn't need ODR indicators.
2572      b) Some kernel code may have assumptions about symbols containing
specific
2573         patterns in their names.  Since ODR indicators contain original
names
2574         of symbols they are emitted for, these assumptions would be broken
for
2575         ODR indicator symbols.  */
2576   return (!(flag_sanitize & SANITIZE_KERNEL_ADDRESS)
2577           && !DECL_ARTIFICIAL (decl)
2578           && !DECL_WEAK (decl)
2579           && TREE_PUBLIC (decl));
2580 }

Could it be some solution for glibc ? Or may be "compile time" flag.
Thanks.
>From gcc-bugs-return-572933-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 10:52:23 2017
Return-Path: <gcc-bugs-return-572933-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27793 invoked by alias); 22 Aug 2017 10:52: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 26552 invoked by uid 48); 22 Aug 2017 10:52:17 -0000
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81924] New: [5 Regression] ICE: in simplify_binary_operation_1, at simplify-rtx.c:3678 on powerpc64le-linux-gnu
Date: Tue, 22 Aug 2017 14:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: doko 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-81924-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02492.txt.bz2
Content-length: 2654

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

            Bug ID: 81924
           Summary: [5 Regression] ICE: in simplify_binary_operation_1, at
                    simplify-rtx.c:3678 on powerpc64le-linux-gnu
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with the gcc-5 branch on  powerpc64le-linux-gnu, works on 4.8, 6 and 7,
worked around with -O1:

$ gcc-5 -c -g -O2 foo.cfoo.c: In function ‘fn1’:
foo.c:19:1: internal compiler error: in simplify_binary_operation_1, at
simplify-rtx.c:3678
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.

(gdb) bt
#0  0x0000000010d12b64 in fancy_abort(char const*, int, char const*) ()
#1  0x000000001066d4dc in ?? ()
#2  0x00000000102c2048 in ?? ()
#3  0x00000000102c2f70 in cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*,
int, rtx_def* (*)(rtx_def*, bitmap_head*, int, void*), void*) ()
#4  0x0000000010913938 in ?? ()
#5  0x00000000102c1ef4 in ?? ()
#6  0x00000000102c1bb8 in ?? ()
#7  0x00000000102c2f70 in cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*,
int, rtx_def* (*)(rtx_def*, bitmap_head*, int, void*), void*) ()
#8  0x0000000010913938 in ?? ()
#9  0x00000000102c1ef4 in ?? ()
#10 0x00000000102c2f70 in cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*,
int, rtx_def* (*)(rtx_def*, bitmap_head*, int, void*), void*) ()
#11 0x0000000010912508 in emit_note_insn_var_location(variable_def**,
emit_note_data_def*) ()
#12 0x0000000010914654 in ?? ()
#13 0x0000000010919428 in ?? ()
#14 0x000000001091bbd8 in ?? ()
#15 0x00000000105b5c10 in execute_one_pass(opt_pass*) ()
#16 0x00000000105b6124 in ?? ()
#17 0x00000000105b613c in ?? ()
#18 0x00000000105b613c in ?? ()
#19 0x00000000105b61c4 in execute_pass_list(function*, opt_pass*) ()
#20 0x00000000102b0bac in cgraph_node::expand() ()
#21 0x00000000102b25d8 in ?? ()
#22 0x00000000102b40a8 in symbol_table::finalize_compilation_unit() ()
#23 0x0000000010176be8 in c_write_global_declarations() ()
#24 0x00000000106903fc in ?? ()
#25 0x00000000101588d8 in toplev::main(int, char**) ()
#26 0x0000000010159348 in main ()

$ cat foo.c
typedef __uint128_t vint128_t __attribute__((vector_size(16)));
vint128_t z;
int x, y;

void fn2(void);

void fn1(void)
{
        vint128_t c;
        y = 1000;
        for (; y; y--) {
                c = c ^ x;
                z -= c;
                z ^= x;
                c = c ^ x;
        }

        fn2();
}
>From gcc-bugs-return-572934-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 10:52:29 2017
Return-Path: <gcc-bugs-return-572934-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29350 invoked by alias); 22 Aug 2017 10:52: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 28192 invoked by uid 55); 22 Aug 2017 10:52:24 -0000
From: "yroux at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80287] C++ crash with __attribute((may_alias))
Date: Tue, 22 Aug 2017 15:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yroux 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-80287-4-wBWzjPdauJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80287-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80287-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02493.txt.bz2
Content-length: 573

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

--- Comment #10 from Yvan Roux <yroux at gcc dot gnu.org> ---
Author: yroux
Date: Tue Aug 22 10:51:52 2017
New Revision: 251273

URL: https://gcc.gnu.org/viewcvs?rev=251273&root=gcc&view=rev
Log:
2017-08-22  Yvan Roux  <yvan.roux@linaro.org>

        Backport from mainline
        2017-08-22  Yvan Roux  <yvan.roux@linaro.org>

        PR c++/80287
        * g++.dg/pr80287.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/pr80287.C
Modified:
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572935-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 11:11:11 2017
Return-Path: <gcc-bugs-return-572935-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27166 invoked by alias); 22 Aug 2017 11:11:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25211 invoked by uid 48); 22 Aug 2017 11:11:06 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54052] g++ takes excessive time in opt and generate phase; can lead to Segmentation Fault when not enough memory available
Date: Tue, 22 Aug 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: c++
X-Bugzilla-Version: 4.6.3
X-Bugzilla-Keywords: compile-time-hog, memory-hog
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-54052-4-T9hgh3V10X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54052-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54052-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02494.txt.bz2
Content-length: 604

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

--- Comment #8 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #7)
> (In reply to Eric Gallager from comment #6)
> > Doesn't ICE for me, just takes an inordinately long time to compile (once I
> > add -fpermissive):
> 
> You should have used -m32 not -fpermissive, the preprocessed source was
> created on i686-pc-cygwin i.e. an ILP32 target. That's why you got those
> warnings on x86_64.
> 

I'm actually on a 32-bit target myself (i386-apple-darwin9.8.0) so -m32 is
already the default for me
>From gcc-bugs-return-572936-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 11:23:15 2017
Return-Path: <gcc-bugs-return-572936-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26292 invoked by alias); 22 Aug 2017 11:23: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 20168 invoked by uid 48); 22 Aug 2017 11:23:08 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62126] -Wshadow for typedef and template parm
Date: Tue, 22 Aug 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: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-62126-4-GImoGtWHxk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62126-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62126-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02495.txt.bz2
Content-length: 1230

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
gcc8 prints a shadowing warning for me:

$ /usr/local/bin/g++ -c -Wall -Wextra -Wshadow -pedantic -D_GNU_SOURCE
-mtune=generic -march=i386 -fstack-protector -Wformat=2 -Wformat-security
62126.cc
62126.cc: In static member function ‘static void Base<type>::hello()’:
62126.cc:25:16: warning: declaration of ‘type_t’ shadows a previous local
[-Wshadow]
    typedef int type_t; // <<< shadowing type_t
                ^~~~~~
62126.cc:23:16: note: shadowed declaration is here
   typedef type type_t;
                ^~~~~~
$

So it looks like it was probably FIXED, but I don't have the computing
resources to bisect to find out what version exactly, so I'll just say
WORKSFORME.
>From gcc-bugs-return-572937-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 11:26:58 2017
Return-Path: <gcc-bugs-return-572937-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34916 invoked by alias); 22 Aug 2017 11: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 34851 invoked by uid 48); 22 Aug 2017 11:26:53 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52961] Make -Wempty-body less noisy and enable it with -Wall
Date: Tue, 22 Aug 2017 15:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
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: keywords bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-52961-4-xO8l2zzcj9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52961-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52961-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02496.txt.bz2
Content-length: 1052

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |minor

--- Comment #11 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Paolo Carlini from comment #9)
> Uhm, I was under the impression that the other 2 used to give problems and
> that's why we don't warn anymore by default. Bah. All in all, given that we
> have the warning anyway, I don't think this is really an high priority
> issue, if you see what I mean ;)

ok, changing importance from "normal" to "minor" then (and confirming)
>From gcc-bugs-return-572938-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 11:29:42 2017
Return-Path: <gcc-bugs-return-572938-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42785 invoked by alias); 22 Aug 2017 11:29: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 42720 invoked by uid 48); 22 Aug 2017 11:29:36 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81924] [5 Regression] ICE: in simplify_binary_operation_1, at simplify-rtx.c:3678 on powerpc64le-linux-gnu
Date: Tue, 22 Aug 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: target
X-Bugzilla-Version: 5.4.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority cf_known_to_work target_milestone
Message-ID: <bug-81924-4-o4cd0VzUmn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81924-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81924-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02497.txt.bz2
Content-length: 467

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
           Priority|P3                          |P2
      Known to work|                            |4.8.5
   Target Milestone|---                         |5.5
>From gcc-bugs-return-572939-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 11:32:15 2017
Return-Path: <gcc-bugs-return-572939-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12573 invoked by alias); 22 Aug 2017 11:32:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12389 invoked by uid 48); 22 Aug 2017 11:32:03 -0000
From: "nsz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81925] New: early lto debug link failure on aarch64_be
Date: Tue, 22 Aug 2017 15:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nsz 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 attachments.created
Message-ID: <bug-81925-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02498.txt.bz2
Content-length: 22376

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

            Bug ID: 81925
           Summary: early lto debug link failure on aarch64_be
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nsz at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 42025
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42025&action=edit
save-temps and other output files

following works without -g, with -g linking fails,
readelf reports errors on linker input, files are
attached in a tar:

$ ./aarch64_be-none-elf-gcc -flto -specs=rdimon.specs -g a.c -v -save-temps
Using built-in specs.
Reading specs from
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/lib/rdimon.specs
rename spec lib to libc
COLLECT_GCC=./aarch64_be-none-elf-gcc
COLLECT_LTO_WRAPPER=/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/lto-wrapper
Target: aarch64_be-none-elf
Configured with: /home/szabolcs/w/b/src/gcc/configure
--target=aarch64_be-none-elf
--prefix=/home/szabolcs/w/b/build-aarch64_be-none-elf/install
--with-gmp=/home/szabolcs/w/b/build-aarch64_be-none-elf/host-tools
--with-mpfr=/home/szabolcs/w/b/build-aarch64_be-none-elf/host-tools
--with-mpc=/home/szabolcs/w/b/build-aarch64_be-none-elf/host-tools
--with-isl=/home/szabolcs/w/b/build-aarch64_be-none-elf/host-tools
--with-pkgversion=unknown --disable-shared --disable-nls --disable-threads
--disable-tls --enable-checking=yes --enable-languages=c,c++,fortran
--with-newlib : (reconfigured) 
Thread model: single
gcc version 8.0.0 20170821 (experimental) (unknown) 
COLLECT_GCC_OPTIONS='-flto' '-specs=rdimon.specs' '-g' '-v' '-save-temps'
'-mbig-endian' '-mabi=lp64'

/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/cc1
-E -quiet -v a.c -mbig-endian -mabi=lp64 -flto -g -fworking-directory
-fpch-preprocess -o a.i
ignoring nonexistent directory
"/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/sys-include"
#include "..." search starts here:
#include <...> search starts here:

/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/include

/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/include-fixed

/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/include
End of search list.
COLLECT_GCC_OPTIONS='-flto' '-specs=rdimon.specs' '-g' '-v' '-save-temps'
'-mbig-endian' '-mabi=lp64'

/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/cc1
-fpreprocessed a.i -quiet -dumpbase a.c -mbig-endian -mabi=lp64 -auxbase a -g
-version -flto -o a.s
GNU C11 (unknown) version 8.0.0 20170821 (experimental) (aarch64_be-none-elf)
        compiled by GNU C version 6.3.0 20170406, GMP version 4.3.2, MPFR
version 3.0.0, MPC version 0.8.2, isl version isl-0.15-2-g00f2e0ca-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C11 (unknown) version 8.0.0 20170821 (experimental) (aarch64_be-none-elf)
        compiled by GNU C version 6.3.0 20170406, GMP version 4.3.2, MPFR
version 3.0.0, MPC version 0.8.2, isl version isl-0.15-2-g00f2e0ca-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: c56b6c42715c65bbcbf1872ac0fefbbe
COLLECT_GCC_OPTIONS='-flto' '-specs=rdimon.specs' '-g' '-v' '-save-temps'
'-mbig-endian' '-mabi=lp64'

/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/bin/as
-EB -mabi=lp64 -o a.o a.s
COMPILER_PATH=/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/bin/
LIBRARY_PATH=/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/lib/
COLLECT_GCC_OPTIONS='-flto' '-specs=rdimon.specs' '-g' '-v' '-save-temps'
'-mbig-endian' '-mabi=lp64'

/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/collect2
-plugin
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/liblto_plugin.so
-plugin-opt=/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/lto-wrapper
-plugin-opt=-fresolution=a.res -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lg -plugin-opt=-pass-through=-lc
-plugin-opt=-pass-through=-lrdimon -plugin-opt=-pass-through=-lgcc -flto -EB -X
-maarch64elfb
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/crti.o
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/crtbegin.o
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/lib/crt0.o
-L/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0
-L/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/lib
a.o -lgcc --start-group -lg -lc -lrdimon --end-group -lgcc
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/crtend.o
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/crtn.o
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/lto-wrapper
-fresolution=a.res -flinker-output=exec a.o 
./aarch64_be-none-elf-gcc @/tmp/ccEMJ7Ax
Using built-in specs.
Reading specs from
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/lib/rdimon.specs
rename spec lib to libc
COLLECT_GCC=./aarch64_be-none-elf-gcc
Target: aarch64_be-none-elf
Configured with: /home/szabolcs/w/b/src/gcc/configure
--target=aarch64_be-none-elf
--prefix=/home/szabolcs/w/b/build-aarch64_be-none-elf/install
--with-gmp=/home/szabolcs/w/b/build-aarch64_be-none-elf/host-tools
--with-mpfr=/home/szabolcs/w/b/build-aarch64_be-none-elf/host-tools
--with-mpc=/home/szabolcs/w/b/build-aarch64_be-none-elf/host-tools
--with-isl=/home/szabolcs/w/b/build-aarch64_be-none-elf/host-tools
--with-pkgversion=unknown --disable-shared --disable-nls --disable-threads
--disable-tls --enable-checking=yes --enable-languages=c,c++,fortran
--with-newlib : (reconfigured) 
Thread model: single
gcc version 8.0.0 20170821 (experimental) (unknown) 
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-mbig-endian'
'-mabi=lp64' '-specs=rdimon.specs' '-g' '-v' '-save-temps' '-mbig-endian'
'-mabi=lp64' '-fltrans-output-list=/tmp/cclG2Oek.ltrans.out' '-fwpa'
'-fresolution=a.res' '-flinker-output=exec'

/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/lto1
-quiet -dumpbase a.o -mbig-endian -mabi=lp64 -mbig-endian -mabi=lp64 -auxbase a
-g -version -fno-openmp -fno-openacc
-fltrans-output-list=/tmp/cclG2Oek.ltrans.out -fwpa -fresolution=a.res
-flinker-output=exec @/tmp/cc6F2Snn
GNU GIMPLE (unknown) version 8.0.0 20170821 (experimental)
(aarch64_be-none-elf)
        compiled by GNU C version 6.3.0 20170406, GMP version 4.3.2, MPFR
version 3.0.0, MPC version 0.8.2, isl version isl-0.15-2-g00f2e0ca-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU GIMPLE (unknown) version 8.0.0 20170821 (experimental)
(aarch64_be-none-elf)
        compiled by GNU C version 6.3.0 20170406, GMP version 4.3.2, MPFR
version 3.0.0, MPC version 0.8.2, isl version isl-0.15-2-g00f2e0ca-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
COMPILER_PATH=/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/bin/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/libexec/gcc/aarch64_be-none-elf/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/bin/
LIBRARY_PATH=/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/:/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/lib/
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-mbig-endian'
'-mabi=lp64' '-specs=rdimon.specs' '-g' '-v' '-save-temps' '-mbig-endian'
'-mabi=lp64' '-fltrans-output-list=/tmp/cclG2Oek.ltrans.out' '-fwpa'
'-fresolution=a.res' '-flinker-output=exec'
./aarch64_be-none-elf-gcc -mbig-endian -mabi=lp64 -r -nostdlib -o
/tmp/ccHSUHHJdebugobj /tmp/ccEnQGOVdebugobjtem
/tmp/ccEnQGOVdebugobjtem: file not recognized: Bad value
collect2: error: ld returned 1 exit status
lto-wrapper: fatal error: ./aarch64_be-none-elf-gcc returned 1 exit status
compilation terminated.
[Leaving LTRANS /tmp/cclG2Oek.ltrans.out]
[Leaving LTRANS /tmp/ccHSUHHJdebugobj]
/home/szabolcs/w/b/build-aarch64_be-none-elf/install/lib/gcc/aarch64_be-none-elf/8.0.0/../../../../aarch64_be-none-elf/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status


$ ./aarch64_be-none-elf-readelf -aW a.o
ELF Header:
  Magic:   7f 45 4c 46 02 02 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF64
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              REL (Relocatable file)
  Machine:                           AArch64
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          0 (bytes into file)
  Start of section headers:          2232 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           0 (bytes)
  Number of program headers:         0
  Size of section headers:           64 (bytes)
  Number of section headers:         20
  Section header string table index: 19

Section Headers:
  [Nr] Name              Type            Address          Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            0000000000000000 000000 000000 00     
0   0  0
  [ 1] .text             PROGBITS        0000000000000000 000040 000000 00  AX 
0   0  1
  [ 2] .data             PROGBITS        0000000000000000 000040 000000 00  WA 
0   0  1
  [ 3] .bss              NOBITS          0000000000000000 000040 000000 00  WA 
0   0  1
  [ 4] .gnu.debuglto_.debug_info PROGBITS        0000000000000000 000040 00002c
00      0   0  1
  [ 5] .rela.gnu.debuglto_.debug_info RELA            0000000000000000 0006d0
000060 18   I 17   4  8
  [ 6] .gnu.debuglto_.debug_abbrev PROGBITS        0000000000000000 00006c
000028 00      0   0  1
  [ 7] .gnu.debuglto_.debug_str PROGBITS        0000000000000000 000094 000085
01  MS  0   0  1
  [ 8] .gnu.lto_.inline.df9efabfe7eb7929 PROGBITS        0000000000000000
000119 000028 00   E  0   0  1
  [ 9] .gnu.lto_.jmpfuncs.df9efabfe7eb7929 PROGBITS        0000000000000000
000141 000012 00   E  0   0  1
  [10] .gnu.lto_main.df9efabfe7eb7929 PROGBITS        0000000000000000 000153
0000f6 00   E  0   0  1
  [11] .gnu.lto_.symbol_nodes.df9efabfe7eb7929 PROGBITS        0000000000000000
000249 000023 00   E  0   0  1
  [12] .gnu.lto_.refs.df9efabfe7eb7929 PROGBITS        0000000000000000 00026c
00000f 00   E  0   0  1
  [13] .gnu.lto_.decls.df9efabfe7eb7929 PROGBITS        0000000000000000 00027b
000180 00   E  0   0  1
  [14] .gnu.lto_.symtab.df9efabfe7eb7929 PROGBITS        0000000000000000
0003fb 000014 00   E  0   0  1
  [15] .gnu.lto_.opts    PROGBITS        0000000000000000 00040f 000080 00   E 
0   0  1
  [16] .comment          PROGBITS        0000000000000000 00048f 00002e 01  MS 
0   0  1
  [17] .symtab           SYMTAB          0000000000000000 0004c0 0001e0 18    
18  17  8
  [18] .strtab           STRTAB          0000000000000000 0006a0 00002e 00     
0   0  1
  [19] .shstrtab         STRTAB          0000000000000000 000730 000188 00     
0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
  L (link order), O (extra OS processing required), G (group), T (TLS),
  C (compressed), x (unknown), o (OS specific), E (exclude),
  p (processor specific)

There are no section groups in this file.

There are no program headers in this file.

There is no dynamic section in this file.

Relocation section '.rela.gnu.debuglto_.debug_info' at offset 0x6d0 contains 4
entries:
    Offset             Info             Type               Symbol's Value 
Symbol's Name + Addend
0000000000000006  0000000600000102 R_AARCH64_ABS32        0000000000000000
.gnu.debuglto_.debug_abbrev + 0
000000000000000c  0000000700000102 R_AARCH64_ABS32        0000000000000000
.gnu.debuglto_.debug_str + 39
0000000000000015  0000000700000102 R_AARCH64_ABS32        0000000000000000
.gnu.debuglto_.debug_str + 0
000000000000001a  0000000700000102 R_AARCH64_ABS32        0000000000000000
.gnu.debuglto_.debug_str + 80

The decoding of unwind sections for machine type AArch64 is not currently
supported.

Symbol table '.symtab' contains 20 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS a.c
     2: 0000000000000000     0 SECTION LOCAL  DEFAULT    1 
     3: 0000000000000000     0 SECTION LOCAL  DEFAULT    2 
     4: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 
     5: 0000000000000000     0 SECTION LOCAL  DEFAULT    4 
     6: 0000000000000000     0 SECTION LOCAL  DEFAULT    6 
     7: 0000000000000000     0 SECTION LOCAL  DEFAULT    7 
     8: 0000000000000000     0 SECTION LOCAL  DEFAULT    8 
     9: 0000000000000000     0 SECTION LOCAL  DEFAULT    9 
    10: 0000000000000000     0 SECTION LOCAL  DEFAULT   10 
    11: 0000000000000000     0 SECTION LOCAL  DEFAULT   11 
    12: 0000000000000000     0 SECTION LOCAL  DEFAULT   12 
    13: 0000000000000000     0 SECTION LOCAL  DEFAULT   13 
    14: 0000000000000000     0 SECTION LOCAL  DEFAULT   14 
    15: 0000000000000000     0 SECTION LOCAL  DEFAULT   15 
    16: 0000000000000000     0 SECTION LOCAL  DEFAULT   16 
    17: 0000000000000000     0 NOTYPE  WEAK   HIDDEN     4 a.c.d4be4f80
    18: 0000000000000001     1 OBJECT  GLOBAL DEFAULT  COM __gnu_lto_v1
    19: 0000000000000001     1 OBJECT  GLOBAL DEFAULT  COM __gnu_lto_slim

No version information found in this file.


$ ./aarch64_be-none-elf-readelf -aW ccEnQGOVdebugobjtem 
ELF Header:
  Magic:   7f 45 4c 46 02 02 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF64
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              REL (Relocatable file)
  Machine:                           AArch64
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          0 (bytes into file)
  Start of section headers:          64 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         0
  Size of section headers:           64 (bytes)
  Number of section headers:         21
  Section header string table index: 20
readelf: Error: Section 5 has invalid sh_entsize of 0000000000000000
readelf: Error: (Using the expected size of 24 for the rest of this dump)
readelf: Error: Section 17 has invalid sh_entsize of 0000000000000000
readelf: Error: (Using the expected size of 24 for the rest of this dump)

Section Headers:
  [Nr] Name              Type            Address          Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            0000000000000000 000000 000000 00     
0   0  0
  [ 1]                   NULL            0000000000000000 000580 000000 00 AXE 
0   0  1
  [ 2]                   NULL            0000000000000000 000580 000000 00 WAE 
0   0  1
  [ 3]                   NULL            0000000000000000 000580 000000 00 WAE 
0   0  1
  [ 4] .debug_info       PROGBITS        0000000000000000 000580 00002c 00     
0   0  1
  [ 5] .rela.gnu.debuglto_.debug_info RELA            0000000000000000 0005b0
000060 18   I 17   4  8
  [ 6] .debug_abbrev     PROGBITS        0000000000000000 000610 000028 00     
0   0  1
  [ 7] .debug_str        PROGBITS        0000000000000000 000638 000085 00  MS 
0   0  1
  [ 8]                   NULL            0000000000000000 0006bd 000000 00   E 
0   0  1
  [ 9]                   NULL            0000000000000000 0006bd 000000 00   E 
0   0  1
  [10]                   NULL            0000000000000000 0006bd 000000 00   E 
0   0  1
  [11]                   NULL            0000000000000000 0006bd 000000 00   E 
0   0  1
  [12]                   NULL            0000000000000000 0006bd 000000 00   E 
0   0  1
  [13]                   NULL            0000000000000000 0006bd 000000 00   E 
0   0  1
  [14]                   NULL            0000000000000000 0006bd 000000 00   E 
0   0  1
  [15]                   NULL            0000000000000000 0006bd 000000 00   E 
0   0  1
  [16]                   NULL            0000000000000000 0006bd 000000 00 MSE 
0   0  1
  [17] .symtab           SYMTAB          0000000000000000 0006c0 0001e0 18    
18  17  8
  [18] .strtab           STRTAB          0000000000000000 0008a0 00002e 00     
0   0  1
  [19]                   NULL            0000000000000000 0008ce 000000 00   E 
0   0  1
  [20] .shstrtab         STRTAB          0000000000000000 0008ce 00006c 00     
0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
  L (link order), O (extra OS processing required), G (group), T (TLS),
  C (compressed), x (unknown), o (OS specific), E (exclude),
  p (processor specific)

There are no section groups in this file.

There are no program headers in this file.

There is no dynamic section in this file.

Relocation section '.rela.gnu.debuglto_.debug_info' at offset 0x5b0 contains 4
entries:
    Offset             Info             Type               Symbol's Value 
Symbol's Name + Addend
0000000000000006  0000000600000102 R_AARCH64_ABS32        0000000000000000
.debug_abbrev + 0
000000000000000c  0000000700000102 R_AARCH64_ABS32        0000000000000000
.debug_str + 39
0000000000000015  0000000700000102 R_AARCH64_ABS32        0000000000000000
.debug_str + 0
000000000000001a  0000000700000102 R_AARCH64_ABS32        0000000000000000
.debug_str + 80

The decoding of unwind sections for machine type AArch64 is not currently
supported.

Symbol table '.symtab' contains 20 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS a.c
     2: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     3: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     4: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     5: 0000000000000000     0 SECTION LOCAL  DEFAULT    4 
     6: 0000000000000000     0 SECTION LOCAL  DEFAULT    6 
     7: 0000000000000000     0 SECTION LOCAL  DEFAULT    7 
     8: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     9: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
    10: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
    11: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
    12: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
    13: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
    14: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
    15: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
    16: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
    17: 0000000000000000     0 NOTYPE  WEAK   HIDDEN     4 a.c.d4be4f80
    18: 0000000000000000     1 NOTYPE  GLOBAL DEFAULT  UND 
    19: 0000000000000000     1 NOTYPE  GLOBAL DEFAULT  UND 

No version information found in this file.
>From gcc-bugs-return-572940-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 11:32:21 2017
Return-Path: <gcc-bugs-return-572940-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13258 invoked by alias); 22 Aug 2017 11: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 12813 invoked by uid 48); 22 Aug 2017 11:32:16 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59324] C++11: -Wsequence-point
Date: Tue, 22 Aug 2017 15:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
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: bug_status cc resolution
Message-ID: <bug-59324-4-ECbbcTPDJw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59324-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59324-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02499.txt.bz2
Content-length: 1041

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Mathieu Malaterre from comment #0)
> It would be nice to remove the following warning about UB when compiling in
> C++11 mode:
> 

To REMOVE it? Just turn off the warning flag controlling it.

(In reply to Manuel López-Ibáñez from comment #1)
> Clang also thinks this is UB:
> 
> warning: multiple unsequenced modifications to 'b' [-Wunsequenced]

Since clang agrees, that's further evidence the warning is correct. I'm gonna
close this as INVALID since the warning is correct and easily avoidable.
>From gcc-bugs-return-572941-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 12:04:50 2017
Return-Path: <gcc-bugs-return-572941-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103249 invoked by alias); 22 Aug 2017 12:04: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 103073 invoked by uid 48); 22 Aug 2017 12:04:45 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/81920] Improve timing-sensitive libgomp.oacc testcases
Date: Tue, 22 Aug 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: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81920-4-k9RU5u3Rjq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81920-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81920-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02500.txt.bz2
Content-length: 1184

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 42026
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42026&action=edit
tentative patch for lib-81.c

The only problem: error reporting has not improved a lot.

When I hand-edit the test-case to make the matching fail:
...
- /* { dg-output ".*actual time 3 < 0.10: ok"  } */
+ /* { dg-output ".*actual time 3 < 0.11: ok"  } */
...

We just get:
...
FAIL: libgomp.oacc-c/../libgomp.oacc-c-c++-common/lib-81.c
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0  -O2  output pattern test
...
so, no line saying: this individual dg-output line failed.

In libgomp.log, things are not too readable either:
...
FAIL: libgomp.oacc-c/../libgomp.oacc-c-c++-common/lib-81.c
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0  -O2  output pattern test
Output was:
actual time 1: 528.946960, delay time: 500.000000
actual time 1 >= delay time: ok
actual time 2: 0.073856
actual time 2 < 0.10: ok
actual time 3: 0.022368
actual time 3 < 0.10: ok

Should match:
actual time 1 >= delay time: ok.*actual time 2 < 0.10: ok.*actual time 3 <
0.11: ok
...
>From gcc-bugs-return-572942-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 12:15:55 2017
Return-Path: <gcc-bugs-return-572942-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3049 invoked by alias); 22 Aug 2017 12:15: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 2655 invoked by uid 48); 22 Aug 2017 12:15:38 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81925] early lto debug link failure on aarch64_be
Date: Tue, 22 Aug 2017 16:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-81925-4-SNr7s7tlTA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81925-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81925-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02501.txt.bz2
Content-length: 578

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-22
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I have a afix.
>From gcc-bugs-return-572943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 12:35:58 2017
Return-Path: <gcc-bugs-return-572943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93721 invoked by alias); 22 Aug 2017 12:35: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 93642 invoked by uid 48); 22 Aug 2017 12:35:53 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/81920] Improve timing-sensitive libgomp.oacc testcases
Date: Tue, 22 Aug 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: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81920-4-wUsGMM7UtV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81920-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81920-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02502.txt.bz2
Content-length: 676

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

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 42027
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42027&action=edit
Updated patch

prints lines to be matched into a separate file, allowing using scan-file. When
timings are failing, show this in libgomp.sum:
...
FAIL: libgomp.oacc-c/../libgomp.oacc-c-c++-common/lib-81.c
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0  -O0   scan-file actual time 3 <
0.11: ok
FAIL: libgomp.oacc-c/../libgomp.oacc-c-c++-common/lib-81.c
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0  -O2   scan-file actual time 3 <
0.11: ok
...
>From gcc-bugs-return-572944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 12:47:26 2017
Return-Path: <gcc-bugs-return-572944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109777 invoked by alias); 22 Aug 2017 12:47: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 104401 invoked by uid 48); 22 Aug 2017 12:47:21 -0000
From: "nightstrike at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58950] Missing "statement has no effect"
Date: Tue, 22 Aug 2017 16:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nightstrike at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-58950-4-Nr8Q4NxZbi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58950-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58950-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02503.txt.bz2
Content-length: 862

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

nightstrike <nightstrike at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nightstrike at gmail dot com

--- Comment #23 from nightstrike <nightstrike at gmail dot com> ---
Given that Comment #1 clearly shows g++ 4.8 working, I think this should
qualify as a regression.  Moreover, g++ 6.2 works correctly, so this was fixed
at some point between 4.9 and 6.2:

$ cat > a.cc
void f() {
  int i __attribute__((vector_size(2*sizeof(int))))={2,3};
  __builtin_shuffle(i,i);
}

$ g++ -c a.cc -Wunused-value
a.cc: In function 'void f()':
a.cc:3:3: warning: value computed is not used [-Wunused-value]
   __builtin_shuffle(i,i);
   ^~~~~~~~~~~~~~~~~
>From gcc-bugs-return-572945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 12:50:00 2017
Return-Path: <gcc-bugs-return-572945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15974 invoked by alias); 22 Aug 2017 12:50:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15914 invoked by uid 48); 22 Aug 2017 12:49:55 -0000
From: "nightstrike at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58950] Missing "statement has no effect"
Date: Tue, 22 Aug 2017 17:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nightstrike at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58950-4-DoWIipHW3w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58950-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58950-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02504.txt.bz2
Content-length: 272

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

--- Comment #24 from nightstrike <nightstrike at gmail dot com> ---
Ah.. I missed Comment #13, the PR is still open because of a slightly different
test.  In any case, if it worked in 4.8, it should be a regression.
>From gcc-bugs-return-572946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 13:46:10 2017
Return-Path: <gcc-bugs-return-572946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75353 invoked by alias); 22 Aug 2017 13:46: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 74859 invoked by uid 48); 22 Aug 2017 13:45:58 -0000
From: "romain.services at mm dot st" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81797] gcc 7.1.0 fails to build on macOS 10.13 (High Sierra):
Date: Tue, 22 Aug 2017 17:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: romain.services at mm dot st
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-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-81797-4-k8ptpKLThx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02505.txt.bz2
Content-length: 694

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

Romain <romain.services at mm dot st> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |romain.services at mm dot st

--- Comment #6 from Romain <romain.services at mm dot st> ---
Hi, 

> It might be an interesting exercise to encrypt the APFS volume and see if that
throws just enough additional filesystem overhead in to make the problem go
latent.

I'm also trying to compile gcc-7.2.0 on macOS 10.13, and I'm using encrypted
APFS, but it does not make this bug disappear.

Regards,
Romain
>From gcc-bugs-return-572947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 13:54:16 2017
Return-Path: <gcc-bugs-return-572947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2184 invoked by alias); 22 Aug 2017 13:54: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 1156 invoked by uid 48); 22 Aug 2017 13:54:11 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81925] early lto debug link failure on aarch64_be
Date: Tue, 22 Aug 2017 18:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81925-4-iavuoAWM5H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81925-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81925-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02506.txt.bz2
Content-length: 429

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

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

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-572948-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 13:54:39 2017
Return-Path: <gcc-bugs-return-572948-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5905 invoked by alias); 22 Aug 2017 13: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 5824 invoked by uid 55); 22 Aug 2017 13:54:33 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81925] early lto debug link failure on aarch64_be
Date: Tue, 22 Aug 2017 19:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81925-4-tO2zbF7CSz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81925-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81925-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02507.txt.bz2
Content-length: 651

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Aug 22 13:54:01 2017
New Revision: 251276

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

        PR lto/81925
        * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
        type of sh_addralign and sh_entsize and properly write
        sh_entsize as Elf_Addr.
        (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.

Modified:
    trunk/libiberty/ChangeLog
    trunk/libiberty/simple-object-elf.c
>From gcc-bugs-return-572949-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 13:54:42 2017
Return-Path: <gcc-bugs-return-572949-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6367 invoked by alias); 22 Aug 2017 13:54:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5882 invoked by uid 48); 22 Aug 2017 13:54:37 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81910] [avr] ICE with "address" attribute on type
Date: Tue, 22 Aug 2017 19:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-invalid-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: P5
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-81910-4-jejd5y7YnF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81910-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02508.txt.bz2
Content-length: 429

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

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

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-572950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 14:37:28 2017
Return-Path: <gcc-bugs-return-572950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88615 invoked by alias); 22 Aug 2017 14:37:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 88429 invoked by uid 48); 22 Aug 2017 14:37:22 -0000
From: "dclarke at blastwave dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] New: go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Tue, 22 Aug 2017 19:30: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: dclarke at blastwave dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <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-08/txt/msg02509.txt.bz2
Content-length: 12104

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

            Bug ID: 81926
           Summary: go/parse.o differs between stage2 and stage3 for gcc
                    7.2.0
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: dclarke at blastwave dot org
                CC: cmang at google dot com
  Target Milestone: ---

configure ran thus : 

$ ../gcc-7.2.0/configure --build=sparc64-sun-solaris2.10 \
--target=sparc64-sun-solaris2.10 \
--host=sparc64-sun-solaris2.10 \
--prefix=/usr/local/gcc7 \
--without-gnu-as --without-gnu-ld \
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/sparcv9/ld \
--disable-nls --enable-threads=posix --enable-shared \
--with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local \
--with-isl=/usr/local \
--with-build-time-tools=/usr/local/bin --with-cpu=v9 \
--enable-bootstrap \
--enable-languages=ada,c,c++,fortran,go,objc,obj-c++ \
--with-pkgversion=genunix Tue Aug 22 00:36:56 GMT 2017

This resulted in : 

checking build system type... sparc64-sun-solaris2.10
checking host system type... sparc64-sun-solaris2.10
checking target system type... sparc64-sun-solaris2.10
checking for a BSD-compatible install... ../gcc-7.2.0/install-sh -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for gawk... /usr/local/bin/gawk
checking for libatomic support... yes
checking for libcilkrts support... yes
checking for libitm support... yes
checking for libsanitizer support... no
checking for libvtv support... no
checking for libmpx support... no
checking for libhsail-rt support... no
checking for sparc64-sun-solaris2.10-gcc... sparc64-sun-solaris2.10-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether sparc64-sun-solaris2.10-gcc accepts -g... yes
checking for sparc64-sun-solaris2.10-gcc option to accept ISO C89... none
needed
checking for sparc64-sun-solaris2.10-g++... sparc64-sun-solaris2.10-g++
checking whether we are using the GNU C++ compiler... yes
checking whether sparc64-sun-solaris2.10-g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for sparc64-sun-solaris2.10-gnatbind... no
checking for gnatbind... gnatbind
checking for sparc64-sun-solaris2.10-gnatmake... no
checking for gnatmake... gnatmake
checking whether compiler driver understands Ada... yes
checking how to compare bootstrapped objects... cmp $$f1 $$f2 16 16
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for isl 0.15 or later... yes
The following languages will be built: c,ada,c++,fortran,go,lto,objc,obj-c++
*** This configuration is not supported in the following subdirectories:
     target-libsanitizer target-libvtv target-libmpx target-libhsail-rt
target-liboffloadmic
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... 
checking for --enable-vtable-verify... no
checking for bison... bison -y
checking for bison... bison
checking for gm4... /usr/local/bin/m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... expect
checking for runtest... runtest
checking for ar... (cached) /usr/xpg4/bin/ar
checking for sparc64-sun-solaris2.10-ar... (cached) /usr/xpg4/bin/ar
checking for as... (cached) /usr/ccs/bin/as
checking for sparc64-sun-solaris2.10-as... (cached) /usr/ccs/bin/as
checking for sparc64-sun-solaris2.10-dlltool... no
checking for dlltool... no
checking for ld... (cached) /usr/ccs/bin/ld
checking for sparc64-sun-solaris2.10-ld... (cached) /usr/ccs/bin/ld
checking for sparc64-sun-solaris2.10-lipo... no
checking for lipo... no
checking for nm... (cached) /usr/ccs/bin/sparcv9/nm -p
checking for sparc64-sun-solaris2.10-nm... (cached) /usr/ccs/bin/sparcv9/nm -p
checking for ranlib... (cached) /usr/ccs/bin/ranlib
checking for sparc64-sun-solaris2.10-ranlib... (cached) /usr/ccs/bin/ranlib
checking for strip... (cached) /usr/ccs/bin/strip
checking for sparc64-sun-solaris2.10-strip... (cached) /usr/ccs/bin/strip
checking for sparc64-sun-solaris2.10-windres... no
checking for windres... no
checking for sparc64-sun-solaris2.10-windmc... no
checking for windmc... no
checking for sparc64-sun-solaris2.10-objcopy... no
checking for objcopy... no
checking for sparc64-sun-solaris2.10-objdump... no
checking for objdump... no
checking for sparc64-sun-solaris2.10-readelf... no
checking for readelf... no
checking for cc in /usr/local/bin... no
checking for gcc in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-cc... no
checking for cc... cc
checking for c++ in /usr/local/bin... no
checking for g++ in /usr/local/bin... no
checking for cxx in /usr/local/bin... no
checking for gxx in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-c++... sparc64-sun-solaris2.10-c++
checking for gcc in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-gcc... sparc64-sun-solaris2.10-gcc
checking for gfortran in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-gfortran...
sparc64-sun-solaris2.10-gfortran
checking for gccgo in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-gccgo... no
checking for gccgo... no
checking for ar in /usr/local/bin... no
checking for ar... no
checking for ar in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-ar... no
checking for ar... ar
checking for as in /usr/local/bin... no
checking for as... no
checking for as in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-as... no
checking for as... as
checking for dlltool in /usr/local/bin... no
checking for dlltool... no
checking for dlltool in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-dlltool... no
checking for dlltool... no
checking for ld in /usr/local/bin... no
checking for ld... no
checking for ld in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-ld... no
checking for ld... ld
checking for lipo in /usr/local/bin... no
checking for lipo... no
checking for lipo in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-lipo... no
checking for lipo... no
checking for nm in /usr/local/bin... no
checking for nm... no
checking for nm in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-nm... no
checking for nm... nm
checking for objcopy in /usr/local/bin... no
checking for objcopy... no
checking for objcopy in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-objcopy... no
checking for objcopy... no
checking for objdump in /usr/local/bin... no
checking for objdump... no
checking for objdump in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-objdump... no
checking for objdump... no
checking for ranlib in /usr/local/bin... no
checking for ranlib... no
checking for ranlib in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-ranlib... no
checking for ranlib... ranlib
checking for readelf in /usr/local/bin... no
checking for readelf... no
checking for readelf in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-readelf... no
checking for readelf... no
checking for strip in /usr/local/bin... no
checking for strip... no
checking for strip in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-strip... no
checking for strip... strip
checking for windres in /usr/local/bin... no
checking for windres... no
checking for windres in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-windres... no
checking for windres... no
checking for windmc in /usr/local/bin... no
checking for windmc... no
checking for windmc in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target gccgo... just compiled
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objcopy... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile

System is an Oracle SPARC M4000 running Solaris 10 with recent updates applied.

The compiler to be used for the initial stage of bootstrap is gcc 6.4.0 thus :

d$ /usr/local/gcc6/bin/gcc --version 
gcc (genunix Wed Jul 26 02:41:24 GMT 2017) 6.4.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.

That had reasonable test results previously : 
    https://gcc.gnu.org/ml/gcc-testresults/2017-07/msg02881.html

The usual GNU tools but not binutils. 

The bootstrap halts between stage2 and stage3 with a comparison failure in a
single file : 

gmake[2]: Entering directory
'/usr/local/build/gcc-7.2.0_SunOS5.10_sparc64vii+.004'
gmake[3]: Entering directory
'/usr/local/build/gcc-7.2.0_SunOS5.10_sparc64vii+.004'
rm -f stage_current
gmake[3]: Leaving directory
'/usr/local/build/gcc-7.2.0_SunOS5.10_sparc64vii+.004'
Comparing stages 2 and 3
warning: gcc/cc1objplus-checksum.o differs
warning: gcc/cc1obj-checksum.o differs
Bootstrap comparison failure!
gcc/go/parse.o differs
gmake[2]: *** [Makefile:28094: compare] Error 1
gmake[2]: Leaving directory
'/usr/local/build/gcc-7.2.0_SunOS5.10_sparc64vii+.004'
gmake[1]: *** [Makefile:28074: stage3-bubble] Error 2
gmake[1]: Leaving directory
'/usr/local/build/gcc-7.2.0_SunOS5.10_sparc64vii+.004'
gmake: *** [Makefile:28137: bootstrap] Error 2


There seems to be only an 8 byte size difference : 

d$ ls -lo ./stage2-gcc/go/parse.o ./stage3-gcc/go/parse.o
-rw-r--r--   1 dclarke  3904088 Aug 22 04:00 ./stage2-gcc/go/parse.o
-rw-r--r--   1 dclarke  3904080 Aug 22 04:57 ./stage3-gcc/go/parse.o

Also the various symbols in these object files are identical but the location
of data inside the ELF files is slightly different : 


stage 2 :

Section Header[44]:  sh_name: .bss
    sh_addr:      0               sh_flags:   [ SHF_WRITE SHF_ALLOC ]
    sh_size:      0x11            sh_type:    [ SHT_NOBITS ]
    sh_offset:    0x204458        sh_entsize: 0
    sh_link:      0               sh_info:    0
    sh_addralign: 0x4

stage 3 :

Section Header[44]:  sh_name: .bss
    sh_addr:      0               sh_flags:   [ SHF_WRITE SHF_ALLOC ]
    sh_size:      0x11            sh_type:    [ SHT_NOBITS ]
    sh_offset:    0x204450        sh_entsize: 0
    sh_link:      0               sh_info:    0
    sh_addralign: 0x4

That sort of difference lay between the two files in many many places.
Slightly different by 8 bytes again however nm tells me that the symbol
listing is identical between the two files. Perhaps there is no actual
"functional" difference between the files at all.

Dennis
>From gcc-bugs-return-572951-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 15:12:44 2017
Return-Path: <gcc-bugs-return-572951-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93717 invoked by alias); 22 Aug 2017 15:12:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 89891 invoked by uid 48); 22 Aug 2017 15:12:39 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/72789] add -Wunused-private-field
Date: Tue, 22 Aug 2017 19:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-72789-4-2Ycf6sZPCz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02510.txt.bz2
Content-length: 706

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirming as an enhancement.
>From gcc-bugs-return-572952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 15:13:53 2017
Return-Path: <gcc-bugs-return-572952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108493 invoked by alias); 22 Aug 2017 15:13:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108360 invoked by uid 55); 22 Aug 2017 15:13:48 -0000
From: "law at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71947] [6 Regression] x ^ y not folded to 0 if x == y by DOM
Date: Tue, 22 Aug 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: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71947-4-iSuVJOrUse@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71947-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71947-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02511.txt.bz2
Content-length: 2277

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

--- Comment #16 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Tue Aug 22 15:13:09 2017
New Revision: 251279

URL: https://gcc.gnu.org/viewcvs?rev=251279&root=gcc&view=rev
Log:
        PR tree-optimization/81741
        PR tree-optimization/71947
        * tree-ssa-dom.c: Include tree-inline.h.
        (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME
        equivalences if one is more expensive to compute than the other.
        * tree-ssa-scopedtables.h (class const_or_copies): Make
        record_const_or_copy_raw method private.
        (class avail_exprs_stack): New method simplify_binary_operation.
        * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call
        avail_exprs_stack::simplify_binary_operation as needed.
        (avail_exprs_stack::simplify_binary_operation): New function.

        PR tree-optimization/81741
        PR tree-optimization/71947
        * gcc.dg/tree-ssa/pr81741.c: New test.
        * gcc.dg/tree-ssa/pr71947-7.c: New test.
        * gcc.dg/tree-ssa/pr71947-8.c: New test.
        * gcc.dg/tree-ssa/pr71947-9.c: New test.
        * gcc.dg/tree-ssa/pr71941-1.c: Tweak expected output.
        * gcc.dg/tree-ssa/pr71941-2.c: Tweak expected output.
        * gcc.dg/tree-ssa/pr71941-3.c: Tweak expected output.
        * gcc.dg/tree-ssa/20030922-2.c: xfail.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-7.c
      - copied, changed from r251276,
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-8.c
      - copied, changed from r251276,
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-9.c
      - copied, changed from r251276,
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr81741.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-ssa/20030922-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-1.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-3.c
    trunk/gcc/tree-ssa-dom.c
    trunk/gcc/tree-ssa-scopedtables.c
    trunk/gcc/tree-ssa-scopedtables.h
>From gcc-bugs-return-572953-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 15:13:54 2017
Return-Path: <gcc-bugs-return-572953-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108583 invoked by alias); 22 Aug 2017 15:13:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108351 invoked by uid 55); 22 Aug 2017 15:13:48 -0000
From: "law at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81741] Misoptimisation : replacing a constant field read access by a function call
Date: Tue, 22 Aug 2017 19:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81741-4-GpTgTIkpfI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81741-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81741-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02512.txt.bz2
Content-length: 2276

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

--- Comment #5 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Tue Aug 22 15:13:09 2017
New Revision: 251279

URL: https://gcc.gnu.org/viewcvs?rev=251279&root=gcc&view=rev
Log:
        PR tree-optimization/81741
        PR tree-optimization/71947
        * tree-ssa-dom.c: Include tree-inline.h.
        (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME
        equivalences if one is more expensive to compute than the other.
        * tree-ssa-scopedtables.h (class const_or_copies): Make
        record_const_or_copy_raw method private.
        (class avail_exprs_stack): New method simplify_binary_operation.
        * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call
        avail_exprs_stack::simplify_binary_operation as needed.
        (avail_exprs_stack::simplify_binary_operation): New function.

        PR tree-optimization/81741
        PR tree-optimization/71947
        * gcc.dg/tree-ssa/pr81741.c: New test.
        * gcc.dg/tree-ssa/pr71947-7.c: New test.
        * gcc.dg/tree-ssa/pr71947-8.c: New test.
        * gcc.dg/tree-ssa/pr71947-9.c: New test.
        * gcc.dg/tree-ssa/pr71941-1.c: Tweak expected output.
        * gcc.dg/tree-ssa/pr71941-2.c: Tweak expected output.
        * gcc.dg/tree-ssa/pr71941-3.c: Tweak expected output.
        * gcc.dg/tree-ssa/20030922-2.c: xfail.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-7.c
      - copied, changed from r251276,
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-8.c
      - copied, changed from r251276,
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-9.c
      - copied, changed from r251276,
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr81741.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-ssa/20030922-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-1.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71947-3.c
    trunk/gcc/tree-ssa-dom.c
    trunk/gcc/tree-ssa-scopedtables.c
    trunk/gcc/tree-ssa-scopedtables.h
>From gcc-bugs-return-572954-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 15:14:13 2017
Return-Path: <gcc-bugs-return-572954-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110373 invoked by alias); 22 Aug 2017 15:14: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 109935 invoked by uid 48); 22 Aug 2017 15:14:09 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81741] Misoptimisation : replacing a constant field read access by a function call
Date: Tue, 22 Aug 2017 19:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81741-4-cfuHXmtSNd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81741-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81741-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02513.txt.bz2
Content-length: 446

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

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

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

--- Comment #6 from Jeffrey A. Law <law at redhat dot com> ---
Should be fixed on the trunk now.
>From gcc-bugs-return-572955-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 15:22:01 2017
Return-Path: <gcc-bugs-return-572955-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106931 invoked by alias); 22 Aug 2017 15:22: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 104218 invoked by uid 48); 22 Aug 2017 15:21:56 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77370] missing -Wignored-qualiifiers on a bogus const reference
Date: Tue, 22 Aug 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: 7.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-77370-4-fZCAidkA3C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77370-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77370-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02514.txt.bz2
Content-length: 2477

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #0)
> GCC rejects the program below because it tries to initialize the non-const
> reference object cr with a temporary, but it doesn't diagnose the
> declaration of the reference type CR where it disregards the const
> qualifier.  In contrast, Clang diagnoses both.  GCC could be improved by
> doing the same.
> 
> $ (set -x && cat z.C && /build/gcc-trunk-svn/gcc/xgcc -B
> /build/gcc-trunk-svn/gcc -Wall -Wextra -Wpedantic z.C;
> /build/llvm-trunk/bin/clang -S -Wall z.C)
> + cat z.C
> typedef char& R;
> typedef const R CR;
> 
> char c;
> R r = c;
> CR cr = 'b';
> + /build/gcc-trunk-svn/gcc/xgcc -B /build/gcc-trunk-svn/gcc -Wall -Wextra
> -Wpedantic z.C
> z.C:6:9: error: cannot bind non-const lvalue reference of type ‘CR {aka
> char&}’ to an rvalue of type ‘char’
>  CR cr = 'b';
>          ^~~
> + /build/llvm-trunk/bin/clang -S -Wall z.C
> z.C:2:9: warning: 'const' qualifier on reference type 'R' (aka 'char &') has
> no
>       effect [-Wignored-qualifiers]
> typedef const R CR;
>         ^~~~~~
> z.C:6:4: error: non-const lvalue reference to type 'char' cannot bind to a
>       temporary of type 'char'
> CR cr = 'b';
>    ^    ~~~
> 1 warning and 1 error generated.

My version of clang only prints the one error, but then again my version of
clang is old (because my computer is old). Confirmed anyways that it'd still be
a nice additional warning to have.

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 77370.cc
77370.cc:6:9: error: cannot bind non-const lvalue reference of type ‘CR {aka
char&}’ to an rvalue of type ‘char’
 CR cr = 'b';
         ^~~
$ /sw/opt/llvm-3.1/bin/clang++ -c -S -Wall -Wextra -pedantic 77370.cc
77370.cc:6:4: error: non-const lvalue reference to type 'char' cannot bind to a
temporary of type 'char'
CR cr = 'b';
   ^    ~~~
1 error generated.
$
>From gcc-bugs-return-572956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 15:27:16 2017
Return-Path: <gcc-bugs-return-572956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113889 invoked by alias); 22 Aug 2017 15:27: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 104763 invoked by uid 48); 22 Aug 2017 15:27:05 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77502] -Wzero-as-null-pointer-constant : misleading/imprecise messages
Date: Tue, 22 Aug 2017 20:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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-77502-4-YTq5VKW5yZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77502-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77502-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02515.txt.bz2
Content-length: 610

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that the location info ought to be improved.
>From gcc-bugs-return-572957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 15:39:46 2017
Return-Path: <gcc-bugs-return-572957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3518 invoked by alias); 22 Aug 2017 15:39:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 520 invoked by uid 48); 22 Aug 2017 15:39:39 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64875] -Winline does not report C++ methods
Date: Tue, 22 Aug 2017 20:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: daniel.gutson at intel dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-64875-4-vvpwqc7thV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64875-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64875-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02516.txt.bz2
Content-length: 2072

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-22
                 CC|                            |egallager at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |daniel.gutson at intel dot com
     Ever confirmed|0                           |1

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Daniel Gutson from comment #0)
> The following code misses the warning:
> 
> #include <iostream>
> 
> struct PP
> {
> 	inline void m();
> };
> 
> int main()
> {
> 	PP pp;
> 	pp.m();
> }
> 
> inline void PP::m()
> {
> 	std::cout << "hola" << std::endl;
> }
> 
> Invoke:
>   g++ -Wall -Wextra -pedantic -ggdb3 -std=c++11 -Winline winline.cpp
> No warnings emitted.
> 
> However:
> 
> objdump -dC ./a.out |grep "PP"
>   40086c:	e8 59 00 00 00       	callq  4008ca <PP::m()>
> 00000000004008ca <PP::m()>:
> 
> If no one is available, assign this to me (though I'm not sure when I will
> have time to address this).

OK.

(In reply to Daniel Gutson from comment #2)
> inline is as useful in c++ as in C regardless of ODR or any other reason but
> its original purpose: performance. I want to know when my hint is not honored
> which is the exact intent of this warning.

If you use an optimization flag the 'inline' is honored:

$ /usr/local/bin/g++ -Wall -Wextra -pedantic -ggdb3 -std=c++11 -Winline -o
64975_O0.exe 64975.cc
$ objdump -dC ./64975_O0.exe | grep "PP"
    1e88:       e8 b3 11 00 00          call   3040 <_ZN2PP1mEv$stub>
00001f0e <PP::m()>:
00003040 <_ZN2PP1mEv$stub>:
$ /usr/local/bin/g++ -Wall -Wextra -pedantic -ggdb3 -std=c++11 -Winline -O1 -o
64975_O1.exe 64975.cc
$ objdump -dC ./64975_O1.exe | grep "PP"

So maybe mention optimizing in the warning if you add one.
>From gcc-bugs-return-572958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 15:42:35 2017
Return-Path: <gcc-bugs-return-572958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101062 invoked by alias); 22 Aug 2017 15: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 100985 invoked by uid 48); 22 Aug 2017 15:42:29 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77777] Use rich location to mark correct expression for "invalid use of non-static member function"
Date: Tue, 22 Aug 2017 20:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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-77777-4-X4Kgkonu6u@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77777-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77777-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02517.txt.bz2
Content-length: 566

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

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

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-572959-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 16:10:44 2017
Return-Path: <gcc-bugs-return-572959-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64950 invoked by alias); 22 Aug 2017 16:10: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 64757 invoked by uid 48); 22 Aug 2017 16:10:25 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81927] New: [8 regression] Many, many test case failures starting with r251220
Date: Tue, 22 Aug 2017 20:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81927-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02518.txt.bz2
Content-length: 51664

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

            Bug ID: 81927
           Summary: [8 regression] Many, many test case failures starting
                    with r251220
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

Here's one in detail:

spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test/gcc/xgcc
-B/home/seurer/gcc/build/gcc-test/gcc/
/home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/asan/alloca_big_alignment.c
-B/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/
-B/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/
-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/.libs
-fsanitize=address -g
-I/home/seurer/gcc/gcc-test/gcc/testsuite/../../libsanitizer/include
-fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -flto
-fno-use-linker-plugin -flto-partition=none -lm -o ./alloca_big_alignment.exe
/tmp/ccS0sV4idebugobjtem: file not recognized: Bad value
collect2: error: ld returned 1 exit status
lto-wrapper: fatal error: /home/seurer/gcc/build/gcc-test/gcc/xgcc returned 1
exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.
compiler exited with status 1
output is:
/tmp/ccS0sV4idebugobjtem: file not recognized: Bad value
collect2: error: ld returned 1 exit status
lto-wrapper: fatal error: /home/seurer/gcc/build/gcc-test/gcc/xgcc returned 1
exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.

FAIL: c-c++-common/asan/alloca_big_alignment.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  (test for excess errors)
Excess errors:
/tmp/ccS0sV4idebugobjtem: file not recognized: Bad value
lto-wrapper: fatal error: /home/seurer/gcc/build/gcc-test/gcc/xgcc returned 1
exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.



Here's the output of the compilation command with -v:

Reading specs from /home/seurer/gcc/build/gcc-test/gcc/specs
COLLECT_GCC=/home/seurer/gcc/build/gcc-test/gcc/xgcc
COLLECT_LTO_WRAPPER=/home/seurer/gcc/build/gcc-test/gcc/lto-wrapper
Target: powerpc64-unknown-linux-gnu
Configured with: /home/seurer/gcc/gcc-test/configure
--prefix=/home/seurer/gcc/install/gcc-test --enable-languages=c,fortran,c++
--with-cpu=power8 --disable-bootstrap
--with-as=/home/seurer/binutils/install/bin/as
--with-ld=/home/seurer/binutils/install/bin/ld
Thread model: posix
gcc version 8.0.0 20170821 (experimental) [trunk revision 251220] (GCC) 
COLLECT_GCC_OPTIONS='-fdiagnostics-color=never' '-v' '-B'
'/home/seurer/gcc/build/gcc-test/gcc/' '-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/'
'-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/'
'-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/.libs'
'-fsanitize=address' '-g' '-I'
'/home/seurer/gcc/gcc-test/gcc/testsuite/../../libsanitizer/include'
'-fno-diagnostics-show-caret' '-O2' '-flto' '-fno-use-linker-plugin'
'-flto-partition=none' '-o' './alloca_big_alignment.exe' '-mcpu=power8'
 /home/seurer/gcc/build/gcc-test/gcc/cc1 -quiet -v -I
/home/seurer/gcc/gcc-test/gcc/testsuite/../../libsanitizer/include -iprefix
/home/seurer/gcc/build/gcc-test/gcc/../lib/gcc/powerpc64-unknown-linux-gnu/8.0.0/
-isystem /home/seurer/gcc/build/gcc-test/gcc/include -isystem
/home/seurer/gcc/build/gcc-test/gcc/include-fixed -D__unix__ -D__gnu_linux__
-D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix
-Asystem=posix
/home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/asan/alloca_big_alignment.c
-quiet -dumpbase alloca_big_alignment.c -mcpu=power8 -auxbase
alloca_big_alignment -g -O2 -version -fdiagnostics-color=never
-fsanitize=address -fno-diagnostics-show-caret -flto -fno-use-linker-plugin
-flto-partition=none -o /tmp/ccBq2zds.s
GNU C11 (GCC) version 8.0.0 20170821 (experimental) [trunk revision 251220]
(powerpc64-unknown-linux-gnu)
        compiled by GNU C version 7.1.0, 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
ignoring nonexistent directory
"/home/seurer/gcc/build/gcc-test/gcc/../lib/gcc/powerpc64-unknown-linux-gnu/8.0.0/include"
ignoring nonexistent directory
"/home/seurer/gcc/build/gcc-test/gcc/../lib/gcc/powerpc64-unknown-linux-gnu/8.0.0/include-fixed"
ignoring nonexistent directory
"/home/seurer/gcc/build/gcc-test/gcc/../lib/gcc/powerpc64-unknown-linux-gnu/8.0.0/../../../../powerpc64-unknown-linux-gnu/include"
ignoring nonexistent directory
"/home/seurer/gcc/build/gcc-test/gcc/../lib/gcc/../../lib/gcc/powerpc64-unknown-linux-gnu/8.0.0/include"
ignoring nonexistent directory
"/home/seurer/gcc/build/gcc-test/gcc/../lib/gcc/../../include"
ignoring nonexistent directory
"/home/seurer/gcc/build/gcc-test/gcc/../lib/gcc/../../lib/gcc/powerpc64-unknown-linux-gnu/8.0.0/include-fixed"
ignoring nonexistent directory
"/home/seurer/gcc/build/gcc-test/gcc/../lib/gcc/../../lib/gcc/powerpc64-unknown-linux-gnu/8.0.0/../../../../powerpc64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/seurer/gcc/gcc-test/gcc/testsuite/../../libsanitizer/include
 /home/seurer/gcc/build/gcc-test/gcc/include
 /home/seurer/gcc/build/gcc-test/gcc/include-fixed
 /usr/local/include
 /usr/include
End of search list.
GNU C11 (GCC) version 8.0.0 20170821 (experimental) [trunk revision 251220]
(powerpc64-unknown-linux-gnu)
        compiled by GNU C version 7.1.0, 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: 7524150231d0f160f70b2b1e96cd2bd8
COLLECT_GCC_OPTIONS='-fdiagnostics-color=never' '-v' '-B'
'/home/seurer/gcc/build/gcc-test/gcc/' '-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/'
'-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/'
'-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/.libs'
'-fsanitize=address' '-g' '-I'
'/home/seurer/gcc/gcc-test/gcc/testsuite/../../libsanitizer/include'
'-fno-diagnostics-show-caret' '-O2' '-flto' '-fno-use-linker-plugin'
'-flto-partition=none' '-o' './alloca_big_alignment.exe' '-mcpu=power8'
 /home/seurer/binutils/install/bin/as -v -I
/home/seurer/gcc/gcc-test/gcc/testsuite/../../libsanitizer/include -a64
-mpower8 -many -mbig -o /tmp/cc7NumzH.o /tmp/ccBq2zds.s
GNU assembler version 2.26.51 (powerpc64-unknown-linux-gnu) using BFD version
(GNU Binutils) 2.26.51.20151113
COMPILER_PATH=/home/seurer/gcc/build/gcc-test/gcc/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/
LIBRARY_PATH=/home/seurer/gcc/build/gcc-test/gcc/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/:/lib/../lib64/:/usr/lib/../lib64/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-fdiagnostics-color=never' '-v' '-B'
'/home/seurer/gcc/build/gcc-test/gcc/' '-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/'
'-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/'
'-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/.libs'
'-fsanitize=address' '-g' '-I'
'/home/seurer/gcc/gcc-test/gcc/testsuite/../../libsanitizer/include'
'-fno-diagnostics-show-caret' '-O2' '-flto' '-fno-use-linker-plugin'
'-flto-partition=none' '-o' './alloca_big_alignment.exe' '-mcpu=power8'
 /home/seurer/gcc/build/gcc-test/gcc/collect2 -flto --eh-frame-hdr -V -m
elf64ppc -dynamic-linker /lib64/ld64.so.1 -o ./alloca_big_alignment.exe
/lib/../lib64/crt1.o /lib/../lib64/crti.o
/home/seurer/gcc/build/gcc-test/gcc/crtbegin.o
-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/.libs
-L/home/seurer/gcc/build/gcc-test/gcc
-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer
-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan
-L/lib/../lib64 -L/usr/lib/../lib64
/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/libasan_preinit.o
-lasan /tmp/cc7NumzH.o -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc
--as-needed -lgcc_s --no-as-needed /home/seurer/gcc/build/gcc-test/gcc/crtend.o
/lib/../lib64/crtn.o
GNU ld (GNU Binutils) 2.26.51.20151113
  Supported emulations:
   elf64ppc
   elf32ppc
   elf32ppclinux
   elf32ppcsim
/home/seurer/gcc/build/gcc-test/gcc/lto-wrapper /tmp/cc7NumzH.o 
/home/seurer/gcc/build/gcc-test/gcc/xgcc @/tmp/cc4CeI1V
Reading specs from /home/seurer/gcc/build/gcc-test/gcc/specs
COLLECT_GCC=/home/seurer/gcc/build/gcc-test/gcc/xgcc
Target: powerpc64-unknown-linux-gnu
Configured with: /home/seurer/gcc/gcc-test/configure
--prefix=/home/seurer/gcc/install/gcc-test --enable-languages=c,fortran,c++
--with-cpu=power8 --disable-bootstrap
--with-as=/home/seurer/binutils/install/bin/as
--with-ld=/home/seurer/binutils/install/bin/ld
Thread model: posix
gcc version 8.0.0 20170821 (experimental) [trunk revision 251220] (GCC) 
COLLECT_GCC_OPTIONS='-fdiagnostics-color=never' '-c' '-fno-openmp'
'-fno-openacc' '-mcpu=power8' '-O2' '-v' '-B'
'/home/seurer/gcc/build/gcc-test/gcc/' '-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/'
'-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/'
'-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/.libs'
'-fsanitize=address' '-g' '-fno-diagnostics-show-caret' '-O2'
'-fno-use-linker-plugin' '-flto-partition=none' '-mcpu=power8' '-dumpdir' './'
'-dumpbase' 'alloca_big_alignment.exe' '-o' '/tmp/ccDBtlyG.lto.o'
 /home/seurer/gcc/build/gcc-test/gcc/lto1 -quiet -dumpdir ./ -dumpbase
alloca_big_alignment.exe -mcpu=power8 -mcpu=power8 -auxbase-strip
/tmp/ccDBtlyG.lto.o -g -O2 -O2 -version -fdiagnostics-color=never -fno-openmp
-fno-openacc -fsanitize=address -fno-diagnostics-show-caret
-fno-use-linker-plugin -flto-partition=none @/tmp/ccpXuicG -o /tmp/ccZhbOFV.s
GNU GIMPLE (GCC) version 8.0.0 20170821 (experimental) [trunk revision 251220]
(powerpc64-unknown-linux-gnu)
        compiled by GNU C version 7.1.0, 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 GIMPLE (GCC) version 8.0.0 20170821 (experimental) [trunk revision 251220]
(powerpc64-unknown-linux-gnu)
        compiled by GNU C version 7.1.0, 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
COLLECT_GCC_OPTIONS='-fdiagnostics-color=never' '-c' '-fno-openmp'
'-fno-openacc' '-mcpu=power8' '-O2' '-v' '-B'
'/home/seurer/gcc/build/gcc-test/gcc/' '-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/'
'-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/'
'-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/.libs'
'-fsanitize=address' '-g' '-fno-diagnostics-show-caret' '-O2'
'-fno-use-linker-plugin' '-flto-partition=none' '-mcpu=power8' '-dumpdir' './'
'-dumpbase' 'alloca_big_alignment.exe' '-o' '/tmp/ccDBtlyG.lto.o'
 /home/seurer/binutils/install/bin/as -v -a64 -mpower8 -many -mbig -o
/tmp/ccDBtlyG.lto.o /tmp/ccZhbOFV.s
GNU assembler version 2.26.51 (powerpc64-unknown-linux-gnu) using BFD version
(GNU Binutils) 2.26.51.20151113
COMPILER_PATH=/home/seurer/gcc/build/gcc-test/gcc/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/:/home/seurer/gcc/build/gcc-test/gcc/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/
LIBRARY_PATH=/home/seurer/gcc/build/gcc-test/gcc/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/:/lib/../lib64/../lib64/:/usr/lib/../lib64/../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/home/seurer/gcc/build/gcc-test/gcc/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/:/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/:/lib/../lib64/:/usr/lib/../lib64/:/lib/:/usr/lib/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-fdiagnostics-color=never' '-c' '-fno-openmp'
'-fno-openacc' '-mcpu=power8' '-O2' '-v' '-B'
'/home/seurer/gcc/build/gcc-test/gcc/' '-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/'
'-B'
'/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/'
'-L/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/.libs'
'-fsanitize=address' '-g' '-fno-diagnostics-show-caret' '-O2'
'-fno-use-linker-plugin' '-flto-partition=none' '-mcpu=power8' '-dumpdir' './'
'-dumpbase' 'alloca_big_alignment.exe' '-o' '/tmp/ccDBtlyG.lto.o'
/home/seurer/gcc/build/gcc-test/gcc/xgcc -B
/home/seurer/gcc/build/gcc-test/gcc/ -B
/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/ -B
/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/./libsanitizer/asan/
-mcpu=power8 -r -nostdlib -o /tmp/cc8OEpzbdebugobj /tmp/ccC8B76qdebugobjtem
/tmp/ccC8B76qdebugobjtem: file not recognized: Bad value
collect2: error: ld returned 1 exit status
lto-wrapper: fatal error: /home/seurer/gcc/build/gcc-test/gcc/xgcc returned 1
exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.



Here's the whole list:

Tue Aug 22 11:06:58 CDT 2017
Failures found in new revision r251220: 434, versus failures found in previous
revision r251219:  125
Differences from previous run:

> FAIL: c-c++-common/asan/alloca_big_alignment.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_big_alignment.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_big_alignment.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_big_alignment.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_detect_custom_size.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_detect_custom_size.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_detect_custom_size.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_detect_custom_size.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_instruments_all_paddings.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_instruments_all_paddings.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_instruments_all_paddings.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_instruments_all_paddings.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_loop_unpoisoning.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_loop_unpoisoning.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_loop_unpoisoning.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_loop_unpoisoning.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_overflow_partial.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_overflow_partial.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_overflow_partial.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_overflow_partial.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_overflow_right.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_overflow_right.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_overflow_right.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_overflow_right.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_safe_access.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_safe_access.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_safe_access.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_safe_access.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_underflow_left.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_underflow_left.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_underflow_left.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/alloca_underflow_left.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/asan-interface-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/asan-interface-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/asan-interface-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/asan-interface-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-3.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-3.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-3.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-3.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-4.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-4.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-4.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-4.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-5.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-5.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-5.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/bitfield-5.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/clone-test-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/clone-test-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/clone-test-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/clone-test-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/global-overflow-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/global-overflow-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/global-overflow-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/global-overflow-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/halt_on_error-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/halt_on_error-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/halt_on_error-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/halt_on_error-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/halt_on_error-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/halt_on_error-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/halt_on_error-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/halt_on_error-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/heap-overflow-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/heap-overflow-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/heap-overflow-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/heap-overflow-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/memcmp-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/memcmp-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/memcmp-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/memcmp-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/misalign-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/misalign-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/misalign-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/misalign-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/misalign-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/misalign-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/misalign-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/misalign-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr59063-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr59063-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr59063-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr59063-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr59063-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr59063-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr59063-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr59063-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr61530.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr61530.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr61530.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr61530.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr62089.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr62089.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr62089.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr62089.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr63316.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr63316.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr63316.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr63316.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr63888.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr63888.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr63888.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr63888.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr64820.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr64820.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr64820.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr64820.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr70712.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr70712.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr70712.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr70712.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr71480.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr71480.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr71480.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr71480.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr79944.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr79944.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr79944.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr79944.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr80308.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr80308.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/pr80308.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/pr80308.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/sanity-check-pure-c-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/sanity-check-pure-c-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/sanity-check-pure-c-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/sanity-check-pure-c-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/sleep-before-dying-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/sleep-before-dying-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/sleep-before-dying-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/sleep-before-dying-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/stack-overflow-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/stack-overflow-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/stack-overflow-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/stack-overflow-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/strip-path-prefix-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/strip-path-prefix-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/strip-path-prefix-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/strip-path-prefix-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/strncpy-overflow-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/strncpy-overflow-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/strncpy-overflow-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/strncpy-overflow-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/swapcontext-test-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/swapcontext-test-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/swapcontext-test-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/swapcontext-test-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/use-after-free-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/use-after-free-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/use-after-free-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/use-after-free-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/use-after-return-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/use-after-return-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: c-c++-common/asan/use-after-return-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: c-c++-common/asan/use-after-return-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/deep-tail-call-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/deep-tail-call-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/deep-thread-stack-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/deep-thread-stack-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/default-options-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/default-options-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/function-argument-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/function-argument-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/function-argument-2.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/function-argument-2.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/function-argument-3.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/function-argument-3.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/interception-failure-test-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/interception-failure-test-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/interception-malloc-test-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/interception-malloc-test-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/interception-test-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/interception-test-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/large-func-test-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/large-func-test-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/pr55617.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/pr55617.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/pr62017.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/pr62017.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/pr77396-2.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/pr77396-2.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/pr77396.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/pr77396.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/pr81021.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/pr81021.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-2.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-2.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-3.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-3.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-5.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-5.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-1.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-1.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-2.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-2.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-3.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-3.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-4.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-4.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-5.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: g++.dg/asan/use-after-scope-types-5.C   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: g++.dg/lto/20101010-4 cp_lto_20101010-4_0.o-cp_lto_20101010-4_0.o link,  -std=c++0x -flto -g -r -nostdlib 
> FAIL: g++.dg/lto/20101015-2 cp_lto_20101015-2_0.o-cp_lto_20101015-2_0.o link,  -g -flto 
> FAIL: g++.dg/lto/pr42987 cp_lto_pr42987_0.o-cp_lto_pr42987_1.o link,  -flto -flto-partition=none -g 
> FAIL: g++.dg/lto/pr42987 cp_lto_pr42987_0.o-cp_lto_pr42987_1.o link,  -flto -g 
> FAIL: g++.dg/lto/pr48207 cp_lto_pr48207_0.o-cp_lto_pr48207_0.o link,  -flto -g 
> FAIL: g++.dg/lto/pr48207-2 cp_lto_pr48207-2_0.o-cp_lto_pr48207-2_0.o link,  -flto -g 
> FAIL: g++.dg/lto/pr48207-3 cp_lto_pr48207-3_0.o-cp_lto_pr48207-3_0.o link,  -flto -g 
> FAIL: g++.dg/lto/pr48354-1 cp_lto_pr48354-1_0.o-cp_lto_pr48354-1_0.o link,  -g -flto 
> FAIL: g++.dg/lto/pr48508-1 cp_lto_pr48508-1_0.o-cp_lto_pr48508-1_1.o link,  -g -O2 -flto -flto-partition=none 
> FAIL: g++.dg/lto/pr51564-1 cp_lto_pr51564-1_0.o-cp_lto_pr51564-1_0.o link,  -flto -g 
> FAIL: g++.dg/lto/pr51567-1 cp_lto_pr51567-1_0.o-cp_lto_pr51567-1_0.o link,  -flto -g 
> FAIL: g++.dg/lto/pr51572-2 cp_lto_pr51572-2_0.o-cp_lto_pr51572-2_0.o link,  -g -flto 
> FAIL: g++.dg/lto/pr51573-1 cp_lto_pr51573-1_0.o-cp_lto_pr51573-1_0.o link,  -flto -g 
> FAIL: g++.dg/lto/pr51650-1 cp_lto_pr51650-1_0.o-cp_lto_pr51650-1_0.o link,  -flto -g 
> FAIL: g++.dg/lto/pr51650-2 cp_lto_pr51650-2_0.o-cp_lto_pr51650-2_0.o link,  -flto -g 
> FAIL: g++.dg/lto/pr51650-3 cp_lto_pr51650-3_0.o-cp_lto_pr51650-3_0.o link,  -flto -g 
> FAIL: g++.dg/lto/pr52605 cp_lto_pr52605_0.o-cp_lto_pr52605_0.o link, -flto -g
> FAIL: g++.dg/lto/pr53470 cp_lto_pr53470_0.o-cp_lto_pr53470_0.o link,  -g -flto 
> FAIL: g++.dg/lto/pr65193 cp_lto_pr65193_0.o-cp_lto_pr65193_0.o link, -fPIC -r -nostdlib -flto -O2 -g
> FAIL: g++.dg/lto/pr65316 cp_lto_pr65316_0.o-cp_lto_pr65316_1.o link,  -flto -std=c++11 -g2 -fno-lto-odr-type-merging -O2 
> FAIL: g++.dg/lto/pr65549 cp_lto_pr65549_0.o-cp_lto_pr65549_0.o link,  -std=gnu++14 -flto -g 
> FAIL: g++.dg/lto/pr65549 cp_lto_pr65549_0.o-cp_lto_pr65549_0.o link,  -std=gnu++14 -flto -g -O2 -fno-inline -flto-partition=max 
> FAIL: g++.dg/lto/pr69077 cp_lto_pr69077_0.o-cp_lto_pr69077_1.o link,  -O3 -g -flto 
> FAIL: g++.dg/lto/pr69137 cp_lto_pr69137_0.o-cp_lto_pr69137_0.o link,  -std=c++11 -g -flto 
> FAIL: g++.dg/lto/pr79000 cp_lto_pr79000_0.o-cp_lto_pr79000_1.o link, -flto -g
> FAIL: g++.dg/ubsan/pr60569.C   -O3 -g  (test for excess errors)
> FAIL: gcc.dg/asan/nosanitize-and-inline.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/nosanitize-and-inline.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/pr78541.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/pr78541.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/pr79196.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/pr79196.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/pr80166.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/pr80166.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/pr81186.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/pr81186.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-10.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-10.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-11.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-11.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-4.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-4.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-5.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-5.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-6.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-6.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-7.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-7.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-9.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-9.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-switch-1.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-switch-1.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-switch-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-switch-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-switch-3.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-switch-3.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-switch-4.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
> FAIL: gcc.dg/asan/use-after-scope-switch-4.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
> FAIL: gcc.dg/debug/pr41893-1.c -gdwarf-2 (test for excess errors)
> FAIL: gcc.dg/debug/pr41893-1.c -gdwarf-2 -O (test for excess errors)
> FAIL: gcc.dg/debug/pr41893-1.c -gdwarf-2 -O3 (test for excess errors)
> FAIL: gcc.dg/debug/pr41893-1.c -gdwarf-2 -g1 (test for excess errors)
> FAIL: gcc.dg/debug/pr41893-1.c -gdwarf-2 -g1 -O (test for excess errors)
> FAIL: gcc.dg/debug/pr41893-1.c -gdwarf-2 -g1 -O3 (test for excess errors)
> FAIL: gcc.dg/debug/pr41893-1.c -gdwarf-2 -g3 (test for excess errors)
> FAIL: gcc.dg/debug/pr41893-1.c -gdwarf-2 -g3 -O (test for excess errors)
> FAIL: gcc.dg/debug/pr41893-1.c -gdwarf-2 -g3 -O3 (test for excess errors)
> FAIL: gcc.dg/lto/20090914-1 c_lto_20090914-1_0.o-c_lto_20090914-1_0.o link, -flto
> FAIL: gcc.dg/lto/20100426 c_lto_20100426_0.o-c_lto_20100426_0.o link, -r -nostdlib -flto -g
> FAIL: gcc.dg/lto/20111207-2 c_lto_20111207-2_0.o-c_lto_20111207-2_0.o link,  -g -O -flto 
> FAIL: gcc.dg/lto/20111213-1 c_lto_20111213-1_0.o-c_lto_20111213-1_0.o link,  -flto -g 
> FAIL: gcc.dg/lto/pr51572-1 c_lto_pr51572-1_0.o-c_lto_pr51572-1_0.o link,  -flto -g 
> FAIL: gcc.dg/lto/pr53470 c_lto_pr53470_0.o-c_lto_pr53470_0.o link,  -flto -g 
> FAIL: gcc.dg/lto/pr59323 c_lto_pr59323_0.o-c_lto_pr59323_0.o link,  -O2 -g -flto 
> FAIL: gcc.dg/lto/pr59323-2 c_lto_pr59323-2_0.o-c_lto_pr59323-2_0.o link,  -O2 -g -flto 
> FAIL: gcc.dg/lto/pr64415 c_lto_pr64415_0.o-c_lto_pr64415_1.o link,  -O -flto -fpic 
> FAIL: gcc.dg/pr43557-1.c (test for excess errors)
> FAIL: gfortran.dg/lto/20091016-1 f_lto_20091016-1_0.o-f_lto_20091016-1_0.o link, -O -flto -g -fPIC -r -nostdlib
> FAIL: gfortran.dg/lto/20091016-1 f_lto_20091016-1_0.o-f_lto_20091016-1_0.o link, -flto -g -fPIC -r -nostdlib
> FAIL: gfortran.dg/lto/pr41521 f_lto_pr41521_0.o-f_lto_pr41521_1.o link, -g -O -flto -Wno-lto-type-mismatch
> FAIL: gfortran.dg/lto/pr41521 f_lto_pr41521_0.o-f_lto_pr41521_1.o link, -g -flto -Wno-lto-type-mismatch
> FAIL: gfortran.dg/lto/pr46911 f_lto_pr46911_0.o-f_lto_pr46911_0.o link,  -O2 -flto -g 
> FAIL: gfortran.dg/lto/pr47839 f_lto_pr47839_0.o-f_lto_pr47839_1.o link,  -g -flto 
> FAIL: gfortran.dg/save_6.f90   -O0  (test for excess errors)
> FAIL: gfortran.dg/save_6.f90   -O1  (test for excess errors)
> FAIL: gfortran.dg/save_6.f90   -O2  (test for excess errors)
> FAIL: gfortran.dg/save_6.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  (test for excess errors)
> FAIL: gfortran.dg/save_6.f90   -O3 -g  (test for excess errors)
> FAIL: gfortran.dg/save_6.f90   -Os  (test for excess errors)
> FAIL: gfortran.dg/submodule_6.f08   -O3 -g  (test for excess errors)
> FAIL: libgomp.c++/pr69393.C (test for excess errors)
>From gcc-bugs-return-572960-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 16:12:13 2017
Return-Path: <gcc-bugs-return-572960-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69684 invoked by alias); 22 Aug 2017 16: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 69102 invoked by uid 48); 22 Aug 2017 16:11:57 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81927] [8 regression] Many, many test case failures starting with r251220
Date: Tue, 22 Aug 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: other
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget cc cf_gcchost cf_gccbuild
Message-ID: <bug-81927-4-r2r54x9ZXl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81927-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81927-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02519.txt.bz2
Content-length: 715

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

seurer at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |powerpc64-unknown-linux-gnu
                 CC|                            |rguenth at gcc dot gnu.org,
                   |                            |wschmidt at gcc dot gnu.org
               Host|                            |powerpc64-unknown-linux-gnu
              Build|                            |powerpc64-unknown-linux-gnu

--- Comment #1 from seurer at gcc dot gnu.org ---
Note that this was on powerpc64 BE only.  LE works fine.
>From gcc-bugs-return-572961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 16:18:11 2017
Return-Path: <gcc-bugs-return-572961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82320 invoked by alias); 22 Aug 2017 16:18: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 81863 invoked by uid 55); 22 Aug 2017 16:18:00 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81927] [8 regression] Many, many test case failures starting with r251220
Date: Tue, 22 Aug 2017 20:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse 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-81927-4-fksjGB06Ax@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81927-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81927-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02520.txt.bz2
Content-length: 1001

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

--- Comment #2 from rguenther at suse dot de <rguenther at suse dot de> ---
On August 22, 2017 6:11:56 PM GMT+02:00, "seurer at gcc dot gnu.org"
<gcc-bugzilla@gcc.gnu.org> wrote:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81927
>
>seurer at gcc dot gnu.org changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>        Target|                            |powerpc64-unknown-linux-gnu
>            CC|                            |rguenth at gcc dot gnu.org,
>              |                            |wschmidt at gcc dot gnu.org
>          Host|                            |powerpc64-unknown-linux-gnu
>         Build|                            |powerpc64-unknown-linux-gnu
>
>--- Comment #1 from seurer at gcc dot gnu.org ---
>Note that this was on powerpc64 BE only.  LE works fine.

Should be fixed by the last liberty change,thus a duplicate.
>From gcc-bugs-return-572962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 17:33:16 2017
Return-Path: <gcc-bugs-return-572962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96396 invoked by alias); 22 Aug 2017 17:33: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 95788 invoked by uid 55); 22 Aug 2017 17:33:07 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81488] [8 Regression] gcc goes off the limits allocating memory in gimple-ssa-strength-reduction.c
Date: Tue, 22 Aug 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
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-81488-4-5Qb2szvIVJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02521.txt.bz2
Content-length: 1453

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

--- Comment #7 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Tue Aug 22 17:32:26 2017
New Revision: 251286

URL: https://gcc.gnu.org/viewcvs?rev=251286&root=gcc&view=rev
Log:
2017-08-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/81488
        * gimple-ssa-strength-reduction (struct slsr_cand_d): Add visited
        and cached_basis fields.
        (MAX_SPREAD): New constant.
        (alloc_cand_and_find_basis): Initialize new fields.
        (clear_visited): New function.
        (create_phi_basis_1): Rename from create_phi_basis, set visited
        and cached_basis fields.
        (create_phi_basis): New wrapper function.
        (phi_add_costs_1): Rename from phi_add_costs, add spread
        parameter, set visited field, short-circuit when limits reached.
        (phi_add_costs): New wrapper function.
        (record_phi_increments_1): Rename from record_phi_increments, set
        visited field.
        (record_phi_increments): New wrapper function.
        (phi_incr_cost_1): Rename from phi_incr_cost, set visited field.
        (phi_incr_cost): New wrapper function.
        (all_phi_incrs_profitable_1): Rename from
        all_phi_incrs_profitable, set visited field.
        (all_phi_incrs_profitable): New wrapper function.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-strength-reduction.c
>From gcc-bugs-return-572965-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 19:13:08 2017
Return-Path: <gcc-bugs-return-572965-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129425 invoked by alias); 22 Aug 2017 19:13:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 129248 invoked by uid 48); 22 Aug 2017 19:13:02 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Tue, 22 Aug 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: go
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: NEW
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_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81926-4-wCOIPUAkBE@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-08/txt/msg02524.txt.bz2
Content-length: 1728

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
                 CC|                            |ebotcazou at gcc dot gnu.org,
                   |                            |ro at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> The compiler to be used for the initial stage of bootstrap is gcc 6.4.0 thus
> :
> 
> d$ /usr/local/gcc6/bin/gcc --version 
> gcc (genunix Wed Jul 26 02:41:24 GMT 2017) 6.4.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.
> 
> That had reasonable test results previously : 
>     https://gcc.gnu.org/ml/gcc-testresults/2017-07/msg02881.html

But Go wasn't enabled for it, was it?

> There seems to be only an 8 byte size difference : 
> 
> d$ ls -lo ./stage2-gcc/go/parse.o ./stage3-gcc/go/parse.o
> -rw-r--r--   1 dclarke  3904088 Aug 22 04:00 ./stage2-gcc/go/parse.o
> -rw-r--r--   1 dclarke  3904080 Aug 22 04:57 ./stage3-gcc/go/parse.o
> 
> Also the various symbols in these object files are identical but the
> location of data inside the ELF files is slightly different : 

Can you find out (with objdump for example) which section differs in size?

Rainer, do you test Go in this configuration (system as + ld)?
>From gcc-bugs-return-572967-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 19:30:27 2017
Return-Path: <gcc-bugs-return-572967-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89241 invoked by alias); 22 Aug 2017 19:30: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 88999 invoked by uid 48); 22 Aug 2017 19:30:01 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] New: if(!this) optimization leads to possible errors without warnings
Date: Tue, 22 Aug 2017 20:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher 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-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02526.txt.bz2
Content-length: 981

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

            Bug ID: 81928
           Summary: if(!this) optimization leads to possible errors
                    without warnings
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: matthieu.brucher at gmail dot com
  Target Milestone: ---

The constructs if(!this) in a method raises a warning about comparison with
NULL, as it should.
We agree that this is an undefined behavior at its worst. The issue is that the
behavior of this condition is not the same between debug and optimized where
the call is considered at compile time.
Even if there is an existing warning on this undefined behavior, this should be
an error (or a warning no matter what) as there is a different behavior between
debug and optimized (even if they both make sense).
>From gcc-bugs-return-572963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 17:42:23 2017
Return-Path: <gcc-bugs-return-572963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24278 invoked by alias); 22 Aug 2017 17:42:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24161 invoked by uid 48); 22 Aug 2017 17:42:16 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81488] [8 Regression] gcc goes off the limits allocating memory in gimple-ssa-strength-reduction.c
Date: Tue, 22 Aug 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: tree-optimization
X-Bugzilla-Version: 8.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: P1
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-81488-4-VMbtkkq1Hz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02522.txt.bz2
Content-length: 427

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

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

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

--- Comment #8 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-572964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 18:01:16 2017
Return-Path: <gcc-bugs-return-572964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104187 invoked by alias); 22 Aug 2017 18:00: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 103461 invoked by uid 55); 22 Aug 2017 17:59:58 -0000
From: "dansan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/71958] x86_64-w64-mingw32, ICE when '-mx32' is used
Date: Tue, 22 Aug 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: target
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords: diagnostic, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dansan at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71958-4-0y5JxF7lcD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71958-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71958-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02523.txt.bz2
Content-length: 1329

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

--- Comment #3 from dansan at gcc dot gnu.org ---
Author: dansan
Date: Tue Aug 22 17:59:24 2017
New Revision: 251287

URL: https://gcc.gnu.org/viewcvs?rev=251287&root=gcc&view=rev
Log:
PR target/71958: Error on -mx32 with -mabi=ms

gcc/ChangeLog:
2017-08-11  Daniel Santos  <daniel.santos@pobox.com>

        * config/i386/i386.c (ix86_option_override_internal): Error when
        -mx32 is combined with -mabi=ms.
        (ix86_function_type_abi): Limit errors for mixing -mx32 with
        attribute ms_abi.

gcc/testsuite/ChangeLog:
2017-08-11  Daniel Santos  <daniel.santos@pobox.com>

        * gcc.target/i386/pr71958.c: New test to verify error on -mx32
        and -mabi=ms
        * gcc.target/i386/pr64409.c: Modify to only run on x32.
        * gcc.target/i386/pr46470.c: Modify to skip x32 target.
        * gcc.target/i386/pr66275.c: Likewise.
        * gcc.target/i386/pr68018.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr71958.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr46470.c
    trunk/gcc/testsuite/gcc.target/i386/pr64409.c
    trunk/gcc/testsuite/gcc.target/i386/pr66275.c
    trunk/gcc/testsuite/gcc.target/i386/pr68018.c
>From gcc-bugs-return-572966-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 19:29:20 2017
Return-Path: <gcc-bugs-return-572966-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87453 invoked by alias); 22 Aug 2017 19: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 87358 invoked by uid 48); 22 Aug 2017 19:29:11 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/81919] type derived from instantiation of Ada.Iterator_Interfaces wrongly rejected
Date: Tue, 22 Aug 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: ada
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-81919-4-mMKwD1Mb1G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81919-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81919-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02525.txt.bz2
Content-length: 1141

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
                 CC|                            |ebotcazou at gcc dot gnu.org
            Summary|Compiler refuses to compile |type derived from
                   |valid code                  |instantiation of
                   |                            |Ada.Iterator_Interfaces
                   |                            |wrongly rejected
     Ever confirmed|0                           |1

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> We think that the refusal to compile it is a compiler bug.
> 
> Note that if I remove "type Iterated_Object is access all Integer;" and
> replace "type Cursor is new Iterated_Object;" with "type Cursor is access
> all Integer;" then the compiler does not complaint.

Yes, the behaviour is rather inconsistent.
>From gcc-bugs-return-572968-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 19:32:56 2017
Return-Path: <gcc-bugs-return-572968-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 697 invoked by alias); 22 Aug 2017 19:32: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 130288 invoked by uid 48); 22 Aug 2017 19:32:51 -0000
From: "patrick.a.moran at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81929] New: exponential slowdown in undefined behavior sanitizer for streaming
Date: Tue, 22 Aug 2017 20:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: patrick.a.moran at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-81929-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02527.txt.bz2
Content-length: 2751

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

            Bug ID: 81929
           Summary: exponential slowdown in undefined behavior sanitizer
                    for streaming
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick.a.moran at gmail dot com
  Target Milestone: ---

Created attachment 42028
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42028&action=edit
A reproduction of the issue described

I've attached a reproduction. The trigger for the behavior we identified is:

 * To stream a number of ints (or other numeric types) into a
std::ostringstream
 * To call .str() on that std::ostringstream
 * To do all of the above in a single expression
 * Build with -fsanitize=undefined

It seems that all the above conditions are necessary - the problem vanishes if
you:
 * Split the same logic into multiple logical lines of code
 * Call some member function other than .str() (like .rdbuf())
 * Stream string literals instead of numeric types
 * Compile without -fsanitize=undefined

The behavior we see is a compile-time that seems to grow as roughly 4^n, where
n is the number of ints being streamed in. On my box

10 numbers =   0.671s
11 numbers =   1.608s
12 numbers =   5.356s
13 numbers =  20.250s
14 numbers =  80.163s
15 numbers = 318.994s

Salient output from perf record / perf report:

# Overhead  Command       Shared Object                      Symbol
# ........  ............  ................................. 
........................................................................................................................................
#
    59.95%  cc1plus       cc1plus                            [.]
walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
    23.54%  cc1plus       cc1plus                            [.]
replace_placeholders_r(tree_node**, int*, void*)
    14.87%  cc1plus       cc1plus                            [.]
cp_walk_subtrees(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*)
     0.07%  cc1plus       cc1plus                            [.]
push_to_top_level()
     0.06%  cc1plus       [kernel.kallsyms]                  [k] clear_page_c_e
     0.04%  cc1plus       cc1plus                            [.]
lookup_name_real(tree_node*, int, int, bool, int, int)
>From gcc-bugs-return-572972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 19:59:59 2017
Return-Path: <gcc-bugs-return-572972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3913 invoked by alias); 22 Aug 2017 19:59:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3755 invoked by uid 48); 22 Aug 2017 19:59:52 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81908] [8 Regression] FAIL: gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
Date: Tue, 22 Aug 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81908-4-BaJKwrHBPd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02531.txt.bz2
Content-length: 1100

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

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Below is a small test case that attempts to illustrate the point from comment
#3 about the same logic as for -Walloc-size-larger-than perhaps not applying
quite as well to -Wstringop-overflow.

The odds are minuscule that the argument value is valid (only zero is), and
when it is, the memcpy call is dead, so the warning is helpful for code written
by a human: the call shouldn't be made to begin with.  But the warning is not
helpful to the user when the code is generated by GCC from valid source code.

$ cat a.c && gcc -O2 -S -Wall a.c
void f (char *d, const char *s, __SIZE_TYPE__ n)
{
  if (n > 0 && n <= __SIZE_MAX__ / 2)
    n = 0;

  __builtin_memcpy (d, s, n);
}
a.c: In function ‘f’:
a.c:6:3: warning: ‘__builtin_memcpy’ specified size between 9223372036854775808
and 18446744073709551615 exceeds maximum object size 9223372036854775807
[-Wstringop-overflow=]
   __builtin_memcpy (d, s, n);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~
>From gcc-bugs-return-572971-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 19:56:00 2017
Return-Path: <gcc-bugs-return-572971-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 522 invoked by alias); 22 Aug 2017 19: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 339 invoked by uid 48); 22 Aug 2017 19:55:54 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68391] -Wsuggest-override does not work on Item 12 of Effective Modern C++
Date: Tue, 22 Aug 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: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-68391-4-nTxtuE3pH4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68391-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68391-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02530.txt.bz2
Content-length: 2764

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-22
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to rhalbersma from comment #0)
> Item 12 of Effective Modern C++ contains this example:
> 
> class Base {
> public:
>     virtual void mf1() const;
>     virtual void mf2(int x);
>     virtual void mf3() &;
>     void mf4() const;
> };
> 
> class Derived: public Base {
> public:
>     virtual void mf1();
>     virtual void mf2(unsigned int x);
>     virtual void mf3() &&;
>     void mf4() const;
> };
> 
> int main(){}
> 
> gcc -Wsuggest-override does not yield a single warning (-Wall -Wextra
> -pedantic don't help either).

I get these warnings:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wsuggest-override
-Woverloaded-virtual -Weffc++ 68391.cc
68391.cc:1:7: warning: ‘class Base’ has virtual functions and accessible
non-virtual destructor [-Wnon-virtual-dtor]
 class Base {
       ^~~~
68391.cc:9:7: warning: base class ‘class Base’ has accessible non-virtual
destructor [-Wnon-virtual-dtor]
 class Derived: public Base {
       ^~~~~~~
68391.cc:9:7: warning: ‘class Derived’ has virtual functions and accessible
non-virtual destructor [-Wnon-virtual-dtor]
68391.cc:3:18: warning: ‘virtual void Base::mf1() const’ was hidden
[-Woverloaded-virtual]
     virtual void mf1() const;
                  ^~~
68391.cc:11:18: warning:   by ‘virtual void Derived::mf1()’
[-Woverloaded-virtual]
     virtual void mf1();
                  ^~~
68391.cc:4:18: warning: ‘virtual void Base::mf2(int)’ was hidden
[-Woverloaded-virtual]
     virtual void mf2(int x);
                  ^~~
68391.cc:12:18: warning:   by ‘virtual void Derived::mf2(unsigned int)’
[-Woverloaded-virtual]
     virtual void mf2(unsigned int x);
                  ^~~
68391.cc:5:18: warning: ‘virtual void Base::mf3() &’ was hidden
[-Woverloaded-virtual]
     virtual void mf3() &;
                  ^~~
68391.cc:13:18: warning:   by ‘virtual void Derived::mf3() &&’
[-Woverloaded-virtual]
     virtual void mf3() &&;
                  ^~~
$

Sure, none of them are -Wsuggest-override specifically, but could they still be
what you were looking for?
>From gcc-bugs-return-572970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 19:50:41 2017
Return-Path: <gcc-bugs-return-572970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90055 invoked by alias); 22 Aug 2017 19:50: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 90008 invoked by uid 48); 22 Aug 2017 19:50:35 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59840] -Wconversion produces incorrect warning when value is shifted by 0
Date: Tue, 22 Aug 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: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-59840-4-otQp3uAeZM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59840-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59840-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02529.txt.bz2
Content-length: 617

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
gcc8 doesn't warn. Probably FIXED, but I'm not sure exactly, could be just a
fluke, so I'll say WORKSFORME.
>From gcc-bugs-return-572969-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 19:45:58 2017
Return-Path: <gcc-bugs-return-572969-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75743 invoked by alias); 22 Aug 2017 19:45:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75426 invoked by uid 48); 22 Aug 2017 19:45:46 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70808] Spurious -Wzero-as-null-pointer-constant for nullptr_t
Date: Tue, 22 Aug 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: c++
X-Bugzilla-Version: 6.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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-70808-4-pQXaSrAmDV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02528.txt.bz2
Content-length: 644

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed for both examples.
>From gcc-bugs-return-572973-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:01:53 2017
Return-Path: <gcc-bugs-return-572973-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76145 invoked by alias); 22 Aug 2017 20:01: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 58688 invoked by uid 48); 22 Aug 2017 20:01:30 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66170] Bogus warning with -Wsign-conversion when using static_cast<size_t> on an int
Date: Tue, 22 Aug 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: c++
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords: diagnostic
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: bug_status cc resolution
Message-ID: <bug-66170-4-8NfyONHmgq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02532.txt.bz2
Content-length: 598

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Looks like bug 60342 to me.

*** This bug has been marked as a duplicate of bug 60342 ***
>From gcc-bugs-return-572974-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:01:57 2017
Return-Path: <gcc-bugs-return-572974-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77791 invoked by alias); 22 Aug 2017 20:01: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 59045 invoked by uid 48); 22 Aug 2017 20:01:31 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60342] -Wsign-conversion ignores explicit conversion
Date: Tue, 22 Aug 2017 20:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-60342-4-saSHZXsl3o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02533.txt.bz2
Content-length: 457

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yaghmour.shafik at gmail dot com

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 66170 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-572975-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:09:41 2017
Return-Path: <gcc-bugs-return-572975-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21980 invoked by alias); 22 Aug 2017 20:09:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21402 invoked by uid 48); 22 Aug 2017 20:09:25 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77984] Invalid warning on templated operator= with -Weffc++
Date: Tue, 22 Aug 2017 20:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-77984-4-yLNKmlSbnm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77984-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77984-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02534.txt.bz2
Content-length: 1626

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

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

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Victor Paléologue from comment #0)
> Created attachment 39810 [details]
> Stand-alone C++ code reproducing a false warning
> 
> In the code attached, Thing::operator= is defined as following:
> 
> struct Thing
> {
>   template<typename T>
>   Thing& operator=(const T&)
>   {
>     return *this;
>   }
> };
> 
> Compiling it, I get a warning that does not seem legitimate:
> 
> $ g++ false_warning.cpp -Weffc++
> false_warning.cpp: In member function ‘Thing& Thing::operator=(const T&)’:
> false_warning.cpp:6:13: warning: ‘operator=’ should return a reference to
> ‘*this’ [-Weffc++]
>      return *this;
>              ^~~~
> 

Confirmed.

(In reply to Jonathan Wakely from comment #4)
> No, but IMHO it should be (unless somebody fixes it, see PR 16166 and PR
> 16168 and PR 55837 and others).

I'd rather see it fixed; I might give it a try myself once I learn enough c++
to know what I'm doing. In the meantime I'll make a meta-bug to gather all the
-Weffc++ bugs together.
>From gcc-bugs-return-572976-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:09:42 2017
Return-Path: <gcc-bugs-return-572976-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21991 invoked by alias); 22 Aug 2017 20:09:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21419 invoked by uid 55); 22 Aug 2017 20:09:27 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80210] ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow
Date: Tue, 22 Aug 2017 20:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80210-4-dZn8b5AGd1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02535.txt.bz2
Content-length: 940

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

--- Comment #9 from Peter Bergner <bergner at gcc dot gnu.org> ---
Author: bergner
Date: Tue Aug 22 20:08:51 2017
New Revision: 251291

URL: https://gcc.gnu.org/viewcvs?rev=251291&root=gcc&view=rev
Log:
gcc/
        Backport from mainline
        2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

        PR target/80210
        * config/rs6000/rs6000.c (rs6000_activate_target_options): New
function.
        (rs6000_set_current_function): Rewrite function to use it.

gcc/testsuite/
        Backport from mainline
        2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

        PR target/80210
        * gcc.target/powerpc/pr80210.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.target/powerpc/pr80210.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572977-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:12:06 2017
Return-Path: <gcc-bugs-return-572977-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26710 invoked by alias); 22 Aug 2017 20:12: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 26106 invoked by uid 55); 22 Aug 2017 20:11:44 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80210] ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow
Date: Tue, 22 Aug 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: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80210-4-3QnB4OM63O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02536.txt.bz2
Content-length: 941

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

--- Comment #10 from Peter Bergner <bergner at gcc dot gnu.org> ---
Author: bergner
Date: Tue Aug 22 20:10:58 2017
New Revision: 251292

URL: https://gcc.gnu.org/viewcvs?rev=251292&root=gcc&view=rev
Log:
gcc/
        Backport from mainline
        2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

        PR target/80210
        * config/rs6000/rs6000.c (rs6000_activate_target_options): New
function.
        (rs6000_set_current_function): Rewrite function to use it.

gcc/testsuite/
        Backport from mainline
        2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

        PR target/80210
        * gcc.target/powerpc/pr80210.c: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.target/powerpc/pr80210.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-572978-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:14:02 2017
Return-Path: <gcc-bugs-return-572978-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29302 invoked by alias); 22 Aug 2017 20:14: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 29189 invoked by uid 55); 22 Aug 2017 20:13:51 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80210] ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow
Date: Tue, 22 Aug 2017 20:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80210-4-aJSbARm9UO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02537.txt.bz2
Content-length: 941

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

--- Comment #11 from Peter Bergner <bergner at gcc dot gnu.org> ---
Author: bergner
Date: Tue Aug 22 20:13:11 2017
New Revision: 251293

URL: https://gcc.gnu.org/viewcvs?rev=251293&root=gcc&view=rev
Log:
gcc/
        Backport from mainline
        2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

        PR target/80210
        * config/rs6000/rs6000.c (rs6000_activate_target_options): New
function.
        (rs6000_set_current_function): Rewrite function to use it.

gcc/testsuite/
        Backport from mainline
        2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

        PR target/80210
        * gcc.target/powerpc/pr80210.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/pr80210.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-572979-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:16:01 2017
Return-Path: <gcc-bugs-return-572979-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50281 invoked by alias); 22 Aug 2017 20:15: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 49905 invoked by uid 48); 22 Aug 2017 20:15:20 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80210] ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow
Date: Tue, 22 Aug 2017 20: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-80210-4-2l4cLRBIn9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02538.txt.bz2
Content-length: 494

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

Peter Bergner <bergner at gcc dot gnu.org> changed:

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

--- Comment #12 from Peter Bergner <bergner at gcc dot gnu.org> ---
Fixes now back ported to all open GCC branches (GCC 7, GCC 6 and GCC 5).
>From gcc-bugs-return-572980-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:21:47 2017
Return-Path: <gcc-bugs-return-572980-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86662 invoked by alias); 22 Aug 2017 20:21:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86542 invoked by uid 48); 22 Aug 2017 20:21:41 -0000
From: "LpSolit at netscape dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80519] if(p)free(p) with -Os
Date: Tue, 22 Aug 2017 21:01: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: enhancement
X-Bugzilla-Who: LpSolit at netscape dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80519-4-hRsdki496x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80519-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80519-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02539.txt.bz2
Content-length: 184

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 81892 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-572983-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:21:51 2017
Return-Path: <gcc-bugs-return-572983-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86988 invoked by alias); 22 Aug 2017 20:21: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 86694 invoked by uid 48); 22 Aug 2017 20:21:46 -0000
From: "LpSolit at netscape dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81710] build fail with glibc 2.26 due to removing ucontext/sigaltstack struct tags
Date: Tue, 22 Aug 2017 21:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: LpSolit at netscape dot net
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.ispatch attachments.mimetype
Message-ID: <bug-81710-4-PwPnEOwMTQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81710-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81710-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02540.txt.bz2
Content-length: 548

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

Petr Ovtchenkov <abominable-snowman at yandex dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #41921|0                           |1
           is patch|                            |
  Attachment #41921|application/mbox            |text/plain
          mime type|                            |

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The fix was r249957.
>From gcc-bugs-return-572984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:21:53 2017
Return-Path: <gcc-bugs-return-572984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87172 invoked by alias); 22 Aug 2017 20:21: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 86860 invoked by uid 48); 22 Aug 2017 20:21:47 -0000
From: "LpSolit at netscape dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81891] [5/6/7 Regression] heap-use-after-free if inserting element in std::unordered_map(InputIt, InputIt) throws
Date: Tue, 22 Aug 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: libstdc++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: LpSolit at netscape dot net
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-81891-4-YGsZLb0C8h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81891-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02541.txt.bz2
Content-length: 292

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
>From gcc-bugs-return-572982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:21:48 2017
Return-Path: <gcc-bugs-return-572982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86844 invoked by alias); 22 Aug 2017 20:21: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 86592 invoked by uid 48); 22 Aug 2017 20:21:43 -0000
From: "LpSolit at netscape dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81292] [8 regression] ICE in zero_length_string, at tree-ssa-strlen.c:822
Date: Tue, 22 Aug 2017 21: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: LpSolit at netscape dot net
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81292-4-guUCP5GW3t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81292-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81292-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02542.txt.bz2
Content-length: 145

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81292

--- Comment #10 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
r249961 PASS for me
>From gcc-bugs-return-572985-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:21:56 2017
Return-Path: <gcc-bugs-return-572985-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87560 invoked by alias); 22 Aug 2017 20:21: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 86960 invoked by uid 48); 22 Aug 2017 20:21:50 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/4898] adding an option to verify exception specifications
Date: Tue, 22 Aug 2017 22:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-4898-4-FtgXf0VMK5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-4898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-4898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02543.txt.bz2
Content-length: 1382

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4898

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to luc.maisonobe from comment #0)
> C++ allows to specify exceptions in the function declaration
> but do not enforces it. When lots of classes and methods are
> involved, maintaining up-to-date specifications is very
> difficult, and every missed exception create runtime
> problems (unexpected exception -> abort -> core dumped). For
> the moment the lack of support tools prevents developers
> from using these specifications effectively.
> 
> It would be very helpful to have a switch on the compiler
> to get warnings if a function do not declare the exceptions
> that can be thrown by itself and its callee and that are
> either not caught or that are rethrown. This could be an
> extension to the existing -Weffc++ flag.
> 

Which item from the Effective C++ book says to do this? (I don't actually own
the book myself...)

> As an example, one can look at Java that enforces the proper
> declarations, this is nice.
> 
> Release:
> gcc-3.0
> 
> Environment:
> All
>From gcc-bugs-return-572981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:21:47 2017
Return-Path: <gcc-bugs-return-572981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86695 invoked by alias); 22 Aug 2017 20:21:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86575 invoked by uid 48); 22 Aug 2017 20:21:42 -0000
From: "LpSolit at netscape dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80772] GCC ignores default template argument declaration in the template definition
Date: Tue, 22 Aug 2017 22:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: LpSolit at netscape dot net
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-80772-4-UpQf6J4E76@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80772-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80772-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02544.txt.bz2
Content-length: 488

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80772

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> ---
dup

*** This bug has been marked as a duplicate of bug 80771 ***
>From gcc-bugs-return-572986-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:25:10 2017
Return-Path: <gcc-bugs-return-572986-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125104 invoked by alias); 22 Aug 2017 20:25: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 124836 invoked by uid 48); 22 Aug 2017 20:25:04 -0000
From: "dclarke at blastwave dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Tue, 22 Aug 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: go
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dclarke at blastwave dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-w7Tmp8ZEWw@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-08/txt/msg02545.txt.bz2
Content-length: 2744

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

--- Comment #2 from Dennis Clarke <dclarke at blastwave dot org> ---
the ELF section header table seems
 to be in a slightly different place between the two files :

d$ elfdump -delv stage2-gcc/go/parse.o

ELF Header
  ei_magic:   { 0x7f, E, L, F }
  ei_class:   ELFCLASS64          ei_data:       ELFDATA2MSB
  ei_osabi:   ELFOSABI_NONE       ei_abiversion: 0
  e_machine:  EM_SPARCV9          e_version:     EV_CURRENT
  e_type:     ET_REL
  e_flags:    [ EF_SPARCV9_TSO ]
  e_entry:                     0  e_ehsize:     64  e_shstrndx:  1
  e_shoff:              0x3b7cd8  e_shentsize:  64  e_shnum:     86
  e_phoff:                     0  e_phentsize:   0  e_phnum:     0

d$ elfdump -delv stage3-gcc/go/parse.o

ELF Header
  ei_magic:   { 0x7f, E, L, F }
  ei_class:   ELFCLASS64          ei_data:       ELFDATA2MSB
  ei_osabi:   ELFOSABI_NONE       ei_abiversion: 0
  e_machine:  EM_SPARCV9          e_version:     EV_CURRENT
  e_type:     ET_REL
  e_flags:    [ EF_SPARCV9_TSO ]
  e_entry:                     0  e_ehsize:     64  e_shstrndx:  1
  e_shoff:              0x3b7cd0  e_shentsize:  64  e_shnum:     86
  e_phoff:                     0  e_phentsize:   0  e_phnum:     0
d$

So there I see 0x3b7cd8 in stage2 and 0x3b7cd0 in stage3. 


At first glance there appears to be only an 8 byte difference in the
size of the file but looking down through the various sections in the
ELF data for both files I see the same data represented in very similar
places but yet, slightly different.  For example the ELF header offset
is 0x3b7cd0 in one of them and 0x3b7cd8 in the other.  Is this a valid
functional difference at all?  Perhaps a bug lay inside the linker which
created the actual object file? Looking at both files and the ELF data
between them I see the exact same data in both and yet in different
addresses :

stage 2 :

Section Header[44]:  sh_name: .bss
    sh_addr:      0               sh_flags:   [ SHF_WRITE SHF_ALLOC ]
    sh_size:      0x11            sh_type:    [ SHT_NOBITS ]
    sh_offset:    0x204458        sh_entsize: 0
    sh_link:      0               sh_info:    0
    sh_addralign: 0x4

stage 3 :

Section Header[44]:  sh_name: .bss
    sh_addr:      0               sh_flags:   [ SHF_WRITE SHF_ALLOC ]
    sh_size:      0x11            sh_type:    [ SHT_NOBITS ]
    sh_offset:    0x204450        sh_entsize: 0
    sh_link:      0               sh_info:    0
    sh_addralign: 0x4

That sort of difference lay between the two files in many many places.
Slightly different by 8 bytes again however nm tells me that the symbol
listing is identical between the two files. Perhaps there is no actual
"functional" difference between the files at all.
>From gcc-bugs-return-572987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:25:20 2017
Return-Path: <gcc-bugs-return-572987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125892 invoked by alias); 22 Aug 2017 20:25: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 125531 invoked by uid 48); 22 Aug 2017 20:25:15 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80210] ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow
Date: Tue, 22 Aug 2017 22: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.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: CLOSED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-80210-4-ZALz3nmHO9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80210-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02546.txt.bz2
Content-length: 382

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80210

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #13 from Peter Bergner <bergner at gcc dot gnu.org> ---
Closing as fixed.
>From gcc-bugs-return-572988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:25:53 2017
Return-Path: <gcc-bugs-return-572988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127024 invoked by alias); 22 Aug 2017 20:25: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 126887 invoked by uid 48); 22 Aug 2017 20:25:49 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81431] add warning for missing initializers in constructor
Date: Tue, 22 Aug 2017 22:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
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: bug_status cc resolution
Message-ID: <bug-81431-4-tHFUGECI4V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02547.txt.bz2
Content-length: 1421

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81431

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Tom Tromey from comment #0)
> I would like gcc to emit a warning when a constructor does not
> initialize a POD member; and in particular I'd like this not to
> be tied to -Wuninitialized.
> 
> Having a warning like this is good for robustness -- it avoids
> situations where one forgets to initialize a scalar or the like.
> 
> I realize -Wuninitialized will do this, but that can be a difficult
> warning to enable for an existing code base, due to false positives.
> 
> Something along the lines of
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2972#c9
> would be nice.
> 
> -Weffc++ does warn about this, but it is too broad, as it includes
> members that have a constructor.

-Weffc++ being too broad is bug 16166.

> 
> Here's a simple example:
> 
> struct X
> {
>   int a,b;
> 
>   X() : a(5) { }
> };
> 
> X x;

*** This bug has been marked as a duplicate of bug 16166 ***
>From gcc-bugs-return-572989-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:25:55 2017
Return-Path: <gcc-bugs-return-572989-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127214 invoked by alias); 22 Aug 2017 20:25:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126972 invoked by uid 48); 22 Aug 2017 20:25:51 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/16166] -Weffc++ finer granularity
Date: Tue, 22 Aug 2017 22:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-16166-4-zaZXtUEOcd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-16166-4@http.gcc.gnu.org/bugzilla/>
References: <bug-16166-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02548.txt.bz2
Content-length: 449

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16166

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu.org

--- Comment #11 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 81431 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-572990-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:30:00 2017
Return-Path: <gcc-bugs-return-572990-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32813 invoked by alias); 22 Aug 2017 20:29: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 32637 invoked by uid 48); 22 Aug 2017 20:29:54 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81930] New: [meta-bug] Issues with -Weffc++
Date: Tue, 22 Aug 2017 22:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, meta-bug
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 dependson target_milestone
Message-ID: <bug-81930-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02549.txt.bz2
Content-length: 2351

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81930

            Bug ID: 81930
           Summary: [meta-bug] Issues with -Weffc++
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: diagnostic, meta-bug
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egallager at gcc dot gnu.org
        Depends on: 16166, 16168, 22395, 22406, 25814, 55836, 55837,
                    56879, 57854, 58407, 68391, 77984
  Target Milestone: ---

This is to help organize all the bugs related to -Weffc++.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16166
[Bug 16166] -Weffc++ finer granularity
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16168
[Bug 16168] -Weffc++ item 14 improvements
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22395
[Bug 22395] -Weffc++ shouldn't warn about non-virtual dtor of private
subclasses
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22406
[Bug 22406] -Weffc++ warns about missing op= and copy ctor, even when base
classes have already disabled these
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25814
[Bug 25814] Request for warning for parser ambiguity of function declarations
and variable declarations with initializations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55836
[Bug 55836] Weffc++: warning: base class 'class std::list<int,
std::allocator<int> >' has a non-virtual destructor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55837
[Bug 55837] [C++11] -Weffc++: warning: 'xxx:yyy' should be initialized in the
member initialization list
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56879
[Bug 56879] -Weffc++ warns about non-virtual base class destructor even if it
is protected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57854
[Bug 57854] Would like to have a warning for virtual overrides without C++11
"override" keyword
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58407
[Bug 58407] [C++11] Should warn about deprecated implicit generation of copy
constructor/assignment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68391
[Bug 68391] -Wsuggest-override does not work on Item 12 of Effective Modern C++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77984
[Bug 77984] Invalid warning on templated operator= with -Weffc++
>From gcc-bugs-return-572991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:33:38 2017
Return-Path: <gcc-bugs-return-572991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71053 invoked by alias); 22 Aug 2017 20:33: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 68386 invoked by uid 48); 22 Aug 2017 20:33:33 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81431] add warning for missing initializers in constructor
Date: Tue, 22 Aug 2017 23:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: bug_status cf_reconfirmed_on see_also resolution everconfirmed
Message-ID: <bug-81431-4-Px6SQWpR7j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02550.txt.bz2
Content-length: 787

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81431

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2017-08-22
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=16166
         Resolution|DUPLICATE                   |---
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I would prefer to see -Weffc++ deprecated and removed, so tying this valid
request to -Weffc++ might see it die.
>From gcc-bugs-return-572992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:34:42 2017
Return-Path: <gcc-bugs-return-572992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42184 invoked by alias); 22 Aug 2017 20:34:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35406 invoked by uid 48); 22 Aug 2017 20:34:37 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Tue, 22 Aug 2017 23:46: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: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-OdKhzHIFjf@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-08/txt/msg02551.txt.bz2
Content-length: 2089

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> the ELF section header table seems
>  to be in a slightly different place between the two files :
> 
> d$ elfdump -delv stage2-gcc/go/parse.o
> 
> ELF Header
>   ei_magic:   { 0x7f, E, L, F }
>   ei_class:   ELFCLASS64          ei_data:       ELFDATA2MSB
>   ei_osabi:   ELFOSABI_NONE       ei_abiversion: 0
>   e_machine:  EM_SPARCV9          e_version:     EV_CURRENT
>   e_type:     ET_REL
>   e_flags:    [ EF_SPARCV9_TSO ]
>   e_entry:                     0  e_ehsize:     64  e_shstrndx:  1
>   e_shoff:              0x3b7cd8  e_shentsize:  64  e_shnum:     86
>   e_phoff:                     0  e_phentsize:   0  e_phnum:     0
> 
> d$ elfdump -delv stage3-gcc/go/parse.o
> 
> ELF Header
>   ei_magic:   { 0x7f, E, L, F }
>   ei_class:   ELFCLASS64          ei_data:       ELFDATA2MSB
>   ei_osabi:   ELFOSABI_NONE       ei_abiversion: 0
>   e_machine:  EM_SPARCV9          e_version:     EV_CURRENT
>   e_type:     ET_REL
>   e_flags:    [ EF_SPARCV9_TSO ]
>   e_entry:                     0  e_ehsize:     64  e_shstrndx:  1
>   e_shoff:              0x3b7cd0  e_shentsize:  64  e_shnum:     86
>   e_phoff:                     0  e_phentsize:   0  e_phnum:     0
> d$
> 
> So there I see 0x3b7cd8 in stage2 and 0x3b7cd0 in stage3. 

Sure, but we need to find where this difference comes from, i.e. which section
of the executable has a different size.  elfdump can probably dump this info.

> At first glance there appears to be only an 8 byte difference in the
> size of the file but looking down through the various sections in the
> ELF data for both files I see the same data represented in very similar
> places but yet, slightly different.  For example the ELF header offset
> is 0x3b7cd0 in one of them and 0x3b7cd8 in the other.  Is this a valid
> functional difference at all?

Maybe not, but the comparison process is very strict.  In any case, 2 identical
compilers should produce identical object files (modulo timestamp).
>From gcc-bugs-return-572993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:35:12 2017
Return-Path: <gcc-bugs-return-572993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89580 invoked by alias); 22 Aug 2017 20:35:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75108 invoked by uid 48); 22 Aug 2017 20:35:00 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/4898] adding an option to verify exception specifications
Date: Wed, 23 Aug 2017 00:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 3.0
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-4898-4-Dnpeicrv2g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-4898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-4898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02552.txt.bz2
Content-length: 201

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4898

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Dynamic exception specifications are no longer part of the C++ language anyway.
>From gcc-bugs-return-572994-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:40:58 2017
Return-Path: <gcc-bugs-return-572994-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2135 invoked by alias); 22 Aug 2017 20:40:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 2067 invoked by uid 48); 22 Aug 2017 20:40:53 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78632] Produce warning when a derived class shadows a field of the base class with `-Wshadow`
Date: Wed, 23 Aug 2017 00:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-78632-4-HKU4ZuNJEp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78632-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78632-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02553.txt.bz2
Content-length: 1330

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78632

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Vittorio Romeo from comment #0)
> struct Base { int a; };
> struct Derived : Base  { int a; };
> int main() { }
> 
> The code snippet above produces no warnings with `-Wshadow` enabled. 
> This seems like an unusual situation that could lead to unexpected behavior.
> 
> I suggest producing a warning when `-Wshadow` is enabled, to alert that
> `Derived::a` is shadowing `Base::a`.
> 
> Related SO question:
> https://stackoverflow.com/questions/40908402

Confirmed that no warnings are produced.

(In reply to Vittorio Romeo from comment #1)
> Forgot to set an appropriate importance level, and I can't seem to edit it.
> Sorry.

That's okay, leaving it as the default is probably better.
>From gcc-bugs-return-572995-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:46:33 2017
Return-Path: <gcc-bugs-return-572995-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10269 invoked by alias); 22 Aug 2017 20:46:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10182 invoked by uid 48); 22 Aug 2017 20:46:25 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79008] missing detail in -Wbuiltin-declaration-mismatch
Date: Wed, 23 Aug 2017 00:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-79008-4-tpC1wyqqh2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79008-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79008-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02554.txt.bz2
Content-length: 1848

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79008

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-22
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #0)
> In C++ (but not in C) -Wbuiltin-declaration-mismatch prints the conflicting
> declarations of the function as shown below.  This is helpful when the
> declarations visibly differ but not so much when they look the same as is
> likely to be common in code that declares the function based on the C or
> POSIX standards.
> 
> To avoid this problem, when the conflict is due to missing attributes, the
> warning should also include the attributes that cause the conflict.

Do you have an example that uses attributes? The one you included here doesn't
show any problem with attributes.

> 
> To make this feature generally available beyond this specific warning I
> would suggest to enhance the pretty printer to make it possible to also
> include attributes in a declaration.  E.g., by interpreting the pound ('#')
> flag as a request to do so ("%#qE").
> 
> $ cat b.c && gcc -S -Wall -Wextra -Wpedantic -xc++ b.c
> extern "C" int sprintf (char*, ...);
> 
> b.c:1:16: warning: declaration of ‘int sprintf(char*, ...)’ conflicts with
> built-in declaration ‘int sprintf(char*, const char*, ...)’
> [-Wbuiltin-declaration-mismatch]
>  extern "C" int sprintf (char*, ...);
>                 ^~~~~~~
>From gcc-bugs-return-572996-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 20:57:37 2017
Return-Path: <gcc-bugs-return-572996-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60824 invoked by alias); 22 Aug 2017 20:57: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 60279 invoked by uid 48); 22 Aug 2017 20:57:26 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81931] New: [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 00:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02555.txt.bz2
Content-length: 1365

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

            Bug ID: 81931
           Summary: [8 regression] r251260 breaks many tests on powerpc64
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

This change to wide-int.h breaks many tests on powerpc64 both LE and BE.  The
symptom is the compiled code hangs.  There are hundreds of test cases that time
out then fail.  One example:

Running /home/seurer/gcc/gcc-test2/gcc/testsuite/gcc.dg/atomic/atomic.exp ...
WARNING: program timed out.
FAIL: gcc.dg/atomic/c11-atomic-exec-5.c   -O1  execution test
WARNING: program timed out.
FAIL: gcc.dg/atomic/c11-atomic-exec-5.c   -O2  execution test
WARNING: program timed out.
FAIL: gcc.dg/atomic/c11-atomic-exec-5.c   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
WARNING: program timed out.
FAIL: gcc.dg/atomic/c11-atomic-exec-5.c   -O3 -g  execution test
WARNING: program timed out.
...etc...

That particular one is doing floating point arithmetic tests on atomic floats
using threads.  At least some (not sure if all) of the other failing tests are
doing similar things.
>From gcc-bugs-return-572997-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 21:01:47 2017
Return-Path: <gcc-bugs-return-572997-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70009 invoked by alias); 22 Aug 2017 21:01: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 69741 invoked by uid 48); 22 Aug 2017 21:01:42 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 00:53: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81931-4-6fEJ3zyMaF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02556.txt.bz2
Content-length: 407

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
     Ever confirmed|0                           |1
>From gcc-bugs-return-572998-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 21:08:23 2017
Return-Path: <gcc-bugs-return-572998-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81485 invoked by alias); 22 Aug 2017 21:08: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 81431 invoked by uid 48); 22 Aug 2017 21:08:19 -0000
From: "dclarke at blastwave dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Wed, 23 Aug 2017 00:53: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: dclarke at blastwave dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-oUPAvbsV3w@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-08/txt/msg02557.txt.bz2
Content-length: 1310

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

--- Comment #4 from Dennis Clarke <dclarke at blastwave dot org> ---
elfdump in Solaris says stage2 section ".debug_info" size is 0x1636a2:  

Section Header[37]:  sh_name: .debug_info
    sh_addr:      0                   sh_flags:   0
    sh_size:      0x1636a2            sh_type:    [ SHT_PROGBITS ]
    sh_offset:    0x1faa0             sh_entsize: 0
    sh_link:      0                   sh_info:    0
    sh_addralign: 0x1

Whereas stage3 reports : 

Section Header[37]:  sh_name: .debug_info
    sh_addr:      0                   sh_flags:   0
    sh_size:      0x163698            sh_type:    [ SHT_PROGBITS ]
    sh_offset:    0x1faa0             sh_entsize: 0
    sh_link:      0                   sh_info:    0
    sh_addralign: 0x1


Not exactly 8 bytes. Looks like 10 bytes diff. All other "sh_size" section size
data matches. 

The output from elfdump is 75k lines long with 1134 lines of diff : 

d$ elfdump ./stage3-gcc/go/parse.o > /tmp/go_parse_elfdump.3
d$ elfdump ./stage2-gcc/go/parse.o > /tmp/go_parse_elfdump.2
d$ wc -l /tmp/go_parse_elfdump.3
   75428 /tmp/go_parse_elfdump.3
d$ wc -l /tmp/go_parse_elfdump.2
   75428 /tmp/go_parse_elfdump.2

d$ diff /tmp/go_parse_elfdump.2 /tmp/go_parse_elfdump.3 | wc -l 
    1134
>From gcc-bugs-return-572999-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 21:12:01 2017
Return-Path: <gcc-bugs-return-572999-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98288 invoked by alias); 22 Aug 2017 21:12:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 98209 invoked by uid 48); 22 Aug 2017 21:11:56 -0000
From: "dclarke at blastwave dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Wed, 23 Aug 2017 00:58: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: dclarke at blastwave dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-FQMxacP0ck@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-08/txt/msg02558.txt.bz2
Content-length: 626

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

--- Comment #5 from Dennis Clarke <dclarke at blastwave dot org> ---
Minor note, the gcc 6.4.0 compiler I am using was not built with support for
"go". I rarely ever build "go" as I have never had a use for it however I
really should. It is possible some small bug has slipped under the radar
because I just did a three stage bootstrap of 7.2.0 without "go" with 
success. Perhaps something subtle at work strictly in the "go" code area.

I will run a testsuite and then get back to perhaps a build with stage1
languages as just C, C++ and then stage2 onwards as "all".
>From gcc-bugs-return-573000-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 21:16:16 2017
Return-Path: <gcc-bugs-return-573000-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2802 invoked by alias); 22 Aug 2017 21:16: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 2665 invoked by uid 48); 22 Aug 2017 21:16:11 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Wed, 23 Aug 2017 01:00: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: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-JHKB9zVMzf@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-08/txt/msg02559.txt.bz2
Content-length: 1165

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> elfdump in Solaris says stage2 section ".debug_info" size is 0x1636a2:  
> 
> Section Header[37]:  sh_name: .debug_info
>     sh_addr:      0                   sh_flags:   0
>     sh_size:      0x1636a2            sh_type:    [ SHT_PROGBITS ]
>     sh_offset:    0x1faa0             sh_entsize: 0
>     sh_link:      0                   sh_info:    0
>     sh_addralign: 0x1
> 
> Whereas stage3 reports : 
> 
> Section Header[37]:  sh_name: .debug_info
>     sh_addr:      0                   sh_flags:   0
>     sh_size:      0x163698            sh_type:    [ SHT_PROGBITS ]
>     sh_offset:    0x1faa0             sh_entsize: 0
>     sh_link:      0                   sh_info:    0
>     sh_addralign: 0x1
> 
> 
> Not exactly 8 bytes. Looks like 10 bytes diff. All other "sh_size" section
> size data matches. 

OK, thanks, this rings a bell.  Unlike other platforms, the bootstrap process
on Solaris involves comparing the debug info, so things like this might go
unnoticed by the developers using other platforms.
>From gcc-bugs-return-573001-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 22:05:59 2017
Return-Path: <gcc-bugs-return-573001-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47843 invoked by alias); 22 Aug 2017 22:05: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 47762 invoked by uid 48); 22 Aug 2017 22:05:53 -0000
From: "psmith at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] New: Template arguments of type unsigned generate incorrect debugging information
Date: Wed, 23 Aug 2017 01:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: psmith 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
Message-ID: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02560.txt.bz2
Content-length: 3356

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

            Bug ID: 81932
           Summary: Template arguments of type unsigned generate incorrect
                    debugging information
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: psmith at gnu dot org
  Target Milestone: ---

I've upgraded from GCC 6.2/binutils 2.27 to GCC 7.2/binutils 2.29 (compiled
myself), running on GNU/Linux on x86_64.  Everything is fine except that GDB
(I've tried both 7.11 and 8.0) can no longer correctly print objects of one of
my templated classes, which I have created a Python printer for.

My template is complex but it's basically:

  template<typename T, unsigned int LEAF_SIZE_POW = 6>
  class TreeVector
  {
    ...
      class Tree
      {
    ...
      private:
          uint const _depth;
      };
    ...
      Tree* tree;
      uint64 _maxIndex;
    ...
  };

When I compile with GCC 6.2, I'm able to see the type of my object via GDB
Python macros:

  (gdb) ptype tv
  type = class TreeVector<Pod, 2u> [with T = Pod] {
    private:
      TreeVector<T, 2u>::Tree *tree;
      volatile uint64 _maxIndex;
    ...

  (gdb) ptype tv.tree
  type = class TreeVector<Pod, 2u>::Tree {
    private:
      const uint _depth;
    ...

  (gdb) python
  >class tv(gdb.Function):
  >    def __init__(self):
  >        gdb.Function.__init__(self, "tv")
  >    def invoke(self, vector):
  >        gdb.write("vector: %s\n" % (str(vector.type)))
  >        gdb.write("tree: %s\n" % (str(vector['tree'].type)))
  >        gdb.write("depth: %d\n" % (vector['tree']['_depth']))
  >        tt = gdb.lookup_type("TreeVector<Pod, 2u>::Tree")
  >        return 0
  >tv()
  >^D

  (gdb) p $tv(tv)
  vector: TreeVector<Pod, 2u>
  tree: TreeVector<Pod, 2u>::Tree *
  depth: 3
  $1 = 0

Note here how the value for the second template argument is "2u" and everything
works.

Now I compile this same code with GCC 7.2/binutils 2.29 and use the same GDB,
and my results are different:

  (gdb) ptype tv
  type = class TreeVector<Pod, 2> [with T = Pod] {
    private:
      TreeVector<T, 2>::Tree *tree;
      volatile uint64 _maxIndex;
    ...

  (gdb) ptype tv.tree
  type = class TreeVector<Pod, 2>::Tree {
    private:
      const uint _depth;
    ...

  (gdb) p $tv(tv)
  vector: TreeVector<Pod, 2>
  tree: TreeVector<Pod, 2>::Tree *
  warning: RTTI symbol not found for class 'TreeVector<Pod, 2u>::Tree'
  depth: 3
  Python Exception <class 'gdb.error'> No type named TreeVector<Pod,
2u>::Tree.: 
  Error occurred in Python convenience function: No type named TreeVector<Pod,
2u>::Tree.

Note how the value in the template is just "2", not "2u".  But, when GDB shows
the RTTI warning it's still looking for the "2u" in the type.  However that
type definitely doesn't exist (we get an error trying to look it up).

If I change my template to use "int" instead of "unsigned int", then everything
works in both versions of GCC (removing the now-invalid gdb.lookup_type call):

  (gdb) ptype tv
  type = class TreeVector<Pod, 2> [with T = Pod] {
    ...

  (gdb) p $tv(tv)
  vector: TreeVector<Pod, 2>
  tree: TreeVector<Pod, 2>::Tree *
  depth: 3
  $1 = 0
>From gcc-bugs-return-573002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 22:31:21 2017
Return-Path: <gcc-bugs-return-573002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20735 invoked by alias); 22 Aug 2017 22:31: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 11292 invoked by uid 48); 22 Aug 2017 22:30:47 -0000
From: "Anders.Montonen at iki dot fi" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/80923] RTEMS SH ICE building gcc-7.1.0 on FreeBSD 11.0
Date: Wed, 23 Aug 2017 01:06: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: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Anders.Montonen at iki dot fi
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-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-80923-4-WbmbcLR6Ib@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80923-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80923-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02561.txt.bz2
Content-length: 2560

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80923

Anders Montonen <Anders.Montonen at iki dot fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Anders.Montonen at iki dot fi

--- Comment #1 from Anders Montonen <Anders.Montonen at iki dot fi> ---
The same error happens building GCC 7.2.0 on macOS 10.12.6 host, sh-unknown-elf
target.

/Users/anders/work/toolchain/gcc/7.2.0/sh-elf/./gcc/xgcc
-B/Users/anders/work/toolchain/gcc/7.2.0/sh-elf/./gcc/ -nostdinc
-B/Users/anders/work/toolchain/gcc/7.2.0/sh-elf/sh-elf/newlib/ -isystem
/Users/anders/work/toolchain/gcc/7.2.0/sh-elf/sh-elf/newlib/targ-include
-isystem /Users/anders/work/toolchain/gcc/7.2.0/gcc-7.2.0/newlib/libc/include
-B/Users/anders/work/toolchain/gcc/7.2.0/sh-elf/sh-elf/libgloss/sh
-L/Users/anders/work/toolchain/gcc/7.2.0/sh-elf/sh-elf/libgloss/libnosys
-L/Users/anders/work/toolchain/gcc/7.2.0/gcc-7.2.0/libgloss/sh
-B/Users/anders/local/sh-elf/bin/ -B/Users/anders/local/sh-elf/lib/ -isystem
/Users/anders/local/sh-elf/include -isystem
/Users/anders/local/sh-elf/sys-include    -g -O2 -ml -O2  -g -O2 -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include   -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
-Dinhibit_libc  -I. -I. -I../../.././gcc -I../../../../gcc-7.2.0/libgcc
-I../../../../gcc-7.2.0/libgcc/. -I../../../../gcc-7.2.0/libgcc/../gcc
-I../../../../gcc-7.2.0/libgcc/../include  -DHAVE_CC_TLS  -o _negdi2.o -MT
_negdi2.o -MD -MP -MF _negdi2.dep -DL_negdi2 -c
../../../../gcc-7.2.0/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
../../../../gcc-7.2.0/libgcc/unwind-dw2.c: In function 'execute_stack_op':
../../../../gcc-7.2.0/libgcc/unwind-dw2.c:840:10: internal compiler error: in
emit_move_insn, at expr.c:3698
   result = (_Unwind_Sword) second / (_Unwind_Sword) first;
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.
make[4]: *** [unwind-dw2-Os-4-200.o] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f _ic_invalidate_array.visT _ic_invalidate_array.vis
make[3]: *** [multi-do] Error 1
make[2]: *** [all-multi] Error 2
make[1]: *** [all-target-libgcc] Error 2
make: *** [all] Error 2
>From gcc-bugs-return-573003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 22:39:39 2017
Return-Path: <gcc-bugs-return-573003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17451 invoked by alias); 22 Aug 2017 22:39: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 17306 invoked by uid 48); 22 Aug 2017 22:39:34 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79585] spurious -Wunused-variable on a pointer with attribute unused in function template
Date: Wed, 23 Aug 2017 01:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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 cf_known_to_fail
Message-ID: <bug-79585-4-Po0ejGu8ic@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79585-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79585-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02562.txt.bz2
Content-length: 626

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79585

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |4.0.1, 8.0

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-573004-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 22:42:49 2017
Return-Path: <gcc-bugs-return-573004-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20291 invoked by alias); 22 Aug 2017 22:42: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 19774 invoked by uid 48); 22 Aug 2017 22:41:55 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 02:07: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81931-4-BXnyP7Uvi0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02563.txt.bz2
Content-length: 185

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #1 from seurer at gcc dot gnu.org ---
I think this may also be causing bootstrap builds of gcc to hang on powerpc64.
>From gcc-bugs-return-573005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 22:44:07 2017
Return-Path: <gcc-bugs-return-573005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21860 invoked by alias); 22 Aug 2017 22:43:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21349 invoked by uid 48); 22 Aug 2017 22:43:22 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused
Date: Wed, 23 Aug 2017 02:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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-79695-4-yhXHG4UhWb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79695-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79695-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02564.txt.bz2
Content-length: 566

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79695

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-573006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 22:49:54 2017
Return-Path: <gcc-bugs-return-573006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39304 invoked by alias); 22 Aug 2017 22:49: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 39208 invoked by uid 48); 22 Aug 2017 22:49:49 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79658] [-Wuninitialized] referencing uninitialized field of POD struct should warn
Date: Wed, 23 Aug 2017 03:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
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: keywords bug_status cf_reconfirmed_on cc blocked everconfirmed
Message-ID: <bug-79658-4-zpxolJh4hx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79658-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79658-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02565.txt.bz2
Content-length: 872

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79658

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
                 CC|                            |egallager at gcc dot gnu.org
             Blocks|                            |24639
     Ever confirmed|0                           |1

--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> ---
confirmed that reproducer v4 warns for f1 and f3 but not f0 or f2.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639
[Bug 24639] [meta-bug] bug to track all Wuninitialized issues
>From gcc-bugs-return-573007-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 22:52:42 2017
Return-Path: <gcc-bugs-return-573007-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50773 invoked by alias); 22 Aug 2017 22:52: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 50696 invoked by uid 48); 22 Aug 2017 22:52:37 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79707] missing -Wunused-result on an unused new expression
Date: Wed, 23 Aug 2017 04:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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-79707-4-lBp6cMLVMS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79707-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79707-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02566.txt.bz2
Content-length: 566

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79707

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-22
                 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-573008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 23:31:46 2017
Return-Path: <gcc-bugs-return-573008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115999 invoked by alias); 22 Aug 2017 23:31: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 115930 invoked by uid 48); 22 Aug 2017 23:31:40 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Wed, 23 Aug 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: go
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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-ZMZmtWAvTT@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-08/txt/msg02567.txt.bz2
Content-length: 185

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
See PR bootstrap/77995 for a similar issue on x86-64/Solaris.
>From gcc-bugs-return-573009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 22 23:46:10 2017
Return-Path: <gcc-bugs-return-573009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12524 invoked by alias); 22 Aug 2017 23:46: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 12451 invoked by uid 48); 22 Aug 2017 23:46:06 -0000
From: "dclarke at blastwave dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Wed, 23 Aug 2017 05:26: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: dclarke at blastwave dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-Io0ZK1JysX@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-08/txt/msg02568.txt.bz2
Content-length: 824

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

--- Comment #8 from Dennis Clarke <dclarke at blastwave dot org> ---
(In reply to Eric Botcazou from comment #7)
> See PR bootstrap/77995 for a similar issue on x86-64/Solaris.

Looks like a distant relation at best. That seemed to have something
to do with complex types and build_complex_type() requiring a second
"named" bool parameter. In the same ballpark perhaps but only as the
ballboy selling hot dogs watching the game. 

My bootstrap of 7.2.0 did complete fine and the testsuite is running. 
I think I shall circle back to 6.4.0 and try a bootstrap with "go" as
an enabled language after stage1 and see what happens. On sparc only.

I could try this on Solaris x86_64 but I don't have any of that around 
and have not seen it in the wild for some years.
>From gcc-bugs-return-573010-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 00:41:50 2017
Return-Path: <gcc-bugs-return-573010-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67890 invoked by alias); 23 Aug 2017 00:41:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64880 invoked by uid 55); 23 Aug 2017 00:41:44 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81296] derived type I/o problem
Date: Wed, 23 Aug 2017 06:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81296-4-EQkUbyLogP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02569.txt.bz2
Content-length: 782

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81296

--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Wed Aug 23 00:41:10 2017
New Revision: 251301

URL: https://gcc.gnu.org/viewcvs?rev=251301&root=gcc&view=rev
Log:
2017-08-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        Backport from trunk
        PR fortran/81296
        * trans-io.c (get_dtio_proc): Add check for format label and set
        formatted flag accordingly. Reorganize the code a little.

        * gfortran.dg/dtio_12.f90: Update test.

Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/trans-io.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/dtio_12.f90
>From gcc-bugs-return-573011-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 00:42:53 2017
Return-Path: <gcc-bugs-return-573011-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119765 invoked by alias); 23 Aug 2017 00:42:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112245 invoked by uid 48); 23 Aug 2017 00:42:47 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81296] derived type I/o problem
Date: Wed, 23 Aug 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: fortran
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81296-4-vbs7vVVIzO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02570.txt.bz2
Content-length: 457

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81296

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Fixed on trunk and 7.3, closing.
>From gcc-bugs-return-573012-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 00:44:59 2017
Return-Path: <gcc-bugs-return-573012-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114959 invoked by alias); 23 Aug 2017 00: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 108821 invoked by uid 48); 23 Aug 2017 00:44:54 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80140] missing -Wignored-attributes on function arguments
Date: Wed, 23 Aug 2017 07:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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-80140-4-KjSGsTUcTn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80140-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80140-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02571.txt.bz2
Content-length: 743

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80140

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed. Also the location info for the one where it does print a
-Wattributes warning could be improved, too, to underline the whole attribute
rather than just a closing parenthesis.
>From gcc-bugs-return-573013-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 00:50:18 2017
Return-Path: <gcc-bugs-return-573013-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8051 invoked by alias); 23 Aug 2017 00:50:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 7898 invoked by uid 48); 23 Aug 2017 00:50:11 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80151] Add a warning to catch implicit string to bool conversion (-Wstring-conversion)
Date: Wed, 23 Aug 2017 07:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-80151-4-qMwi3m1Wux@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80151-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80151-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02572.txt.bz2
Content-length: 1091

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80151

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirming as an enhancement. After adding a missing semicolon to get it to
compile, there's only a warning from -Wunused-but-set-variable:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wwrite-strings -Wconversion
-Wsign-conversion 80151.cc
80151.cc: In function ‘int main()’:
80151.cc:3:7: warning: variable ‘b’ set but not used
[-Wunused-but-set-variable]
  bool b;
       ^
$
>From gcc-bugs-return-573014-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 00:53:16 2017
Return-Path: <gcc-bugs-return-573014-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20863 invoked by alias); 23 Aug 2017 00:53: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 19807 invoked by uid 48); 23 Aug 2017 00:53:10 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80157] Spurious "Wsign-conversion" warning with const, size_t, array.
Date: Wed, 23 Aug 2017 07:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: diagnostic
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: bug_status cc resolution
Message-ID: <bug-80157-4-5das934DZ9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80157-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80157-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02573.txt.bz2
Content-length: 1554

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80157

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Ian Mallett from comment #0)
> Minimal example (compile GCC >= ~6.1 with -Wsign-conversion):
> 
>     #include <cstdlib>
>     bool f(size_t const xy[2], int z) {
>     	return xy[0] + xy[1] < static_cast<size_t>(z);
>     }
> 
> Produces an erroneous warning:
> 
>     <source>: In function 'bool f(const size_t*, int)':
>     <source>:3:25: warning: conversion to 'long unsigned int' from 'int' may
> change the sign of the result [-Wsign-conversion]
>       return xy[0] + xy[1] < static_cast<size_t>(z);
>                              ^~~~~~~~~~~~~~~~~~~~~~
>     Compiler exited with result code 0
> 
> Taking the const out, using unsigned, or passing x and y separately rather
> than as an array resolves the warning.  Doesn't occur on Clang, MSVC, or
> earlier GCC.
> 
> May be related to bug 66170.

I closed that one as a dup of bug 60342 so I'm gonna do likewise with this one,
too. (Just like those two the warning is gone here with gcc8, too)

*** This bug has been marked as a duplicate of bug 60342 ***
>From gcc-bugs-return-573015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 00:53:17 2017
Return-Path: <gcc-bugs-return-573015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21315 invoked by alias); 23 Aug 2017 00:53: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 19963 invoked by uid 48); 23 Aug 2017 00:53:13 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60342] -Wsign-conversion ignores explicit conversion
Date: Wed, 23 Aug 2017 07:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-60342-4-CWwdXpE6C1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02574.txt.bz2
Content-length: 448

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60342

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at geometrian dot com

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 80157 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-573016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 00:58:16 2017
Return-Path: <gcc-bugs-return-573016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110304 invoked by alias); 23 Aug 2017 00:58:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 110150 invoked by uid 48); 23 Aug 2017 00:58:10 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80351] Inconsistent warning for constexpr auto constant when using initializer list (-Wunused-variable)
Date: Wed, 23 Aug 2017 07:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.2.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-80351-4-1ye2w6VhB6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80351-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80351-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02575.txt.bz2
Content-length: 602

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80351

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that it warns where you say it does.
>From gcc-bugs-return-573020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 01:20:53 2017
Return-Path: <gcc-bugs-return-573020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9325 invoked by alias); 23 Aug 2017 01:20: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 9215 invoked by uid 48); 23 Aug 2017 01:20:48 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81924] [5 Regression] ICE: in simplify_binary_operation_1, at simplify-rtx.c:3678 on powerpc64le-linux-gnu
Date: Wed, 23 Aug 2017 08:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.4.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-81924-4-2YqohnjtAl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81924-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81924-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02579.txt.bz2
Content-length: 148

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81924

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe related to PR 68805.
>From gcc-bugs-return-573017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 01:00:50 2017
Return-Path: <gcc-bugs-return-573017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116073 invoked by alias); 23 Aug 2017 01:00: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 115899 invoked by uid 48); 23 Aug 2017 01:00:41 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80518] -Wsuggest-override does not warn about missing override on destructor
Date: Wed, 23 Aug 2017 08:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.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-80518-4-mHNJonBr4w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80518-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80518-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02576.txt.bz2
Content-length: 566

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80518

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-573018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 01:03:46 2017
Return-Path: <gcc-bugs-return-573018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121045 invoked by alias); 23 Aug 2017 01:03: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 120981 invoked by uid 48); 23 Aug 2017 01:03:40 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80598] -Wunused triggers for functions used in uninstantiated templates
Date: Wed, 23 Aug 2017 08:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.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-80598-4-kSbR1FBuDv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80598-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80598-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02577.txt.bz2
Content-length: 694

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80598

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, although I think there might be a duplicate around here somewhere,
the part about uninstantiated templates sounds familiar...
>From gcc-bugs-return-573019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 01:06:16 2017
Return-Path: <gcc-bugs-return-573019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123120 invoked by alias); 23 Aug 2017 01:06: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 123076 invoked by uid 48); 23 Aug 2017 01:06:12 -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, 23 Aug 2017 08:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81907-4-5xVJr0iK9F@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-08/txt/msg02578.txt.bz2
Content-length: 473

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81907

--- Comment #15 from dongkyun.s at samsung dot com ---
> There's nothing in the compiler that explicitly says: use memset for these cores and not for others.  The choice will be down to available instructions and their relative costs.

Agreed, but, I'm just wondering why it has diffrent behavior according by GCC
version with -Os. (It should be same result if the choice is made by their
instructions and costs)
>From gcc-bugs-return-573021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 02:07:57 2017
Return-Path: <gcc-bugs-return-573021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58584 invoked by alias); 23 Aug 2017 02:07: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 34196 invoked by uid 48); 23 Aug 2017 02:07:19 -0000
From: "dclarke at blastwave dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Wed, 23 Aug 2017 08:12: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: dclarke at blastwave dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81926-4-qm6Nv60o0M@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-08/txt/msg02580.txt.bz2
Content-length: 358

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

--- Comment #9 from Dennis Clarke <dclarke at blastwave dot org> ---
If I remove the "go" language from the mix then I get reasonable results : 

https://gcc.gnu.org/ml/gcc-testresults/2017-08/msg02064.html


I will install that and then try again with the "all" languages selection 
after stage1.
>From gcc-bugs-return-573022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 02:24:58 2017
Return-Path: <gcc-bugs-return-573022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79666 invoked by alias); 23 Aug 2017 02:24: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 79579 invoked by uid 48); 23 Aug 2017 02:24:52 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81926] go/parse.o differs between stage2 and stage3 for gcc 7.2.0
Date: Wed, 23 Aug 2017 08:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: component assigned_to
Message-ID: <bug-81926-4-YdLN8gCA37@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-08/txt/msg02581.txt.bz2
Content-length: 475

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|go                          |bootstrap
           Assignee|ian at airs dot com                |unassigned at gcc dot gnu.org

--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Recategorizing.
>From gcc-bugs-return-573023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 03:22:21 2017
Return-Path: <gcc-bugs-return-573023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126925 invoked by alias); 23 Aug 2017 03:22:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126870 invoked by uid 48); 23 Aug 2017 03:22:15 -0000
From: "ldionne.2 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81933] New: [7 Regression] Invalid "constexpr call flows off the end of the function" error
Date: Wed, 23 Aug 2017 08:17: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: 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-81933-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02582.txt.bz2
Content-length: 2426

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81933

            Bug ID: 81933
           Summary: [7 Regression] Invalid "constexpr call flows off the
                    end of the function" error
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ldionne.2 at gmail dot com
  Target Milestone: ---

The following code does not compile with GCC 7, std=c++14:

----------------------------------------------------------------------------
    #include <tuple>

    struct any_udt { };

    template <typename ...Tuples>
    constexpr auto flatten(Tuples ...tuples) {
      auto all = std::make_tuple(tuples...);
      auto flat = std::make_tuple(
        std::get<0>(std::get<1>(all)),
        std::get<0>(std::get<2>(all))
      );
      return flat;
    }

    constexpr auto fail = ::flatten(std::make_tuple(),
                                    std::make_tuple(any_udt{}),
                                    std::make_tuple(any_udt{}));

    int main() { }
----------------------------------------------------------------------------

It triggers the following error:

    foo.cpp:17:59:   in constexpr expansion of 'flatten(Tuples ...) 
      [with Tuples = {std::tuple<>, std::tuple<any_udt>, std::tuple<any_udt>}]
    (std::make_tuple(_Elements&& ...) [with _Elements = {any_udt}](), 
     std::make_tuple(_Elements&& ...) [with _Elements = {any_udt}]())'

    foo.cpp:17:59: error: constexpr call flows off the end of the function
                                     std::make_tuple(any_udt{}));
                                                               ^


Note that the code compiles just fine with GCC 6 and all Clang versions I've
tried, so this looks like a 7 regression.

Working example (GCC 6.3.0, -std=c++14):
https://wandbox.org/permlink/5AjQ50OSxNjJPP8r
Working example (GCC 6.3.0, -std=c++1z):
https://wandbox.org/permlink/dKegxu0QeVXtzObB

Failing example (GCC 7.2.0, -std=c++14):
https://wandbox.org/permlink/hfbI0Ndg5UyCIF9W
Working example (GCC 7.2.0, -std=c++1z):
https://wandbox.org/permlink/Hz1gm6EipU5Ej5jy

Failing example (GCC 8.0.0, -std=c++14):
https://wandbox.org/permlink/jSHOPt8zXosccp8a
Working example (GCC 8.0.0, -std=c++1z):
https://wandbox.org/permlink/Nj7tNIYWu8Ueury7
>From gcc-bugs-return-573024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 04:43:56 2017
Return-Path: <gcc-bugs-return-573024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61502 invoked by alias); 23 Aug 2017 04:43: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 61444 invoked by uid 48); 23 Aug 2017 04:43:51 -0000
From: "dclarke at blastwave dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81934] New: after install of 7.2.0 the libcilkrts.la has extra quote chars in it for dependency_libs
Date: Wed, 23 Aug 2017 08:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dclarke at blastwave 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-81934-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02583.txt.bz2
Content-length: 1588

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81934

            Bug ID: 81934
           Summary: after install of 7.2.0 the libcilkrts.la has extra
                    quote chars in it for dependency_libs
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dclarke at blastwave dot org
  Target Milestone: ---

After installation of gcc 7.2.0 there exists two libtool "dot-la" files both
named libcilkrts.la but for 32-bit and 64-bit as this is sparc. 

Thus : 

    /usr/local/gcc7/lib/libcilkrts.la
        and
    /usr/local/gcc7/lib/sparcv9/libcilkrts.la

They both have extra single quote chars inside the dependency_libs value 
and had to be manually scrubbed out : 

# diff ./gcc7/lib/libcilkrts.la /usr/local/gcc7/lib/libcilkrts.la
20c20
< dependency_libs=' -lpthread /usr/local/gcc7/lib/libstdc++.la'
---
> dependency_libs=' -lpthread '/usr/local/gcc7/lib'/libstdc++.la'

# diff gcc7/lib/sparcv9/libcilkrts.la /usr/local/gcc7/lib/sparcv9/libcilkrts.la
20c20
< dependency_libs=' -lpthread /usr/local/gcc7/lib/sparcv9/libstdc++.la'
---
> dependency_libs=' -lpthread '/usr/local/gcc7/lib/sparcv9'/libstdc++.la'

Not sure how they ended up in there but all the other .la type files seem
fine.

Also, for this bug there is no clear component for "install" and I can not
choose "no component" so I randomly took "tree-optimization".
That will need to be fixed most likely.
>From gcc-bugs-return-573025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 05:06:42 2017
Return-Path: <gcc-bugs-return-573025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50684 invoked by alias); 23 Aug 2017 05:06: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 48318 invoked by uid 48); 23 Aug 2017 05:06:35 -0000
From: "rs2740 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81911] Constant expression from permitted result of a constant expression is not constexpr
Date: Wed, 23 Aug 2017 08:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: rejects-valid
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: cc
Message-ID: <bug-81911-4-RB9gSQVnNN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81911-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81911-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02584.txt.bz2
Content-length: 641

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81911

TC <rs2740 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rs2740 at gmail dot com

--- Comment #1 from TC <rs2740 at gmail dot com> ---
The full-expression of the initialization of c0 includes the lvalue-to-rvalue
conversion on someVar[0], which is not allowed in a core constant expression;
see [expr.const]/2.7. Note that [expr.const]/2.7.1 only applies to complete
objects, which someVar[0] is not (it's a subobject).
>From gcc-bugs-return-573026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 05:26:55 2017
Return-Path: <gcc-bugs-return-573026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103195 invoked by alias); 23 Aug 2017 05:26: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 103137 invoked by uid 48); 23 Aug 2017 05:26:50 -0000
From: "rs2740 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81857] istreambuf_iterator not work as input iterator
Date: Wed, 23 Aug 2017 08:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords:
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: cc
Message-ID: <bug-81857-4-rvk2YKBYaR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81857-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81857-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02585.txt.bz2
Content-length: 547

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81857

TC <rs2740 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rs2740 at gmail dot com

--- Comment #1 from TC <rs2740 at gmail dot com> ---
istreambuf_iterator is specified to call sbumpc() only on increment, not upon
construction; the implementation is as specified.

The copy_n aspect is https://cplusplus.github.io/LWG/issue2471.
>From gcc-bugs-return-573027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 06:40:55 2017
Return-Path: <gcc-bugs-return-573027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72539 invoked by alias); 23 Aug 2017 06:40: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 72462 invoked by uid 48); 23 Aug 2017 06:40:50 -0000
From: "abominable-snowman at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81857] istreambuf_iterator not work as input iterator
Date: Wed, 23 Aug 2017 08:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abominable-snowman 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-81857-4-VW2xS2MTul@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81857-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81857-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02586.txt.bz2
Content-length: 243

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81857

--- Comment #2 from Petr Ovtchenkov <abominable-snowman at yandex dot ru> ---
Related problem: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50119,
commit 1a1dad283 in git's reflection.
>From gcc-bugs-return-573029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 07:43:28 2017
Return-Path: <gcc-bugs-return-573029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94257 invoked by alias); 23 Aug 2017 07:43: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 90547 invoked by uid 48); 23 Aug 2017 07:43:21 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] New: ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 2017 08:28: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: 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-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02588.txt.bz2
Content-length: 2028

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

            Bug ID: 81936
           Summary: ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

There are 172 new ICEs in libgomp testsuite (x86_64 with nvptx offloading):
...
$ grep 'internal compiler error' libgomp.sum | wc -l
172
...

F.i.:
...
FAIL: libgomp.c/pr66714.c (internal compiler error)
...

In more detail:
...
during IPA pass: pure-const
libgomp/testsuite/libgomp.c/pr66714.c: In function 'fn3._omp_fn.1':
libgomp/testsuite/libgomp.c/pr66714.c:17:1: internal compiler error: in
dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
0x9006f6 dwarf2out_die_ref_for_decl
        gcc/dwarf2out.c:5542
0xb9d803 lto_write_tree_1
        gcc/lto-streamer-out.c:422
0xba8977 lto_write_tree
        gcc/lto-streamer-out.c:448
0xba8977 lto_output_tree_1
        gcc/lto-streamer-out.c:482
xba8977 DFS::DFS(output_block*, tree_node*, bool, bool, bool)
        gcc/lto-streamer-out.c:669
0xba8ceb lto_output_tree(output_block*, tree_node*, bool, bool)
        gcc/lto-streamer-out.c:1632
0xfa5db5 streamer_write_chain(output_block*, tree_node*, bool)
        gcc/tree-streamer-out.c:505
0xba5ce6 output_function
        gcc/lto-streamer-out.c:2084
0xba5ce6 lto_output()
        gcc/lto-streamer-out.c:2378
0xc1bb6e write_lto
        gcc/passes.c:2608
0xc1f356 ipa_write_summaries_1
        gcc/passes.c:2672
0xc1f356 ipa_write_summaries()
        gcc/passes.c:2732
0x887464 ipa_passes
        gcc/cgraphunit.c:2376
0x887464 symbol_table::compile()
        gcc/cgraphunit.c:2477
0x889793 symbol_table::finalize_compilation_unit()
        gcc/cgraphunit.c:2631
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
...
>From gcc-bugs-return-573028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 07:40:38 2017
Return-Path: <gcc-bugs-return-573028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103148 invoked by alias); 23 Aug 2017 07:40: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 97886 invoked by uid 48); 23 Aug 2017 07:40:30 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81935] New: [8 Regression] r251260 miscompiles libstdc++ (on ppc64le)
Date: Wed, 23 Aug 2017 08:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget
Message-ID: <bug-81935-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02587.txt.bz2
Content-length: 2485

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81935

            Bug ID: 81935
           Summary: [8 Regression] r251260 miscompiles libstdc++ (on
                    ppc64le)
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: aldyh at gcc dot gnu.org
  Target Milestone: ---
            Target: ppc64le

Since r251260 several programs spin in libstdc++.so.6.0.25.

For example cmake:

-   99.99%     1.59%  cmake    libstdc++.so.6.0.25  [.] __cxa_guard_acquire
   - 98.40% __cxa_guard_acquire
      + 10.87% futex_wait_setup
      + 6.86% gup_pte_range
      + 6.86% get_futex_key
        6.63% fast_exception_return
      + 6.10% drop_futex_key_refs.isra.11
      + 6.09% put_page
      + 4.97% syscall
      + 4.90% _raw_spin_lock
      + 4.86% unlock_page
      + 3.08% __get_user_pages_fast
      + 3.02% system_call_relon_pSeries
      + 2.77% system_call_common
      + 2.57% system_call
      + 2.46% __smp_mb__after_atomic
      + 2.44% syscall_exit_work
      + 2.28% __audit_syscall_exit
      + 2.16% do_futex
      + 2.01% __audit_syscall_entry
      + 1.94% do_syscall_trace_leave
      + 1.42% kfree
      + 1.37% dput
        1.17% ret_from_except_lite
      + 1.10% do_syscall_trace_enter
      + 1.04% mntput
      + 1.01% futex_wait
        0.94% current_kernel_time
      + 0.88% __cxa_guard_acquire
      + 0.87% sys_futex
        0.76% __syscall_error
      + 0.74% hash_futex
      + 0.73% memset
        0.61% path_put
        0.59% get_user_pages_fast
   + 1.59% _dl_start_user
+   99.99%     0.00%  cmake    libstdc++.so.6.0.25  [.]
_GLOBAL__sub_I_compatibility_thread_c__0x.cc
+   99.99%     0.00%  cmake    ld-2.17.so           [.] _dl_init_internal
+   99.99%     0.00%  cmake    ld-2.17.so           [.] _dl_start_user
+   87.27%     0.00%  cmake    libstdc++.so.6.0.25  [.]
std::future_error::future_error
+   23.29%    10.87%  cmake    [kernel.kallsyms]    [k] futex_wait_setup
+   21.54%     2.57%  cmake    [kernel.kallsyms]    [k] system_call
+   18.08%     6.86%  cmake    [kernel.kallsyms]    [k] get_futex_key
+   16.45%     0.87%  cmake    [kernel.kallsyms]    [k] sys_futex
+   15.82%     2.16%  cmake    [kernel.kallsyms]    [k] do_futex

ranlib also spins in the same place.
Reverting the commit "fixes" the problem.
>From gcc-bugs-return-573030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 07:44:16 2017
Return-Path: <gcc-bugs-return-573030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122307 invoked by alias); 23 Aug 2017 07:44:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118534 invoked by uid 48); 23 Aug 2017 07:44:10 -0000
From: "zeccav at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/81937] New: stack-buffer-overflow on memcpy in libgfortran/io/unix.c on character(kind=4)
Date: Wed, 23 Aug 2017 08:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zeccav 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 cf_gcchost cf_gccbuild
Message-ID: <bug-81937-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02589.txt.bz2
Content-length: 6744

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81937

            Bug ID: 81937
           Summary: stack-buffer-overflow on memcpy in
                    libgfortran/io/unix.c on character(kind=4)
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
             Build: trunk 251201

! dtio_14.f90 test case 
! compiled with -fsanitize=address -g
! stack-buffer-overflow on memcpy in libgfortran/io/unix.c on character(kind=4)
MODULE p
  TYPE :: person
    CHARACTER (LEN=20) :: name
    INTEGER(4) :: age
    CONTAINS
      procedure :: pwf
      procedure :: prf
      GENERIC :: WRITE(FORMATTED) => pwf
      GENERIC :: READ(FORMATTED) => prf
  END TYPE person
CONTAINS
  SUBROUTINE pwf (dtv,unit,iotype,vlist,iostat,iomsg)
    CLASS(person), INTENT(IN) :: dtv
    INTEGER, INTENT(IN) :: unit
    CHARACTER (LEN=*), INTENT(IN) :: iotype
    INTEGER, INTENT(IN) :: vlist(:)
    INTEGER, INTENT(OUT) :: iostat
    CHARACTER (LEN=*), INTENT(INOUT) :: iomsg
    WRITE(unit, FMT = *, IOSTAT=iostat) dtv%name, dtv%age
  END SUBROUTINE pwf

  SUBROUTINE prf (dtv,unit,iotype,vlist,iostat,iomsg)
    CLASS(person), INTENT(INOUT) :: dtv
    INTEGER, INTENT(IN) :: unit
    CHARACTER (LEN=*), INTENT(IN) :: iotype
    INTEGER, INTENT(IN) :: vlist(:)
    INTEGER, INTENT(OUT) :: iostat
    CHARACTER (LEN=*), INTENT(INOUT) :: iomsg
    READ (UNIT = UNIT, FMT = *) dtv%name, dtv%age
  END SUBROUTINE prf
END MODULE p

PROGRAM test
  USE p
  TYPE (person) :: chairman, answer
  character(kind=1,len=80) :: str1
  character(kind=4,len=80) :: str4
  str1 = ""
  str4 = 4_""
  chairman%name="Charlie"
  chairman%age=62
  answer = chairman
! KIND=1 test
  write (str1, *) chairman
  if (trim(str1).ne."  Charlie                       62") call abort
  chairman%name="Bogus"
  chairman%age=99
  read (str1, *) chairman
  if (chairman%name.ne.answer%name) call abort
  if (chairman%age.ne.answer%age) call abort
! KIND=4 test
  write (str4, *) chairman
  if (trim(str4).ne.4_"  Charlie                       62") call abort
  chairman%name="Bogus"
  chairman%age=99
  read (str4, *) chairman
  if (chairman%name.ne.answer%name) call abort
  if (chairman%age.ne.answer%age) call abort
END PROGRAM test
!=================================================================
!==4920==ERROR: AddressSanitizer: stack-buffer-overflow on address
0x7fff4c186e30 at pc 0x2ad600909b22 bp 0x7fff4c186170 sp 0x7fff4c185920
!READ of size 4 at 0x7fff4c186e30 thread T0
!    #0 0x2ad600909b21 in __interceptor_memcpy
../../../../gcc/libsanitizer/asan/asan_interceptors.cc:456
!    #1 0x2ad601a5b07b in mem_read4 ../../../gcc/libgfortran/io/unix.c:856
!    #2 0x2ad601a4b9c3 in sread ../../../gcc/libgfortran/io/unix.h:53
!    #3 0x2ad601a4b9c3 in next_char_internal
../../../gcc/libgfortran/io/list_read.c:271
!    #4 0x2ad601a4b3f8 in eat_spaces
../../../gcc/libgfortran/io/list_read.c:420
!    #5 0x2ad601a4b46d in eat_separator
../../../gcc/libgfortran/io/list_read.c:465
!    #6 0x2ad601a4c08a in read_integer
../../../gcc/libgfortran/io/list_read.c:1101
!    #7 0x2ad601a4efda in list_formatted_read_scalar
../../../gcc/libgfortran/io/list_read.c:2168
!    #8 0x2ad601a505f9 in _gfortrani_list_formatted_read
../../../gcc/libgfortran/io/list_read.c:2332
!    #9 0x40164e in __p_MOD_prf
/home/vitti/1tb/vitti/test/gcc/gcc/testsuite/gfortran.dg/p.f90:32
!    #10 0x2ad601a4eefd in list_formatted_read_scalar
../../../gcc/libgfortran/io/list_read.c:2222
!    #11 0x2ad601a505f9 in _gfortrani_list_formatted_read
../../../gcc/libgfortran/io/list_read.c:2332
!    #12 0x40291a in test
/home/vitti/1tb/vitti/test/gcc/gcc/testsuite/gfortran.dg/p.f90:59
!    #13 0x402a8c in main
/home/vitti/1tb/vitti/test/gcc/gcc/testsuite/gfortran.dg/p.f90:37
!    #14 0x2ad60242f509 in __libc_start_main (/usr/lib64/libc.so.6+0x20509)
!    #15 0x4011f9 in _start
(/home/vitti/1tb/vitti/test/gcc-251201/gcc/testsuite/gfortran.dg/a.out+0x4011f9)

!Address 0x7fff4c186e30 is located in stack of thread T0 at offset 992 in frame
!    #0 0x401ad0 in test
/home/vitti/1tb/vitti/test/gcc/gcc/testsuite/gfortran.dg/p.f90:36

!  This frame has 14 object(s):
!    [32, 36) 'len.7'
!    [96, 100) 'len.13'
!    [160, 168) 'pstr.6'
!    [224, 232) 'pstr.12'
!    [288, 304) 'class.5'
!    [352, 368) 'class.9'
!    [416, 432) 'class.11'
!    [480, 496) 'class.15'
!    [544, 624) 'str1'
!    [672, 992) 'str4' <== Memory access at offset 992 overflows this variable
!    [1024, 1504) 'dt_parm.4'
!    [1536, 2016) 'dt_parm.8'
!    [2048, 2528) 'dt_parm.10'
!    [2560, 3040) 'dt_parm.14'
!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
../../../../gcc/libsanitizer/asan/asan_interceptors.cc:456 in
__interceptor_memcpy
!Shadow bytes around the buggy address:
!  0x100069828d70: f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 00 00
!  0x100069828d80: f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 00 00
!  0x100069828d90: 00 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 f2 00 00
!  0x100069828da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
!  0x100069828db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
!=>0x100069828dc0: 00 00 00 00 00 00[f2]f2 f2 f2 00 00 00 00 00 00
!  0x100069828dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
!  0x100069828de0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
!  0x100069828df0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
!  0x100069828e00: 00 00 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00
!  0x100069828e10: 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
!==4920==ABORTING
>From gcc-bugs-return-573031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 07:49:01 2017
Return-Path: <gcc-bugs-return-573031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108938 invoked by alias); 23 Aug 2017 07:49: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 108884 invoked by uid 48); 23 Aug 2017 07:48:55 -0000
From: "zeccav at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/81938] New: valgrind error message and heap-buffer-overflow on address sanitized libgfortran.so
Date: Wed, 23 Aug 2017 08:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zeccav 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 cf_gcchost cf_gccbuild
Message-ID: <bug-81938-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02590.txt.bz2
Content-length: 3492

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81938

            Bug ID: 81938
           Summary: valgrind error message and heap-buffer-overflow on
                    address sanitized libgfortran.so
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
             Build: trunk 251201

! test case fmt_cache_1.f
! compiled with -g
! valgrind error message and heap-buffer-overflow on address sanitized
libgfortran.so
      program astap
      implicit none
      character(34) :: teststring
      real(4) :: arlxca = 0.0
      open(10)
      write(10,40) arlxca
      write(10,40) arlxca
40    format(t4,"arlxca = ",1pg13.6,t27,"arlxcc = ",g13.6,t53,
     .            "atmpca = ",g13.6,t79,"atmpcc = ",g13.6,t105,
     .            "backup = ",g13.6,/,
     .         t4,"csgfac = ",g13.6,t27,"csgmax = ",g13.6,t53,
     .            "csgmin = ",g13.6,t79,"drlxca = ",g13.6,t105,
     .            "drlxcc = ",g13.6,/,
     .         t4,"dtimeh = ",g13.6,t27,"dtimei = ",g13.6,t53,
     .            "dtimel = ",g13.6,t79,"dtimeu = ",g13.6,t105,
     .            "dtmpca = ",g13.6,/,
     .         t4,"dtmpcc = ",g13.6,t27,"ebalna = ",g13.6,t53,
     .            "ebalnc = ",g13.6,t79,"ebalsa = ",g13.6,t105,
     .            "ebalsc = ",g13.6)
      rewind 10
      teststring = ""
      read(10,'(a)') teststring
      if (teststring.ne."   arlxca =   0.00000     arlxcc =")call abort
      teststring = ""
      read(10,'(a)') teststring
      if (teststring.ne."   arlxca =   0.00000     arlxcc =")call abort
      close(10, status='delete')
      end program astap


!==5357== Memcheck, a memory error detector
!==5357== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
!==5357== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
!==5357== Command: ./a.out
!==5357==
!==5357== Invalid read of size 4
!==5357==    at 0x5020044: _gfortrani_free_format_data (format.c:269)
!==5357==    by 0x50200D5: _gfortrani_free_format_hash_table (format.c:68)
!==5357==    by 0x5031789: close_unit_1 (unit.c:787)
!==5357==    by 0x400CBD: MAIN__ (p.f:31)
!==5357==    by 0x400CF4: main (p.f:32)
!==5357==  Address 0x5dbdf30 is 0 bytes after a block of size 4,176 alloc'd
!==5357==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
!==5357==    by 0x4E55404: _gfortrani_xmalloc (memory.c:42)
!==5357==    by 0x50203D2: _gfortrani_parse_format (format.c:1318)
!==5357==    by 0x502F727: data_transfer_init (transfer.c:2791)
!==5357==    by 0x400A0B: MAIN__ (p.f:10)
!==5357==    by 0x400CF4: main (p.f:32)
!==5357==
!==5357==
!==5357== HEAP SUMMARY:
!==5357==     in use at exit: 0 bytes in 0 blocks
!==5357==   total heap usage: 31 allocs, 31 frees, 34,795 bytes allocated
!==5357==
!==5357== All heap blocks were freed -- no leaks are possible
!==5357==
!==5357== For counts of detected and suppressed errors, rerun with: -v
!==5357== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
>From gcc-bugs-return-573032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 07:53:52 2017
Return-Path: <gcc-bugs-return-573032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20529 invoked by alias); 23 Aug 2017 07:53:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20483 invoked by uid 48); 23 Aug 2017 07:53:47 -0000
From: "zeccav at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/81939] New: valgrind error message in build_float_string and heap-buffer-overflow on address sanitized libgfortran.so
Date: Wed, 23 Aug 2017 09:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zeccav 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 cf_gcchost cf_gccbuild
Message-ID: <bug-81939-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02591.txt.bz2
Content-length: 3781

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81939

            Bug ID: 81939
           Summary: valgrind error message in build_float_string and
                    heap-buffer-overflow on address sanitized
                    libgfortran.so
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
             Build: trunk 251201

! must be compiled and run under valgrind 
! test case fmt_f0_2.f90 valgrind error message
! and heap-buffer-overflow on address sanitized libgfortran.so
! also gets MALLOC_CHECK_ error messages
*** Error in `./a.out': free(): invalid pointer: 0x0000000000c63560 ***
*** Error in `./a.out': free(): invalid pointer: 0x0000000000c636a0 ***
*** Error in `./a.out': free(): invalid pointer: 0x0000000000c649f0 ***
      program testbigf0
      use ISO_FORTRAN_ENV
      implicit none
      integer i
      integer,parameter::j(size(real_kinds)+4)=[REAL_KINDS,[4, 4, 4, 4]]
      character(10000) :: str

      do i=1,size(real_kinds)
      select case (i)
      case (1)
       write(str, "(f0.0)") -huge(real(1.0,kind=j(1)))
      case (2)
       write(str, "(f0.0)") -huge(real(1.0,kind=j(2)))
      case (3)
       write(str, "(f0.0)") -huge(real(1.0,kind=j(3)))
      case (4)
       write(str, "(f0.10)") -huge(real(1.0,kind=j(4)))
      end select
      enddo
      end program testbigf0
!==5889== Memcheck, a memory error detector
!==5889== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
!==5889== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
!==5889== Command: ./a.out
!==5889== 
!==5889== Invalid write of size 1
!==5889==    at 0x50359DC: build_float_string (write_float.def:665)
!==5889==    by 0x5036483: get_float_string (write_float.def:1079)
!==5889==    by 0x50376B0: write_float_0 (write.c:1596)
!==5889==    by 0x502EDEC: formatted_transfer_scalar_write (transfer.c:2041)
!==5889==    by 0x502F41C: formatted_transfer (transfer.c:2279)
!==5889==    by 0x40088A: MAIN__ (p.f90:15)
!==5889==    by 0x400A15: main (p.f90:22)
!==5889==  Address 0x5dbcd37 is 0 bytes after a block of size 311 alloc'd
!==5889==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
!==5889==    by 0x4E55404: _gfortrani_xmalloc (memory.c:42)
!==5889==    by 0x5037667: write_float_0 (write.c:1592)
!==5889==    by 0x502EDEC: formatted_transfer_scalar_write (transfer.c:2041)
!==5889==    by 0x502F41C: formatted_transfer (transfer.c:2279)
!==5889==    by 0x40088A: MAIN__ (p.f90:15)
!==5889==    by 0x400A15: main (p.f90:22)
!==5889== 
!==5889== 
!==5889== HEAP SUMMARY:
!==5889==     in use at exit: 4,935 bytes in 1 blocks
!==5889==   total heap usage: 43 allocs, 42 frees, 75,121 bytes allocated
!==5889== 
!==5889== LEAK SUMMARY:
!==5889==    definitely lost: 4,935 bytes in 1 blocks
!==5889==    indirectly lost: 0 bytes in 0 blocks
!==5889==      possibly lost: 0 bytes in 0 blocks
!==5889==    still reachable: 0 bytes in 0 blocks
!==5889==         suppressed: 0 bytes in 0 blocks
!==5889== Rerun with --leak-check=full to see details of leaked memory
!==5889== 
!==5889== For counts of detected and suppressed errors, rerun with: -v
!==5889== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)
>From gcc-bugs-return-573033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 07:56:41 2017
Return-Path: <gcc-bugs-return-573033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81635 invoked by alias); 23 Aug 2017 07:56:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 78308 invoked by uid 48); 23 Aug 2017 07:56:36 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 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: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
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: cc
Message-ID: <bug-81936-4-FDEhwm4BFf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02592.txt.bz2
Content-length: 430

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
ICE observed with r251274, introduced after r251218.
>From gcc-bugs-return-573034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:06:12 2017
Return-Path: <gcc-bugs-return-573034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105156 invoked by alias); 23 Aug 2017 08:06: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 104436 invoked by uid 48); 23 Aug 2017 08:06:07 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Wed, 23 Aug 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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81932-4-wW3tzuK5IY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02593.txt.bz2
Content-length: 493

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-23
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Missing a testcase.
>From gcc-bugs-return-573035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:06:14 2017
Return-Path: <gcc-bugs-return-573035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105351 invoked by alias); 23 Aug 2017 08:06:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 104881 invoked by uid 48); 23 Aug 2017 08:06:08 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81927] [8 regression] Many, many test case failures starting with r251220
Date: Wed, 23 Aug 2017 09:40: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: 8.0
X-Bugzilla-Keywords:
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-81927-4-KNwzNYmExz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81927-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81927-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02594.txt.bz2
Content-length: 492

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81927

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> ---
dup

*** This bug has been marked as a duplicate of bug 81925 ***
>From gcc-bugs-return-573036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:06:14 2017
Return-Path: <gcc-bugs-return-573036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105378 invoked by alias); 23 Aug 2017 08:06:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 104964 invoked by uid 48); 23 Aug 2017 08:06:09 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81925] early lto debug link failure on aarch64_be
Date: Wed, 23 Aug 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: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81925-4-Z1iSYTLcm6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81925-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81925-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02596.txt.bz2
Content-length: 446

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81925

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |seurer at gcc dot gnu.org

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 81927 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-573037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:06:44 2017
Return-Path: <gcc-bugs-return-573037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107343 invoked by alias); 23 Aug 2017 08:06: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 107294 invoked by uid 48); 23 Aug 2017 08:06:40 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81911] Constant expression from permitted result of a constant expression is not constexpr
Date: Wed, 23 Aug 2017 09:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81911-4-ZDtqPa1LQH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81911-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81911-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02595.txt.bz2
Content-length: 456

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81911

Antony Polukhin <antoshkka at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Antony Polukhin <antoshkka at gmail dot com> ---
Thanks for he clarifications!
>From gcc-bugs-return-573038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:12:55 2017
Return-Path: <gcc-bugs-return-573038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113360 invoked by alias); 23 Aug 2017 08:12:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112939 invoked by uid 48); 23 Aug 2017 08:12:14 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 09:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81928-4-OkZo4vMMJU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02597.txt.bz2
Content-length: 728

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-23
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Not sure what you are asking for?  We cannot reject the program, the undefined
behavior only exists when this is NULL at runtime.  We already warn about the
pointless comparison.

Are you asking to optimize the test away even when not optimizing?
>From gcc-bugs-return-573039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:16:59 2017
Return-Path: <gcc-bugs-return-573039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118803 invoked by alias); 23 Aug 2017 08:16: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 118288 invoked by uid 48); 23 Aug 2017 08:16:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 10:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords component target_milestone
Message-ID: <bug-81931-4-x5Tav2xEDc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02598.txt.bz2
Content-length: 530

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
          Component|other                       |middle-end
   Target Milestone|---                         |8.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I can see nothing wrong with the change though.
>From gcc-bugs-return-573040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:17:12 2017
Return-Path: <gcc-bugs-return-573040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119363 invoked by alias); 23 Aug 2017 08:17: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 118602 invoked by uid 48); 23 Aug 2017 08:16:50 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81933] [7/8 Regression] Invalid "constexpr call flows off the end of the function" error
Date: Wed, 23 Aug 2017 10:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority cf_known_to_work target_milestone short_desc cf_known_to_fail
Message-ID: <bug-81933-4-QzfRFM9tlR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81933-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81933-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02599.txt.bz2
Content-length: 801

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81933

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
           Priority|P3                          |P2
      Known to work|                            |6.3.0
   Target Milestone|---                         |7.3
            Summary|[7 Regression] Invalid      |[7/8 Regression] Invalid
                   |"constexpr call flows off   |"constexpr call flows off
                   |the end of the function"    |the end of the function"
                   |error                       |error
      Known to fail|                            |7.2.0, 8.0
>From gcc-bugs-return-573041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:18:47 2017
Return-Path: <gcc-bugs-return-573041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12272 invoked by alias); 23 Aug 2017 08:18: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 11819 invoked by uid 48); 23 Aug 2017 08:18:41 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81935] [8 Regression] r251260 miscompiles libstdc++ (on ppc64le)
Date: Wed, 23 Aug 2017 10:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
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-81935-4-rAlnplbtfI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81935-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81935-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02600.txt.bz2
Content-length: 545

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81935

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 81931 ***
>From gcc-bugs-return-573042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:18:49 2017
Return-Path: <gcc-bugs-return-573042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12831 invoked by alias); 23 Aug 2017 08:18:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12079 invoked by uid 48); 23 Aug 2017 08:18:44 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 10:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81931-4-9XV3YWHS4P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02601.txt.bz2
Content-length: 448

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 81935 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-573043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:20:51 2017
Return-Path: <gcc-bugs-return-573043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19226 invoked by alias); 23 Aug 2017 08:20:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19188 invoked by uid 48); 23 Aug 2017 08:20:46 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 2017 10:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81936-4-MZAXOq6zG1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02602.txt.bz2
Content-length: 161

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
How do I reproduce, aka configure gcc?
>From gcc-bugs-return-573044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:23:39 2017
Return-Path: <gcc-bugs-return-573044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35207 invoked by alias); 23 Aug 2017 08:23: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 35134 invoked by uid 48); 23 Aug 2017 08:23:33 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 11:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher 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-81928-4-CvfGzLZboO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02603.txt.bz2
Content-length: 818

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #2 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
No, I think the optimization is more than correct. 
The warning doesn't warn of the actual problem, if you check against nullptr,
you won't even get a warning. 
Comparing this to anything from Null to nullptr should be an error, not be
silently passed. Some people still think that it is valid because it worked in
the past and because it's a bad anti pattern.
So yes, it should be rejected because it's only point is to compare the pointer
to nullptr, which is not sane. And it must be rejected because gcc in optimized
mode considers this to be always not nullptr, and doesn't even warn that the
expression is thus constant. The user doesn't know that he screwed big time.
>From gcc-bugs-return-573045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:28:50 2017
Return-Path: <gcc-bugs-return-573045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49091 invoked by alias); 23 Aug 2017 08:28:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48193 invoked by uid 48); 23 Aug 2017 08:27:19 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 11:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: 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-81928-4-DYjB6Fhce9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02604.txt.bz2
Content-length: 441

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Matthieu Brucher from comment #2)
> Comparing this to anything from Null to nullptr should be an error, not be
> silently passed.

No, it can't be rejected, because it's valid code. Just like "if (!true)" is
valid code. Just because it's pointless and maybe a mistake or a bug doesn't
mean we can reject it.
>From gcc-bugs-return-573046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:28:54 2017
Return-Path: <gcc-bugs-return-573046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49280 invoked by alias); 23 Aug 2017 08:28: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 49094 invoked by uid 48); 23 Aug 2017 08:28:46 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 2017 11:37: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: openacc, openmp
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:
Message-ID: <bug-81936-4-2eZEZZw4Gc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02605.txt.bz2
Content-length: 846

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
ICE is due to assert:
...
    at gcc/dwarf2out.c:5542
5542      gcc_assert (die->die_tag == DW_TAG_compile_unit
5543                  && die->die_id.die_symbol != NULL);
...

The assert triggers because die->die_id.die_symbol is NULL:
...
(gdb) p die->die_tag
$3 = DW_TAG_compile_unit
(gdb) p die->die_id.die_symbol
$4 = 0x0
...

If we go up we see we're trying to find a die_ref for 'expr':
...
(gdb) up
#7  0x0000000000b9d804 in lto_write_tree_1 (ob=0x2771d30, expr=0x7ffff7521180,
ref_p=Unhandled dwarf expression opcode 0xf3)
    at gcc/lto-streamer-out.c:422
422               && debug_hooks->die_ref_for_decl (expr, &sym, &off))
...

and expr is:
...
(gdb) call debug_generic_expr (expr)
.omp_data_i
...
>From gcc-bugs-return-573047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:56:02 2017
Return-Path: <gcc-bugs-return-573047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87337 invoked by alias); 23 Aug 2017 08:56:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12413 invoked by uid 55); 23 Aug 2017 08:54:09 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 2017 11:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse 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-81936-4-x7xVKEdnE7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02606.txt.bz2
Content-length: 3402

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> How do I reproduce, aka configure gcc?

The ICE is actually in the host compiler, but it doesn't seem to reproduce in a
non-offloading setup.

Host compiler:

OFFLOAD_TARGET_NAMES=nvptx-none
Target: x86_64-none-linux-gnu
Configured with: configure --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-none-linux-gnu --enable-threads --disable-libmudflap
--disable-libstdcxx-pch --disable-multilib --disable-libsanitizer
--disable-libcc1 --enable-checking=yes,rtl --with-gnu-as --with-gnu-ld
--enable-languages=c,c++,fortran --enable-shared --enable-lto  --disable-nls
--prefix=prefix --enable-offload-targets=nvptx-none --with-sysroot=libc
--with-build-sysroot=libc --with-gmp=usr --with-mpfr=usr --with-mpc=usr
--with-isl=usr --with-cuda-driver-include=cuda-runtime/include
--with-cuda-driver-lib=cuda-driver/lib --enable-libgomp --disable-libitm
--enable-libatomic --disable-libssp --disable-libcc1 --with-python-dir=python
--with-build-time-tools=bin

Offloading compiler:

Target: nvptx-none
Configured with: configure --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=nvptx-none --enable-threads --disable-libmudflap
--disable-libstdcxx-pch --disable-multilib --disable-libsanitizer
--disable-libcc1 --enable-checking=yes,rtl --with-gnu-as --with-gnu-ld
--enable-languages=c,c++,fortran --enable-shared --enable-lto --disable-nls
--prefix=prefix --with-headers=yes --enable-languages=c,lto,fortran
--disable-sjlj-exceptions --disable-lto --without-gnu-ld --without-gnu-as
--with-newlib --enable-multilib
--enable-as-accelerator-for=x86_64-none-linux-gnu --with-sysroot=nvptx-none
--with-build-sysroot=nvptx-none --with-gmp=usr --with-mpfr=usr --with-mpc=usr
--with-isl=usr --with-cuda-driver-include=include
--with-cuda-driver-lib=cuda-driver/lib --enable-libgomp --disable-libitm
--disable-libatomic --disable-libssp --disable-libcc1 --with-python-dir=python
--with-build-time-tools=bin

--- Comment #5 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 23 Aug 2017, vries at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936
> 
> --- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
> ICE is due to assert:
> ...
>     at gcc/dwarf2out.c:5542
> 5542      gcc_assert (die->die_tag == DW_TAG_compile_unit
> 5543                  && die->die_id.die_symbol != NULL);
> ...
> 
> The assert triggers because die->die_id.die_symbol is NULL:
> ...
> (gdb) p die->die_tag
> $3 = DW_TAG_compile_unit
> (gdb) p die->die_id.die_symbol
> $4 = 0x0
> ...
> 
> If we go up we see we're trying to find a die_ref for 'expr':
> ...
> (gdb) up
> #7  0x0000000000b9d804 in lto_write_tree_1 (ob=0x2771d30, expr=0x7ffff7521180,
> ref_p=Unhandled dwarf expression opcode 0xf3)
>     at gcc/lto-streamer-out.c:422
> 422               && debug_hooks->die_ref_for_decl (expr, &sym, &off))
> ...
> 
> and expr is:
> ...
> (gdb) call debug_generic_expr (expr)
> .omp_data_i
> ...

The assert says that if we have a DIE at stream-in time then it should
refer to early debug.  What created the DIE for .omp_data_i and/or
what failed to properly set its parent?
>From gcc-bugs-return-573048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 08:56:04 2017
Return-Path: <gcc-bugs-return-573048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89967 invoked by alias); 23 Aug 2017 08:56: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 83404 invoked by uid 48); 23 Aug 2017 08:55:57 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 11:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher 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-81928-4-FtgnCHwWIJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02607.txt.bz2
Content-length: 513

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #4 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
I would agree if the debug and optimized versions had the same behavior. They
do not. As such there should be a huge warning about the undefined behavior. 

And no, it's not valid code, it's an undefined behavior, you can do whatever
you want with it. Outputting an error is a better solution, even adding a
warning is.  Silently optimizing an undefined behavior away is not.
>From gcc-bugs-return-573049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 09:12:45 2017
Return-Path: <gcc-bugs-return-573049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83818 invoked by alias); 23 Aug 2017 09:12:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76326 invoked by uid 48); 23 Aug 2017 09:12:39 -0000
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81940] New: [8 regression] internal compiler error: in dwarf2out_abstract_function, at dwarf2out.c:21613
Date: Wed, 23 Aug 2017 11:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dimhen at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02608.txt.bz2
Content-length: 911

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81940

            Bug ID: 81940
           Summary: [8 regression] internal compiler error: in
                    dwarf2out_abstract_function, at dwarf2out.c:21613
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimhen at gmail dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

r251205 PASS
r251258 FAIL

FAIL : g++ -O -flto x.ii -fpic -DPIC -c    -o x.o && g++ -shared x.o -g -o x.so
PASS : g++    -flto x.ii -fpic -DPIC -c    -o x.o && g++ -shared x.o -g -o x.so
PASS : g++ -O -flto x.ii -fpic -DPIC -c -g -o x.o && g++ -shared x.o -g -o x.so
PASS : g++ -O -flto x.ii -fpic -DPIC                     -shared -g -o x.so

I 'll try to reduce testcase
>From gcc-bugs-return-573050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 09:14:58 2017
Return-Path: <gcc-bugs-return-573050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2687 invoked by alias); 23 Aug 2017 09:14: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 2616 invoked by uid 48); 23 Aug 2017 09:14:52 -0000
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81940] [8 regression] internal compiler error: in dwarf2out_abstract_function, at dwarf2out.c:21613
Date: Wed, 23 Aug 2017 11:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dimhen 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-81940-4-vRv5T6e206@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02609.txt.bz2
Content-length: 1911

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81940

--- Comment #1 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
$ g++ -fpreprocessed -Werror -Wall -Wextra -flto -O -std=c++98 x.ii -fpic -DPIC
-c -o x.o && g++  -shared x.o -g -flto -o x.so
during IPA pass: inline
/home/dimhen/src/CSPbuild/ipsec/esp/esp_init.cpp: In function
‘cpesp_init_gost’:
/home/dimhen/src/CSPbuild/ipsec/esp/esp_init.cpp:341:10: internal compiler
error: in dwarf2out_abstract_function, at dwarf2out.c:21871
     espIn(h, in);
          ^
0xac1312 dwarf2out_abstract_function
        /home/dimhen/src/gcc_current/gcc/dwarf2out.c:21871
0x6ebba6 expand_call_inline
        /home/dimhen/src/gcc_current/gcc/tree-inline.c:4924
0x6eccb7 gimple_expand_calls_inline
        /home/dimhen/src/gcc_current/gcc/tree-inline.c:4954
0x6eccb7 optimize_inline_calls(tree_node*)
        /home/dimhen/src/gcc_current/gcc/tree-inline.c:5094
0x15ab13c inline_transform(cgraph_node*)
        /home/dimhen/src/gcc_current/gcc/ipa-inline-transform.c:705
0x67c9ee execute_one_ipa_transform_pass
        /home/dimhen/src/gcc_current/gcc/passes.c:2237
0x67c9ee execute_all_ipa_transforms()
        /home/dimhen/src/gcc_current/gcc/passes.c:2279
0xa69a4f cgraph_node::expand()
        /home/dimhen/src/gcc_current/gcc/cgraphunit.c:2047
0xa6ab80 expand_all_functions
        /home/dimhen/src/gcc_current/gcc/cgraphunit.c:2190
0xa6ab80 symbol_table::compile()
        /home/dimhen/src/gcc_current/gcc/cgraphunit.c:2542
0x9daf14 lto_main()
        /home/dimhen/src/gcc_current/gcc/lto/lto.c:3340
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: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
>From gcc-bugs-return-573051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 09:37:05 2017
Return-Path: <gcc-bugs-return-573051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73845 invoked by alias); 23 Aug 2017 09:37: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 73778 invoked by uid 48); 23 Aug 2017 09:37:00 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81941] New: Rejects intrinsic use
Date: Wed, 23 Aug 2017 11:53: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: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget
Message-ID: <bug-81941-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02610.txt.bz2
Content-length: 1282

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81941

            Bug ID: 81941
           Summary: Rejects intrinsic use
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
                CC: uros at gcc dot gnu.org
  Target Milestone: ---
            Target: i?86-*-*

#include <xmmintrin.h>

void __attribute__((target("fpmath=sse","sse"))) foo (float *x)
{
  volatile __m128 y = _mm_loadu_ps (x);
}

is rejected as

> gcc-7 -S t.c -m32 -march=i586
In file included from t.c:1:0:
t.c: In function ‘foo’:
/usr/lib64/gcc/x86_64-suse-linux/7/include/xmmintrin.h:932:1: error: inlining
failed in call to always_inline ‘_mm_loadu_ps’: target specific option mismatch
 _mm_loadu_ps (float const *__P)
 ^~~~~~~~~~~~
t.c:5:23: note: called from here
   volatile __m128 y = _mm_loadu_ps (x);
                       ^~~~~~~~~~~~~~~~

it works with target("fpmath=sse+387","sse").  I suppose the inlining check
should allow inlining if there's a common subset of fpmath rather than
an exact match only.
>From gcc-bugs-return-573052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 09:40:01 2017
Return-Path: <gcc-bugs-return-573052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79540 invoked by alias); 23 Aug 2017 09:40: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 79475 invoked by uid 48); 23 Aug 2017 09:39:56 -0000
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81940] [8 regression] internal compiler error: in dwarf2out_abstract_function, at dwarf2out.c:21613
Date: Wed, 23 Aug 2017 11:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dimhen 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-81940-4-qnCsWyq0AG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02611.txt.bz2
Content-length: 151

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81940

--- Comment #2 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
$ cat x.ii
int a, b = a;
>From gcc-bugs-return-573053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 09:42:43 2017
Return-Path: <gcc-bugs-return-573053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84450 invoked by alias); 23 Aug 2017 09:42:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84385 invoked by uid 48); 23 Aug 2017 09:42:38 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81941] Rejects intrinsic use
Date: Wed, 23 Aug 2017 12:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81941-4-otx6gFu4R8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81941-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81941-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02612.txt.bz2
Content-length: 627

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81941

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Alternatively:

> gcc-7 -S t.c -m32 -mno-sse 
In file included from t.c:1:0:
t.c: In function ‘foo’:
/usr/lib64/gcc/x86_64-suse-linux/7/include/xmmintrin.h:932:1: error: inlining
failed in call to always_inline ‘_mm_loadu_ps’: target specific option mismatch
 _mm_loadu_ps (float const *__P)
 ^~~~~~~~~~~~
t.c:5:23: note: called from here
   volatile __m128 y = _mm_loadu_ps (x);
                       ^~~~~~~~~~~~~~~~

vs. accepted:

> gcc-7 -S t.c -mno-sse 
>
>From gcc-bugs-return-573054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 09:42:45 2017
Return-Path: <gcc-bugs-return-573054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84724 invoked by alias); 23 Aug 2017 09:42: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 84418 invoked by uid 48); 23 Aug 2017 09:42:41 -0000
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81940] [8 regression] internal compiler error: in dwarf2out_abstract_function, at dwarf2out.c:21613
Date: Wed, 23 Aug 2017 12:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dimhen 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-81940-4-9Tjn801SRs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02613.txt.bz2
Content-length: 137

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81940

--- Comment #3 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
r251301 FAIL
>From gcc-bugs-return-573055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 09:52:56 2017
Return-Path: <gcc-bugs-return-573055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119970 invoked by alias); 23 Aug 2017 09:52: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 119742 invoked by uid 48); 23 Aug 2017 09:52:50 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81942] New: ICE on empty constexpr constructor with C++14
Date: Wed, 23 Aug 2017 12:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-invalid-code
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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-81942-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02614.txt.bz2
Content-length: 2267

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81942

            Bug ID: 81942
           Summary: ICE on empty constexpr constructor with C++14
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thopre01 at gcc dot gnu.org
  Target Milestone: ---
            Target: arm-none-eabi

Hi,

The following testcase ICEs on arm-none-eabi targets when compiled for C++14:

** foo.cc **

class A {
public:
    constexpr A() {
        return;
    }
};

A mwi;


%arm-none-eabi-gcc -c -std=c++14 foo.cc

foo.cc:8:3:   in constexpr expansion of 'mwi.A::A()'
foo.cc:8:3: internal compiler error: in cxx_eval_constant_expression, at
cp/constexpr.c:4556
 A mwi;
   ^~~
0x83d1f1 cxx_eval_constant_expression
        gcc/cp/constexpr.c:4556
0x839e25 cxx_eval_statement_list
        gcc/cp/constexpr.c:3770
0x83cdc8 cxx_eval_constant_expression
        gcc/cp/constexpr.c:4497
0x83ce47 cxx_eval_constant_expression
        gcc/cp/constexpr.c:4503
0x839e25 cxx_eval_statement_list
        gcc/cp/constexpr.c:3770
0x83cdc8 cxx_eval_constant_expression
        gcc/cp/constexpr.c:4497
0x830d1b cxx_eval_call_expression
        gcc/cp/constexpr.c:1661
0x83ae52 cxx_eval_constant_expression
        gcc/cp/constexpr.c:4035
0x83d7ec cxx_eval_outermost_constant_expr
        gcc/cp/constexpr.c:4668
0x83ea0a maybe_constant_init(tree_node*, tree_node*)
        gcc/cp/constexpr.c:4990
0x90602e expand_default_init
        gcc/cp/init.c:1869
0x90655a expand_aggr_init_1
        gcc/cp/init.c:1972
0x905264 build_aggr_init(tree_node*, tree_node*, int, int)
        gcc/cp/init.c:1713
0x899e1d build_aggr_init_full_exprs
        gcc/cp/decl.c:6094
0x89ac40 check_initializer
        gcc/cp/decl.c:6242
0x89e482 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        gcc/cp/decl.c:6961
0x992889 cp_parser_init_declarator
        gcc/cp/parser.c:19674
0x985cd0 cp_parser_simple_declaration
        gcc/cp/parser.c:13059
0x9857dc cp_parser_block_declaration
        gcc/cp/parser.c:12877
0x98553b cp_parser_declaration
        gcc/cp/parser.c:12774

Best regards.
>From gcc-bugs-return-573056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 10:17:25 2017
Return-Path: <gcc-bugs-return-573056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48288 invoked by alias); 23 Aug 2017 10:17: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 48079 invoked by uid 48); 23 Aug 2017 10:17:14 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 2017 12:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
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:
Message-ID: <bug-81936-4-XauD3adQDQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02615.txt.bz2
Content-length: 554

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
> what failed to properly set its parent?

dwarf2out_early_finish contains:
...
  /* Do not generate DWARF assembler now when not producing LTO bytecode.  */
  if (!flag_generate_lto)
    return;
...
and this is triggered, so we never get to:
...
  /* Stick a unique symbol to the main debuginfo section.  */
  compute_comp_unit_symbol (comp_unit_die ());
...

The if condition should probably test for flag_generate_offload as well.
>From gcc-bugs-return-573057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 10:20:49 2017
Return-Path: <gcc-bugs-return-573057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56976 invoked by alias); 23 Aug 2017 10:20: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 56782 invoked by uid 55); 23 Aug 2017 10:20:42 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 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: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse 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-81936-4-6Cdjpx74Nd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02616.txt.bz2
Content-length: 981

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 23 Aug 2017, vries at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936
> 
> --- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
> > what failed to properly set its parent?
> 
> dwarf2out_early_finish contains:
> ...
>   /* Do not generate DWARF assembler now when not producing LTO bytecode.  */
>   if (!flag_generate_lto)
>     return;
> ...
> and this is triggered, so we never get to:
> ...
>   /* Stick a unique symbol to the main debuginfo section.  */
>   compute_comp_unit_symbol (comp_unit_die ());
> ...
> 
> The if condition should probably test for flag_generate_offload as well.

Ah, yeah.  And we can have both, right?  So we'd either need a separate
set of early debug sections or use a combined for both (this is what
will happen if you add && !flag_generate_offload I guess).
>From gcc-bugs-return-573058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 10:22:34 2017
Return-Path: <gcc-bugs-return-573058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85018 invoked by alias); 23 Aug 2017 10:22: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 75997 invoked by uid 48); 23 Aug 2017 10:22:27 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh at gcc dot gnu.org
X-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-81931-4-KVIxTfIAPW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02617.txt.bz2
Content-length: 923

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
On gcc110.fsffrance.org, I see gcc.dg/atomic/c11-atomic-exec-1.c failing with
an execution error with a simple stage1 compiler.  Perhaps this is a different
problem, but it can be distilled to:

int
main (void)
{
  static volatile _Atomic (_Complex float) var = (_Complex float) 1;
  if (var != (_Complex float) 1)
    __builtin_abort ();
}

With the wide-int.h patch on trunk, the .ccp1 dump looks broken, as it's
unconditionally calling the abort:

main ()
{
  static atomic volatile complex float var = __complex__ (1.0e+0, 0.0);
  complex float D.2549;
  long unsigned int _1;

  <bb 2> [0.00%] [count: INV]:
  _1 = __atomic_load_8 (&var, 5);
  _9 = __complex__ (0.0, 0.0);
  __builtin_abort ();
}

Interestingly, I cannot reproduce this with a cross build from x86-64, only
natively.
>From gcc-bugs-return-573059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 10:35:37 2017
Return-Path: <gcc-bugs-return-573059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38386 invoked by alias); 23 Aug 2017 10:35:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 38273 invoked by uid 48); 23 Aug 2017 10:35:31 -0000
From: "blaffablaffa at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81943] New: Wrong ABI in class methods returning structs for the Windows amd64 target
Date: Wed, 23 Aug 2017 12:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: blaffablaffa 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-81943-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02618.txt.bz2
Content-length: 3431

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81943

            Bug ID: 81943
           Summary: Wrong ABI in class methods returning structs for the
                    Windows amd64 target
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: blaffablaffa at gmail dot com
  Target Milestone: ---

test case:


        struct retstruct{
                int a;
        };

        struct badABI{
                retstruct f(int arg){
                        retstruct ret;
                        ret.a = arg;
                        arg++;
                        return ret;
                }
        };

        int main(){
                badABI test;
                auto testret = test.f(234);
        };


g++ assembly output (x86_64-w64-mingw32-g++ -S -std=c++11 -o main.S main.cpp)
around the badABI::f call:


        leaq    -1(%rbp), %rax
        movl    $234, %edx      #2nd arg, int
        movq    %rax, %rcx      #1st arg, this pointer
        call    _ZN6badABI1fEi
        movl    %eax, -8(%rbp)  #returned struct in eax


cl.exe (version 19, Visual Studio 2017) output:


        mov      r8d, 234   ; 000000eaH         #3rd argument, int
        lea      rdx, QWORD PTR testret$[rsp]   #2nd argument, return buffer
        lea      rcx, QWORD PTR test$[rsp]      #1st argument, this pointer
        call     badABI::f


Note that this is not fixed by -fpcc-struct-return, because the this pointer
and the hidden return struct buffer pointer are inverted:


        leaq    -8(%rbp), %rax
        leaq    -1(%rbp), %rdx  #2nd argument, this pointer
        movl    $234, %r8d      #3rd argument, int
        movq    %rax, %rcx      #1st argument, return buffer
        call    _ZN6badABI1fEi


As far as I know this last convention isn't used anywhere on windows, so it's
completely wrong. On the other hand, the first convention appears to follow the
specifications for small struct returns
(https://msdn.microsoft.com/en-us/library/7572ztz4(v=vs.120).aspx), but I can't
explain why the latest cl.exe does not appear to use it.



There are projects where this discrepancy has been taken into account, the one
I know of is https://github.com/SteamRE/open-steamworks : it is a reverse
engineering of the Steamworks SDK (started when it wasn't public), and they
have a number of instances (see for example
https://github.com/SteamRE/open-steamworks/blob/master/Open%20Steamworks/ISteamUser017.h#L44
macro STEAMWORKS_STRUCT_RETURN_0) where the return of structs is fixed by
actually returning void and passing a reference to the return buffer.



clang appears to emit the right assembly when using -cc1 -triplet
x86_64-pc-windows-msvc18.0.0 (default of clang-cl):


        leaq    48(%rsp), %rcx  #1st argument, this pointer
        leaq    40(%rsp), %rdx  #2nd argument, return buffer
        movl    $234, %r8d      #3rd argument, int
        callq   "?f@badABI@@QEAA?AUretstruct@@H@Z"


excerpt of badABI::f:


        movq    %rdx, %rax      #return buffer pointer in rax (correct as per
microsoft ABI)
        movl    %r8d, 12(%rsp)
        movq    %rcx, (%rsp)
        movl    12(%rsp), %r8d
        movl    %r8d, (%rdx)
        movl    12(%rsp), %r8d
        addl    $1, %r8d
        movl    %r8d, 12(%rsp)
>From gcc-bugs-return-573060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 10:55:22 2017
Return-Path: <gcc-bugs-return-573060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88903 invoked by alias); 23 Aug 2017 10:55:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85299 invoked by uid 48); 23 Aug 2017 10:55:17 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 12:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81931-4-FzlPi58yvS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02619.txt.bz2
Content-length: 163

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #5 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Confirmed with that testcase, thanks!
>From gcc-bugs-return-573061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 11:33:27 2017
Return-Path: <gcc-bugs-return-573061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51789 invoked by alias); 23 Aug 2017 11:33: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 51703 invoked by uid 55); 23 Aug 2017 11:33:22 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/19706] Recognize common Fortran usages of copysign.
Date: Wed, 23 Aug 2017 13:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tnfchris at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-19706-4-EM87mHVY8B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19706-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19706-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02620.txt.bz2
Content-length: 515

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19706

--- Comment #6 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Author: tnfchris
Date: Wed Aug 23 11:32:47 2017
New Revision: 251303

URL: https://gcc.gnu.org/viewcvs?rev=251303&root=gcc&view=rev
Log:
2017-08-23  Tamar Christina  <tamar.christina@arm.com>

        PR middle-end/19706
        * tree-ssa-math-opts.c (convert_expand_mult_copysign):
        Fix single-use check.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-math-opts.c
>From gcc-bugs-return-573062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 11:35:37 2017
Return-Path: <gcc-bugs-return-573062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54160 invoked by alias); 23 Aug 2017 11:35:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 54070 invoked by uid 55); 23 Aug 2017 11:35:32 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/19706] Recognize common Fortran usages of copysign.
Date: Wed, 23 Aug 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: middle-end
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tnfchris at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-19706-4-gAsunlqCui@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19706-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19706-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02621.txt.bz2
Content-length: 805

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19706

--- Comment #7 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Author: tnfchris
Date: Wed Aug 23 11:34:59 2017
New Revision: 251304

URL: https://gcc.gnu.org/viewcvs?rev=251304&root=gcc&view=rev
Log:
2017-08-23  Tamar Christina  <tamar.christina@arm.com>

        PR middle-end/19706
        * doc/sourcebuild.texi (Other hardware attributes):
        Document xorsign.


gcc/testsuite
2017-08-23  Tamar Christina  <tamar.christina@arm.com>

        PR middle-end/19706
        * gcc.dg/tree-ssa/pr19706.c: New.
        * lib/target-supports.exp (check_effective_target_xorsign): New.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/sourcebuild.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/lib/target-supports.exp
>From gcc-bugs-return-573063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 11:37:02 2017
Return-Path: <gcc-bugs-return-573063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55809 invoked by alias); 23 Aug 2017 11:37: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 55699 invoked by uid 48); 23 Aug 2017 11:36:58 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 13:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh at gcc dot gnu.org
X-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-81931-4-fUUykHaWiL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02622.txt.bz2
Content-length: 1314

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
The problem here is that get_nonzero_bits() is being called with an SSA whose
precision is 0 (_Complex float).  This is causing this code in
get_nonzero_bits():

  range_info_def *ri = SSA_NAME_RANGE_INFO (name);
  if (!ri)
    return wi::shwi (-1, precision);

...to return a wide int of:

(gdb) p nonzero_bits.dump()
[0], precision = 0

whereas previous to the aforementioned patch, we were returning:

(gdb) p nonzero_bits.dump()
[0xffffffffffffffff], precision = 0

This discrepancy is causing the CCP code to think a value is a known constant,
instead of a VARYING:

  if (flag_tree_bit_ccp
      && ((is_constant && TREE_CODE (val.value) == INTEGER_CST)
          || !is_constant)
      && gimple_get_lhs (stmt)
      && TREE_CODE (gimple_get_lhs (stmt)) == SSA_NAME)
    {
      tree lhs = gimple_get_lhs (stmt);
      wide_int nonzero_bits = get_nonzero_bits (lhs);
      if (nonzero_bits != -1)
        {
          if (!is_constant)
...

nonzero_bits is no longer equal to -1, so we think we have a known value.

IMO, a precision of 0 makes no sense.  Perhaps we should even hard fail in
get_nonzero_bits for this case, and have all callers fix their nonsense.
>From gcc-bugs-return-573064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 11:47:35 2017
Return-Path: <gcc-bugs-return-573064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127074 invoked by alias); 23 Aug 2017 11:47: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 126975 invoked by uid 48); 23 Aug 2017 11:47:30 -0000
From: "psmith at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Wed, 23 Aug 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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: psmith at gnu dot org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81932-4-QFC6EonvJq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02623.txt.bz2
Content-length: 224

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #2 from Paul Smith <psmith at gnu dot org> ---
Created attachment 42029
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42029&action=edit
tvtest.cpp
>From gcc-bugs-return-573065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 11:48:44 2017
Return-Path: <gcc-bugs-return-573065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128182 invoked by alias); 23 Aug 2017 11:48:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127994 invoked by uid 48); 23 Aug 2017 11:47:58 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79890] ICE in s390_initial_elimination_offset, at config/s390/s390.c:10430
Date: Wed, 23 Aug 2017 13:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: CLOSED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: krebbel at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-79890-4-ENltza6aTD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79890-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79890-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02624.txt.bz2
Content-length: 375

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79890

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #9 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Closing
>From gcc-bugs-return-573066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 11:49:10 2017
Return-Path: <gcc-bugs-return-573066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129891 invoked by alias); 23 Aug 2017 11:49:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 129745 invoked by uid 48); 23 Aug 2017 11:49:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 13:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81931-4-8Gds0fEyml@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02625.txt.bz2
Content-length: 1996

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #6)
> The problem here is that get_nonzero_bits() is being called with an SSA
> whose precision is 0 (_Complex float).  This is causing this code in
> get_nonzero_bits():
> 
>   range_info_def *ri = SSA_NAME_RANGE_INFO (name);
>   if (!ri)
>     return wi::shwi (-1, precision);
> 
> ...to return a wide int of:
> 
> (gdb) p nonzero_bits.dump()
> [0], precision = 0
> 
> whereas previous to the aforementioned patch, we were returning:
> 
> (gdb) p nonzero_bits.dump()
> [0xffffffffffffffff], precision = 0
> 
> This discrepancy is causing the CCP code to think a value is a known
> constant, instead of a VARYING:
> 
>   if (flag_tree_bit_ccp
>       && ((is_constant && TREE_CODE (val.value) == INTEGER_CST)
> 	  || !is_constant)
>       && gimple_get_lhs (stmt)
>       && TREE_CODE (gimple_get_lhs (stmt)) == SSA_NAME)
>     {
>       tree lhs = gimple_get_lhs (stmt);
>       wide_int nonzero_bits = get_nonzero_bits (lhs);
>       if (nonzero_bits != -1)
> 	{
> 	  if (!is_constant)
> ...
> 
> nonzero_bits is no longer equal to -1, so we think we have a known value.
> 
> IMO, a precision of 0 makes no sense.  Perhaps we should even hard fail in
> get_nonzero_bits for this case, and have all callers fix their nonsense.

Yeah, we do assert we are not passed a POINTER_TYPE but in reality in addition
to that we only may look at INTEGRAL_TYPE_P types.

So -- assert that in *_range_info and *nonzero_bits and fix callers.  Oh,
I think nonzero_bits can handle POINTER_TYPEs just fine.

I suppose the idea was to make nonzero_bits foolproof.  And -1 being
sign-extended should be fine... unless precision is 0 ;)

So, in nonzero_bits use TYPE_PRECISION only for INTEGRAL_TYPE_P and
POINTER_TYPE_P but for other types use TYPE_SIZE (or some arbitrary
nonzero precision?  BITS_PER_UNIT?).
>From gcc-bugs-return-573067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 11:51:10 2017
Return-Path: <gcc-bugs-return-573067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1160 invoked by alias); 23 Aug 2017 11:51: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 1112 invoked by uid 48); 23 Aug 2017 11:51:04 -0000
From: "psmith at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Wed, 23 Aug 2017 13: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: psmith at gnu dot org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81932-4-jkDO28GH6J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02626.txt.bz2
Content-length: 1274

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #3 from Paul Smith <psmith at gnu dot org> ---
Created attachment 42030
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42030&action=edit
tv.py

Test case attached.  To run it:

$ gcc -ggdb3 -o tvtest tvtest.cpp

$ gdb tvtest -ex 'br 28' -ex 'source tv.py' -ex 'run' -ex 'p $tv(tv)'
  ...
Reading symbols from tvtest...done.
Breakpoint 1 at 0x400804: file tvtest.cpp, line 28.
Starting program: /home/psmith/src/gcc/tvtest 

Breakpoint 1, main (argc=1, argv=0x7fffffffe758) at tvtest.cpp:28
28          return tv.tree->_depth;
vector: TreeVector<int, 2>
tree: TreeVector<int, 2>::Tree *
warning: RTTI symbol not found for class 'TreeVector<int, 2u>::Tree'
depth: 3
Python Exception <class 'gdb.error'> No type named TreeVector<int, 2u>::Tree.: 
Error occurred in Python convenience function: No type named TreeVector<int,
2u>::Tree.
(gdb) 


If you build with GCC 6.2 instead, it will work fine.

Note, I'm not sure whether the old type containing "2u" is right and the new
one is wrong or vice versa, but there's definitely a problem in that in the new
one we see "2" in the type but something in the debug symbols is still looking
for "2u" as evidenced by the RTTI symbol warning.
>From gcc-bugs-return-573068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 11:53:54 2017
Return-Path: <gcc-bugs-return-573068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29720 invoked by alias); 23 Aug 2017 11:53: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 29646 invoked by uid 48); 23 Aug 2017 11:53:50 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81940] [8 regression] internal compiler error: in dwarf2out_abstract_function, at dwarf2out.c:21613
Date: Wed, 23 Aug 2017 13:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
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 target_milestone everconfirmed
Message-ID: <bug-81940-4-HQoqFSCuZf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02627.txt.bz2
Content-length: 622

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81940

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-23
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-573069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 11:54:37 2017
Return-Path: <gcc-bugs-return-573069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31169 invoked by alias); 23 Aug 2017 11:54: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 31089 invoked by uid 48); 23 Aug 2017 11:54:32 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 13:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh at gcc dot gnu.org
X-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-81931-4-I03yKfSaQD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02628.txt.bz2
Content-length: 614

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #8 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
FWIW, the reason a cross x86-64 to ppc64 doesn't exhibit the problem may be
because 

wi::shwi (-1, precision) calls sext_hwi() which eventually shifts left by 64
bits:

      int shift = HOST_BITS_PER_WIDE_INT - prec;
      return ((HOST_WIDE_INT) ((unsigned HOST_WIDE_INT) src << shift)) >>
shift;

AFAIK, shifting left by the entire width of a type is undefined, and I am
definitely seeing the above return instruction yield two different things on
x86-64 (0) than on ppc64 native (-1).
>From gcc-bugs-return-573070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 12:01:50 2017
Return-Path: <gcc-bugs-return-573070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108331 invoked by alias); 23 Aug 2017 12:01:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 78900 invoked by uid 48); 23 Aug 2017 12:01:31 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81940] [8 regression] internal compiler error: in dwarf2out_abstract_function, at dwarf2out.c:21613
Date: Wed, 23 Aug 2017 13:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81940-4-acoE4Co5qL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02629.txt.bz2
Content-length: 1113

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81940

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ok, so we have no early debug but enable late debug.  I suppose at some point
we want to have -g vs. -g0 set per function.

Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c     (revision 251275)
+++ gcc/dwarf2out.c     (working copy)
@@ -21609,7 +21578,10 @@ dwarf2out_abstract_function (tree decl)
     return;

   old_die = lookup_decl_die (decl);
-  /* With early debug we always have an old DIE.  */
+  /* With early debug we always have an old DIE unless we are in LTO
+     and the user did not compile but only link with debug.  */
+  if (in_lto_p && ! old_die)
+    return;
   gcc_assert (old_die != NULL);
   if (get_AT (old_die, DW_AT_inline)
       || get_AT (old_die, DW_AT_abstract_origin))

mixing -g0 at compile-time with -g at link time might uncover more surprises.
>From gcc-bugs-return-573071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 12:03:32 2017
Return-Path: <gcc-bugs-return-573071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31401 invoked by alias); 23 Aug 2017 12: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 26695 invoked by uid 48); 23 Aug 2017 12:03:27 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 13:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh at gcc dot gnu.org
X-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-81931-4-wEhga1YBNW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02630.txt.bz2
Content-length: 1017

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #9 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #7)

> I suppose the idea was to make nonzero_bits foolproof.  And -1 being
> sign-extended should be fine... unless precision is 0 ;)
> 
> So, in nonzero_bits use TYPE_PRECISION only for INTEGRAL_TYPE_P and
> POINTER_TYPE_P but for other types use TYPE_SIZE (or some arbitrary
> nonzero precision?  BITS_PER_UNIT?).

Fixes testcase.  Untested otherwise.

diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c
index 676c806..04a30b8 100644
--- a/gcc/tree-ssanames.c
+++ b/gcc/tree-ssanames.c
@@ -470,7 +470,7 @@ get_nonzero_bits (const_tree name)
   if (TREE_CODE (name) == INTEGER_CST)
     return name;

-  unsigned int precision = TYPE_PRECISION (TREE_TYPE (name));
+  unsigned int precision = element_precision (TREE_TYPE (name));
   if (POINTER_TYPE_P (TREE_TYPE (name)))
     {
       struct ptr_info_def *pi = SSA_NAME_PTR_INFO (name);
>From gcc-bugs-return-573073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 12:11:50 2017
Return-Path: <gcc-bugs-return-573073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33322 invoked by alias); 23 Aug 2017 12:11: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 33063 invoked by uid 55); 23 Aug 2017 12:11:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81940] [8 regression] internal compiler error: in dwarf2out_abstract_function, at dwarf2out.c:21613
Date: Wed, 23 Aug 2017 13:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81940-4-VtvYsQmQC4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02632.txt.bz2
Content-length: 630

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81940

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Aug 23 12:11:03 2017
New Revision: 251306

URL: https://gcc.gnu.org/viewcvs?rev=251306&root=gcc&view=rev
Log:
2017-08-23  Richard Biener  <rguenther@suse.de>

        PR lto/81940
        * dwarf2out.c (dwarf2out_abstract_function): Handle LTO with
        -g0 at compile-time.

        * g++.dg/lto/pr81940_0.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/lto/pr81940_0.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-573072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 12:08:14 2017
Return-Path: <gcc-bugs-return-573072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95180 invoked by alias); 23 Aug 2017 12:08: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 95128 invoked by uid 48); 23 Aug 2017 12:08:09 -0000
From: "alexbaroni68 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81944] New: constexpr std::distance
Date: Wed, 23 Aug 2017 13:51: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: alexbaroni68 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-81944-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02631.txt.bz2
Content-length: 3297

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81944

            Bug ID: 81944
           Summary: constexpr std::distance
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexbaroni68 at gmail dot com
  Target Milestone: ---

When using the constexpr overload of std::distance it complains that a not
constexpr function is called, follows code to reproduce and error message:

#include <iostream>
#include <algorithm>
#include <iterator>
#include <stdexcept>
#include <array>
#include <string>
#include <cassert>

template<typename It>
constexpr auto max (It first, It last)
{
  auto count = std::distance(first, last);
  if (count == 0)
    throw std::domain_error{"max is undefined on empty range"};
  if (count == 1) return *first;
  auto mid = first + (last - first) / 2;
  return std::max(max(first, mid), max(mid, last));
}

int main()
{
  constexpr std::array<int, 4> vs{1,6,8,3};
  constexpr auto max_of_vs = max(std::cbegin(vs), std::cend(vs));
  assert(max_of_vs == 8);
  std::cout << max_of_vs << std::endl;
  std::array<int, 5> xs{1,9,8,3,6};
  auto max_of_xs = max(std::begin(xs), std::end(xs));
  assert(max_of_xs == 9);
  std::cout << max_of_xs << std::endl;
  //std::array<int, 0> zs{};
  //auto max_of_zs = max(std::begin(zs), std::end(zs)); // throws at runtime
  //assert(max_of_zs == 0);
}


main.cpp: In function 'int main()':

main.cpp:23:33:   in constexpr expansion of 'max<const
int*>(std::cbegin<std::array<int, 4> >(vs), std::cend<std::array<int, 4>
>(vs))'

main.cpp:12:29: error: 'constexpr typename
std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator,
_InputIterator) [with _InputIterator = const int*; typename
std::iterator_traits<_Iterator>::difference_type = long int]' called in a
constant expression

   auto count = std::distance(first, last);

                ~~~~~~~~~~~~~^~~~~~~~~~~~~

In file included from /usr/local/include/c++/7.2.0/bits/stl_algobase.h:66:0,

                 from /usr/local/include/c++/7.2.0/bits/char_traits.h:39,

                 from /usr/local/include/c++/7.2.0/ios:40,

                 from /usr/local/include/c++/7.2.0/ostream:38,

                 from /usr/local/include/c++/7.2.0/iostream:39,

                 from main.cpp:1:

/usr/local/include/c++/7.2.0/bits/stl_iterator_base_funcs.h:138:5: note:
'constexpr typename std::iterator_traits<_Iterator>::difference_type
std::distance(_InputIterator, _InputIterator) [with _InputIterator = const
int*; typename std::iterator_traits<_Iterator>::difference_type = long int]' is
not usable as a constexpr function because:

     distance(_InputIterator __first, _InputIterator __last)

     ^~~~~~~~

/usr/local/include/c++/7.2.0/bits/stl_iterator_base_funcs.h:142:33: error: call
to non-constexpr function 'typename
std::iterator_traits<_Iterator>::iterator_category
std::__iterator_category(const _Iter&) [with _Iter = const int*; typename
std::iterator_traits<_Iterator>::iterator_category =
std::random_access_iterator_tag]'

         std::__iterator_category(__first));

         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
>From gcc-bugs-return-573074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 12:12:48 2017
Return-Path: <gcc-bugs-return-573074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34839 invoked by alias); 23 Aug 2017 12:12:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34605 invoked by uid 48); 23 Aug 2017 12:12:42 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81940] [8 regression] internal compiler error: in dwarf2out_abstract_function, at dwarf2out.c:21613
Date: Wed, 23 Aug 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: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: 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-81940-4-kRSVejklhz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02633.txt.bz2
Content-length: 452

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81940

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.  Thanks for reporting.
>From gcc-bugs-return-573075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 12:51:43 2017
Return-Path: <gcc-bugs-return-573075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86117 invoked by alias); 23 Aug 2017 12:51: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 85951 invoked by uid 48); 23 Aug 2017 12:51:37 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80681] missing -Wuninitialized for const or reference member of a private base class
Date: Wed, 23 Aug 2017 13:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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 blocked everconfirmed
Message-ID: <bug-80681-4-ecTuLYo0tR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80681-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80681-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02634.txt.bz2
Content-length: 756

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80681

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
             Blocks|                            |24639
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639
[Bug 24639] [meta-bug] bug to track all Wuninitialized issues
>From gcc-bugs-return-573077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 12:59:35 2017
Return-Path: <gcc-bugs-return-573077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97570 invoked by alias); 23 Aug 2017 12:59: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 91809 invoked by uid 48); 23 Aug 2017 12:59:30 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81945] New: [8 Regression] ICE in operator[], at vec.h:749
Date: Wed, 23 Aug 2017 14:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 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-81945-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02636.txt.bz2
Content-length: 1209

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81945

            Bug ID: 81945
           Summary: [8 Regression] ICE in operator[], at vec.h:749
           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-alpha20170820 snapshot (r251211) ICEs when compiling the following
snippet w/ -O3 (-Ofast) -ftree-parallelize-loops=2 -floop-nest-optimize:

unsigned long int cj;

void
at (int sa, int gb)
{
  long int *ne = &at;

  do
    {
      int **lm;

      while (gb != 0)
        {
        }
      cj *= 2;
      **lm = *ne;
      ++sa;
    }
  while (sa < 1);
}

% gcc-8.0.0-alpha20170820 -O3 -ftree-parallelize-loops=2 -floop-nest-optimize
-c -w mrglrqyu.c
during GIMPLE pass: vect
mrglrqyu.c: In function 'at._loopfn.1':
mrglrqyu.c:19:3: internal compiler error: in operator[], at vec.h:749
   while (sa < 1);
   ^

I wonder if this PR can be somehow related to the failures reported in PR80928
comment 5 and below.
>From gcc-bugs-return-573076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 12:59:00 2017
Return-Path: <gcc-bugs-return-573076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58835 invoked by alias); 23 Aug 2017 12:58: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 53091 invoked by uid 48); 23 Aug 2017 12:58:55 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80733] -fstrict-enum ineffective, incorrect -Wtype-limits warning
Date: Wed, 23 Aug 2017 14:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-80733-4-XKV1h5IIik@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80733-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80733-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02635.txt.bz2
Content-length: 626

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80733

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 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-573078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:01:14 2017
Return-Path: <gcc-bugs-return-573078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98239 invoked by alias); 23 Aug 2017 13:01:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 73098 invoked by uid 48); 23 Aug 2017 13:01:05 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 2017 14: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: openacc, openmp
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:
Message-ID: <bug-81936-4-xNYo1KHNSb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02637.txt.bz2
Content-length: 1769

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #8 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #7)
> Ah, yeah.  And we can have both, right?

I'd say so. There's f.i. libgomp.c/target-9.c, which contains '#pragma omp
target' and uses -flto.

> So we'd either need a separate
> set of early debug sections or use a combined for both (this is what
> will happen if you add && !flag_generate_offload I guess).

I tried this patch:
...
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 0c339bd46f0..92b43db1bae 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -30526,7 +30526,7 @@ dwarf2out_early_finish (const char *filename)
   early_dwarf_finished = true;

   /* Do not generate DWARF assembler now when not producing LTO bytecode.  */
-  if (!flag_generate_lto)
+  if (!flag_generate_lto && !flag_generate_offload)
     return;

   /* Now as we are going to output for LTO initialize sections and labels
...
but found it doesn't work because flag_generate_offload is actually false.

I'm now trying this (code snippet copied from symbol_table::compile), but I'm
not sure if setting flag_generate_offload is the proper solution, and if so,
where it should be inserted:
...
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index e8cc765095d..29a1d038b0e 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2586,6 +2586,10 @@ symbol_table::finalize_compilation_unit (void)
   current_function_decl = NULL;
   set_cfun (NULL);

+  /* Offloading requires LTO infrastructure.  */
+  if (!in_lto_p && g->have_offload)
+    flag_generate_offload = 1;
+
   /* Do not skip analyzing the functions if there were errors, we
      miss diagnostics for following functions otherwise.  */

...
>From gcc-bugs-return-573079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:02:58 2017
Return-Path: <gcc-bugs-return-573079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56517 invoked by alias); 23 Aug 2017 13:02: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 38344 invoked by uid 48); 23 Aug 2017 13:02:52 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81642] -Wtype-limits should not trigger for defined numbers
Date: Wed, 23 Aug 2017 14:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: 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-81642-4-qrMA3uczQZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81642-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81642-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02638.txt.bz2
Content-length: 940

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81642

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> I don't think the fact that NUM_IFC comes from a macro should be relevant to
> whether the warning is emitted or not, that will just hide real bugs in
> other code.

The macro might not always have the same value though, it could be
conditionally defined, or expand to __LINE__ or __COUNTER__ or something. So
I'm going to confirm this.
>From gcc-bugs-return-573080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:16:39 2017
Return-Path: <gcc-bugs-return-573080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103007 invoked by alias); 23 Aug 2017 13:16: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 102879 invoked by uid 48); 23 Aug 2017 13:16:33 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 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: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
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:
Message-ID: <bug-81936-4-fZd9YuDxnF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02639.txt.bz2
Content-length: 2302

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #9 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #8)
> but found it doesn't work because flag_generate_offload is actually false.
> 
> I'm now trying this (code snippet copied from symbol_table::compile), but
> I'm not sure if setting flag_generate_offload is the proper solution, and if
> so, where it should be inserted:
> ...
> diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
> index e8cc765095d..29a1d038b0e 100644
> --- a/gcc/cgraphunit.c
> +++ b/gcc/cgraphunit.c
> @@ -2586,6 +2586,10 @@ symbol_table::finalize_compilation_unit (void)
>    current_function_decl = NULL;
>    set_cfun (NULL);
>  
> +  /* Offloading requires LTO infrastructure.  */
> +  if (!in_lto_p && g->have_offload)
> +    flag_generate_offload = 1;
> +
>    /* Do not skip analyzing the functions if there were errors, we
>       miss diagnostics for following functions otherwise.  */
>  
> ...

That didn't work since g->have_offload is not set yet. Setting it after
analyze_functions does work:
...
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index e8cc765095d..080451a44df 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2614,6 +2614,10 @@ symbol_table::finalize_compilation_unit (void)
   /* Gimplify and lower thunks.  */
   analyze_functions (/*first_time=*/false);

+  /* Offloading requires LTO infrastructure.  */
+  if (!in_lto_p && g->have_offload)
+    flag_generate_offload = 1;
+
   if (!seen_error ())
     {
       /* Emit early debug for reachable functions, and by consequence,
...

And then we run into the next ICE:
...
libgomp/testsuite/libgomp.c/pr66714.c:17:1: internal compiler error: in
output_loc_operands, at dwarf2out.c:2232
0x86f757 output_loc_operands
        gcc/dwarf2out.c:2232
0x86f757 output_loc_sequence(dw_loc_descr_node*, int)
        gcc/dwarf2out.c:2419
0x86ff61 output_die
        gcc/dwarf2out.c:10038
0x86fa0a output_die
        gcc/dwarf2out.c:10348
0x86fa0a output_die
        gcc/dwarf2out.c:10348
0x871118 output_comp_unit
        gcc/dwarf2out.c:10483
0x898408 dwarf2out_early_finish
        gcc/dwarf2out.c:30597
0x7fe3b8 symbol_table::finalize_compilation_unit()
        gcc/cgraphunit.c:2631
Please submit a full bug report,
...
>From gcc-bugs-return-573081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:20:46 2017
Return-Path: <gcc-bugs-return-573081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41783 invoked by alias); 23 Aug 2017 13:20: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 41208 invoked by uid 48); 23 Aug 2017 13:20:40 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79996] spurious -Wreturn-type on a function that calls a noreturn function
Date: Wed, 23 Aug 2017 14:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: accepts-invalid, 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: keywords bug_status cf_reconfirmed_on cc see_also everconfirmed
Message-ID: <bug-79996-4-anGhaqUbPc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79996-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79996-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02640.txt.bz2
Content-length: 2187

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79996

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=80140
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #0)
> With bug 79967 fixed GCC accepts non-type template parameters of function
> type declared noreturn.  C++ doesn't seem to allow the attribute in this
> context and it's unclear what the expected of such an attribute should be. 
> Even though it accepts it, GCC appears to not only silently ignore the
> attribute on the template parameter, it also loses the attribute if the
> template argument is decorated with it.  That leads to warnings such in the
> test case below where intuitively none would be expected.
> 
> If the attribute is to be accepted (perhaps as an extension) but ignored
> here GCC should issue a -Wignored-attributes warning. 

That's bug 80140.

> If accepting is, in fact an extension (i.e., C++ doesn't allow it here),
> GCC should also issue a warning with -Wpedantic.
> 
> $ cat t.c && gcc -S -Wall -Wextra -Wpedantic -xc++ t.c
> [[noreturn]] void g ();
> 
> struct A
> {
>   int foo ();
> };
> 
> int foo ()
> {
>   g ();
> }
> 
> template <void f [[noreturn]]() = g>
> struct B
> {
>   int foo ();
> };
> 
> template <void f ()>
> int B<f>::foo ()
> {
>   f ();
> }
> 
> int i = (B<>().foo (), 0);
> t.c: In member function ‘int B<f>::foo()’:
> t.c:23:1: warning: no return statement in function returning non-void
> [-Wreturn-type]
>  }
>  ^

Confirming as a separate bug since the testcase is different.
>From gcc-bugs-return-573082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:22:23 2017
Return-Path: <gcc-bugs-return-573082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110385 invoked by alias); 23 Aug 2017 13:22: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 106875 invoked by uid 55); 23 Aug 2017 13:22:17 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 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: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse 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-81936-4-nRXV4xlPlS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02641.txt.bz2
Content-length: 2310

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #10 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 23 Aug 2017, vries at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936
> 
> --- Comment #8 from Tom de Vries <vries at gcc dot gnu.org> ---
> (In reply to rguenther@suse.de from comment #7)
> > Ah, yeah.  And we can have both, right?
> 
> I'd say so. There's f.i. libgomp.c/target-9.c, which contains '#pragma omp
> target' and uses -flto.
> 
> > So we'd either need a separate
> > set of early debug sections or use a combined for both (this is what
> > will happen if you add && !flag_generate_offload I guess).
> 
> I tried this patch:
> ...
> diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
> index 0c339bd46f0..92b43db1bae 100644
> --- a/gcc/dwarf2out.c
> +++ b/gcc/dwarf2out.c
> @@ -30526,7 +30526,7 @@ dwarf2out_early_finish (const char *filename)
>    early_dwarf_finished = true;
> 
>    /* Do not generate DWARF assembler now when not producing LTO bytecode.  */
> -  if (!flag_generate_lto)
> +  if (!flag_generate_lto && !flag_generate_offload)
>      return;
> 
>    /* Now as we are going to output for LTO initialize sections and labels
> ...
> but found it doesn't work because flag_generate_offload is actually false.
> 
> I'm now trying this (code snippet copied from symbol_table::compile), but I'm
> not sure if setting flag_generate_offload is the proper solution, and if so,
> where it should be inserted:
> ...
> diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
> index e8cc765095d..29a1d038b0e 100644
> --- a/gcc/cgraphunit.c
> +++ b/gcc/cgraphunit.c
> @@ -2586,6 +2586,10 @@ symbol_table::finalize_compilation_unit (void)
>    current_function_decl = NULL;
>    set_cfun (NULL);
> 
> +  /* Offloading requires LTO infrastructure.  */
> +  if (!in_lto_p && g->have_offload)
> +    flag_generate_offload = 1;
> +
>    /* Do not skip analyzing the functions if there were errors, we
>       miss diagnostics for following functions otherwise.  */
> 
> ...

Moving this earlier from symbol_table::compile to its caller, right
before the block emitting early debug looks obvious to me.

Where you placed it we might not yet know g->have_offload?  That is,
we might need analyze_functions ().
>From gcc-bugs-return-573083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:23:49 2017
Return-Path: <gcc-bugs-return-573083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35634 invoked by alias); 23 Aug 2017 13:23:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35564 invoked by uid 55); 23 Aug 2017 13:23:43 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 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: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse 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-81936-4-OEM7CVfDhb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02642.txt.bz2
Content-length: 2776

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #11 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 23 Aug 2017, vries at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936
> 
> --- Comment #9 from Tom de Vries <vries at gcc dot gnu.org> ---
> (In reply to Tom de Vries from comment #8)
> > but found it doesn't work because flag_generate_offload is actually false.
> > 
> > I'm now trying this (code snippet copied from symbol_table::compile), but
> > I'm not sure if setting flag_generate_offload is the proper solution, and if
> > so, where it should be inserted:
> > ...
> > diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
> > index e8cc765095d..29a1d038b0e 100644
> > --- a/gcc/cgraphunit.c
> > +++ b/gcc/cgraphunit.c
> > @@ -2586,6 +2586,10 @@ symbol_table::finalize_compilation_unit (void)
> >    current_function_decl = NULL;
> >    set_cfun (NULL);
> >  
> > +  /* Offloading requires LTO infrastructure.  */
> > +  if (!in_lto_p && g->have_offload)
> > +    flag_generate_offload = 1;
> > +
> >    /* Do not skip analyzing the functions if there were errors, we
> >       miss diagnostics for following functions otherwise.  */
> >  
> > ...
> 
> That didn't work since g->have_offload is not set yet. Setting it after
> analyze_functions does work:
> ...
> diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
> index e8cc765095d..080451a44df 100644
> --- a/gcc/cgraphunit.c
> +++ b/gcc/cgraphunit.c
> @@ -2614,6 +2614,10 @@ symbol_table::finalize_compilation_unit (void)
>    /* Gimplify and lower thunks.  */
>    analyze_functions (/*first_time=*/false);
> 
> +  /* Offloading requires LTO infrastructure.  */
> +  if (!in_lto_p && g->have_offload)
> +    flag_generate_offload = 1;
> +
>    if (!seen_error ())
>      {
>        /* Emit early debug for reachable functions, and by consequence,
> ...

Looks good (moving the setting, not replicating it), also adding
the check in dwarf2out.c

> And then we run into the next ICE:
> ...
> libgomp/testsuite/libgomp.c/pr66714.c:17:1: internal compiler error: in
> output_loc_operands, at dwarf2out.c:2232
> 0x86f757 output_loc_operands
>         gcc/dwarf2out.c:2232
> 0x86f757 output_loc_sequence(dw_loc_descr_node*, int)
>         gcc/dwarf2out.c:2419
> 0x86ff61 output_die
>         gcc/dwarf2out.c:10038
> 0x86fa0a output_die
>         gcc/dwarf2out.c:10348
> 0x86fa0a output_die
>         gcc/dwarf2out.c:10348
> 0x871118 output_comp_unit
>         gcc/dwarf2out.c:10483
> 0x898408 dwarf2out_early_finish
>         gcc/dwarf2out.c:30597
> 0x7fe3b8 symbol_table::finalize_compilation_unit()
>         gcc/cgraphunit.c:2631
> Please submit a full bug report,
> ...

Shit happens ;)

Is that now the offload compiler?
>From gcc-bugs-return-573084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:27:45 2017
Return-Path: <gcc-bugs-return-573084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80352 invoked by alias); 23 Aug 2017 13:27:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80199 invoked by uid 48); 23 Aug 2017 13:27:39 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81873] spurious -Wreturn-type calling a locally declared noreturn function
Date: Wed, 23 Aug 2017 15: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: 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 see_also everconfirmed
Message-ID: <bug-81873-4-UR5DvsHRiH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81873-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81873-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02643.txt.bz2
Content-length: 1156

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81873

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=80140
     Ever confirmed|0                           |1

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> This is not so much an -Wreturn-type issue but a symptom of the C++
> front-end not merging decls for globals.  You filed a few other cases which
> are accepts invalid which are the same here.

e.g. bug 80140, bug 79996. Should probably be marked a duplicate of one of
them, but I can't decide which, so I'll just confirm this as a separate bug
(also since the testcase is different in this one, too)
>From gcc-bugs-return-573085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:35:57 2017
Return-Path: <gcc-bugs-return-573085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120844 invoked by alias); 23 Aug 2017 13:35:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120748 invoked by uid 48); 23 Aug 2017 13:35:50 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56556] Wshadow warns for private members in base classes
Date: Wed, 23 Aug 2017 15:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.2
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: bug_status cc resolution
Message-ID: <bug-56556-4-MQenv6tSrf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56556-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56556-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02644.txt.bz2
Content-length: 1510

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56556

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Warning goes away if you use -Wshadow-local instead of just -Wshadow:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wshadow 56556.cc
56556.cc: In constructor ‘Derived::Derived(int)’:
56556.cc:7:17: warning: declaration of ‘x’ shadows a member of ‘Derived’
[-Wshadow]
  Derived(int x) {}
                 ^
56556.cc:3:6: note: shadowed declaration is here
  int x;
      ^
56556.cc:7:14: warning: unused parameter ‘x’ [-Wunused-parameter]
  Derived(int x) {}
              ^
$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wshadow-local 56556.cc
56556.cc: In constructor ‘Derived::Derived(int)’:
56556.cc:7:14: warning: unused parameter ‘x’ [-Wunused-parameter]
  Derived(int x) {}
              ^
$

(same thing with -Wshadow-compatible-local instead of -Wshadow-local)

Since this warning is easily avoided, and I'd probably want to get the warning
anyways, I'm going to close this as INVALID.
>From gcc-bugs-return-573086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:37:52 2017
Return-Path: <gcc-bugs-return-573086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126112 invoked by alias); 23 Aug 2017 13:37: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 126016 invoked by uid 48); 23 Aug 2017 13:37:46 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 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: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
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:
Message-ID: <bug-81936-4-BBkDmyi4NZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02645.txt.bz2
Content-length: 530

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #12 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #11)
> > And then we run into the next ICE:

> Shit happens ;)

Heh, it does :)

> Is that now the offload compiler?

Nope, still the host compiler, we're ICE-ing during
symbol_table::finalize_compilation_unit, so we're actual ICE-ing earlier than
before.

I'm going to look now at r(251220 - 1), just before the ICE, to understand how
things were handled there.
>From gcc-bugs-return-573087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:49:02 2017
Return-Path: <gcc-bugs-return-573087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91228 invoked by alias); 23 Aug 2017 13:49: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 91121 invoked by uid 48); 23 Aug 2017 13:48:58 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81944] constexpr std::distance
Date: Wed, 23 Aug 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse 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-81944-4-qz6EbeGcxF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81944-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81944-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02646.txt.bz2
Content-length: 484

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81944

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
.

*** This bug has been marked as a duplicate of bug 81912 ***
>From gcc-bugs-return-573088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:49:03 2017
Return-Path: <gcc-bugs-return-573088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91264 invoked by alias); 23 Aug 2017 13:49: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 91146 invoked by uid 48); 23 Aug 2017 13:48:58 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81912] std::distance not constexpr in C++17 mode
Date: Wed, 23 Aug 2017 15:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81912-4-DzN9cj1oj4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81912-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02647.txt.bz2
Content-length: 444

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81912

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexbaroni68 at gmail dot com

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
*** Bug 81944 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-573089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:51:43 2017
Return-Path: <gcc-bugs-return-573089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101365 invoked by alias); 23 Aug 2017 13:51: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 101042 invoked by uid 48); 23 Aug 2017 13:51:29 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68827] [concepts] ICE in fold where requires parameter shadows function argument
Date: Wed, 23 Aug 2017 15:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: error-recovery
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: keywords bug_status cf_reconfirmed_on cc blocked everconfirmed
Message-ID: <bug-68827-4-pAAlVUcTxF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68827-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68827-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02648.txt.bz2
Content-length: 4089

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68827

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 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 it ICEs, but it's in a different place for me:

$ /usr/local/bin/g++ -c -std=c++1z -fconcepts -Wall -Wextra -pedantic -Wshadow
68827.cc
68827.cc: In function ‘bool requires_types_args(V&&, Var<Types ...>&, Args&&
...)’:
68827.cc:14:18: warning: declaration of ‘V&& v’ shadows a parameter [-Wshadow]
    requires (V&& v, Types... type, Args... args) {
                  ^
68827.cc:11:30: note: shadowed declaration is here
 bool requires_types_args(V&& v, Var<Types...>&, Args&&... args)
                              ^
68827.cc:14:44: warning: declaration of ‘Args ... args’ shadows a parameter
[-Wshadow]
    requires (V&& v, Types... type, Args... args) {
                                            ^~~~
68827.cc:11:59: note: shadowed declaration is here
 bool requires_types_args(V&& v, Var<Types...>&, Args&&... args)
                                                           ^~~~
68827.cc: In instantiation of ‘bool requires_types_args(V&&, Var<Types ...>&,
Args&& ...) [with V = A; Types = {int, char}; Args = {int, char}]’:
68827.cc:23:36:   required from here
68827.cc:15:7: error: use ‘...’ to expand argument pack
    foo(v, type, args...);
    ~~~^~~~~~~~~~~~~~~~~~
68827.cc:15:7: error: use ‘...’ to expand argument pack
68827.cc:15:7: error: use ‘...’ to expand argument pack
68827.cc:15:7: error: use ‘...’ to expand argument pack
68827.cc:15:7: error: use ‘...’ to expand argument pack
68827.cc:15:7: error: use ‘...’ to expand argument pack
68827.cc:15:7: error: use ‘...’ to expand argument pack
68827.cc:15:7: error: use ‘...’ to expand argument pack
68827.cc:15:7: error: use ‘...’ to expand argument pack
68827.cc:15:7: error: use ‘...’ to expand argument pack
68827.cc:17:4: internal compiler error: tree check: expected tree that contains
‘typed’ structure, have ‘simple_req’ in warning_candidate_p, at
c-family/c-common.c:1732
    );
    ^
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.
$

Backtrace for the ICE I get is:

Breakpoint 2, 0x00e2a5b4 in internal_error ()
(gdb) bt
#0  0x00e2a5b4 in internal_error ()
#1  0x0141fb94 in tree_contains_struct_check_failed ()
#2  0x011e67fb in __cold_sect_of___ZL19warning_candidate_pP9tree_node ()
#3  0x001f4628 in verify_tree ()
#4  0x001f494b in verify_tree ()
#5  0x001f5302 in verify_tree ()
#6  0x001f4e5b in verify_tree ()
#7  0x001f4df0 in verify_tree ()
#8  0x001f4df0 in verify_tree ()
#9  0x001f4df0 in verify_tree ()
#10 0x001f5302 in verify_tree ()
#11 0x001f61f7 in verify_sequence_points ()
#12 0x001963f9 in finish_return_stmt ()
#13 0x00153afa in tsubst_expr ()
#14 0x00155ea3 in tsubst_expr ()
#15 0x0017fdb8 in instantiate_decl ()
#16 0x001844c0 in instantiate_pending_templates ()
#17 0x000a974e in c_parse_final_cleanups ()
#18 0x00b16425 in compile_file ()
#19 0x01a9e35e in toplev::main ()
#20 0x01a9fa34 in main ()

I'll have to rebuild my gcc with debugging info to get a better backtrace.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491
[Bug 67491] [meta-bug] concepts issues
>From gcc-bugs-return-573090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:51:47 2017
Return-Path: <gcc-bugs-return-573090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101840 invoked by alias); 23 Aug 2017 13:51:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 101228 invoked by uid 48); 23 Aug 2017 13:51:40 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk0Nl0gTmV3OiBydW50aW1lLmluYzo3ODI6Mjg6IGVycm9y?= =?UTF-8?B?OiBmaWVsZCDigJhfX3NlbV9sb2Nr4oCZIGhhcyBpbmNvbXBsZXRlIHR5cGU=?Date: Wed, 23 Aug 2017 16:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mfe at live dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02649.txt.bz2
Content-length: 6800

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946

            Bug ID: 81946
           Summary: runtime.inc:782:28: error: field ‘__sem_lock’ has
                    incomplete type
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: mfe at live dot de
                CC: cmang at google dot com
  Target Milestone: ---

Hi,

I was able to build gcc 7.1.0 with the enabled languages c and c++.
Unfortunately building the last gcc 7.2. with enabling the language go results
in "runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type"

the exact version of GCC:
gcc-7.1.0

the system type:
NetgearReadyNAS Duo
(http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS)

the options given when GCC was configured/built:
nas-02-90-38:/media/gcc-7.2.0-go# ../gcc-7.2.0/configure
CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go
--prefix=/opt/gcc-7.2.0  --with-cpu=v7 --disable-libstdcxx-pch
--disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit
--with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug 
--disable-doc --disable-libcilkrts --disable-libitm


## --------- ##
## Platform. ##
## --------- ##

hostname = nas-02-90-38
uname -m = padre
uname -r = 2.6.17.14ReadyNAS
uname -s = Linux
uname -v = #1 Wed Jun 20 20:08:20 PDT 2012

the complete command line that triggers the bug;
/usr/local/bin/make

the compiler output (error messages, warnings, etc.);
[...]
libtool: compile:  /media/gcc-7.2.0-go/./gcc/gccgo -B/media/gcc-7.2.0-go/./gcc/
-B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-7.2.0/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-7.2.0/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c
-fgo-pkgpath=runtime -fgo-c-header=runtime.inc.tmp -fgo-compiling-runtime
../../../gcc-7.2.0/libgo/go/runtime/alg.go
../../../gcc-7.2.0/libgo/go/runtime/cgo_gccgo.go
../../../gcc-7.2.0/libgo/go/runtime/chan.go
../../../gcc-7.2.0/libgo/go/runtime/compiler.go
../../../gcc-7.2.0/libgo/go/runtime/cpuprof.go
../../../gcc-7.2.0/libgo/go/runtime/cputicks.go
../../../gcc-7.2.0/libgo/go/runtime/debug.go
../../../gcc-7.2.0/libgo/go/runtime/env_posix.go
../../../gcc-7.2.0/libgo/go/runtime/error.go
../../../gcc-7.2.0/libgo/go/runtime/extern.go
../../../gcc-7.2.0/libgo/go/runtime/ffi.go
../../../gcc-7.2.0/libgo/go/runtime/hash32.go
../../../gcc-7.2.0/libgo/go/runtime/hashmap.go
../../../gcc-7.2.0/libgo/go/runtime/hashmap_fast.go
../../../gcc-7.2.0/libgo/go/runtime/iface.go
../../../gcc-7.2.0/libgo/go/runtime/lfstack.go
../../../gcc-7.2.0/libgo/go/runtime/lfstack_32bit.go
../../../gcc-7.2.0/libgo/go/runtime/lock_futex.go
../../../gcc-7.2.0/libgo/go/runtime/mcache.go
../../../gcc-7.2.0/libgo/go/runtime/mprof.go
../../../gcc-7.2.0/libgo/go/runtime/msan0.go
../../../gcc-7.2.0/libgo/go/runtime/mstats.go
../../../gcc-7.2.0/libgo/go/runtime/netpoll.go
../../../gcc-7.2.0/libgo/go/runtime/netpoll_epoll.go
../../../gcc-7.2.0/libgo/go/runtime/os_gccgo.go
../../../gcc-7.2.0/libgo/go/runtime/os_linux.go
../../../gcc-7.2.0/libgo/go/runtime/panic.go
../../../gcc-7.2.0/libgo/go/runtime/print.go
../../../gcc-7.2.0/libgo/go/runtime/proc.go
../../../gcc-7.2.0/libgo/go/runtime/race0.go
../../../gcc-7.2.0/libgo/go/runtime/rdebug.go
../../../gcc-7.2.0/libgo/go/runtime/runtime.go
../../../gcc-7.2.0/libgo/go/runtime/runtime1.go
../../../gcc-7.2.0/libgo/go/runtime/runtime2.go
../../../gcc-7.2.0/libgo/go/runtime/select.go
../../../gcc-7.2.0/libgo/go/runtime/sema.go
../../../gcc-7.2.0/libgo/go/runtime/signal_gccgo.go
../../../gcc-7.2.0/libgo/go/runtime/signal_sighandler.go
../../../gcc-7.2.0/libgo/go/runtime/signal_unix.go
../../../gcc-7.2.0/libgo/go/runtime/sigqueue.go
../../../gcc-7.2.0/libgo/go/runtime/sizeclasses.go
../../../gcc-7.2.0/libgo/go/runtime/slice.go
../../../gcc-7.2.0/libgo/go/runtime/string.go
../../../gcc-7.2.0/libgo/go/runtime/stubs.go
../../../gcc-7.2.0/libgo/go/runtime/stubs2.go
../../../gcc-7.2.0/libgo/go/runtime/symtab.go
../../../gcc-7.2.0/libgo/go/runtime/time.go
../../../gcc-7.2.0/libgo/go/runtime/trace.go
../../../gcc-7.2.0/libgo/go/runtime/traceback_gccgo.go
../../../gcc-7.2.0/libgo/go/runtime/type.go
../../../gcc-7.2.0/libgo/go/runtime/typekind.go
../../../gcc-7.2.0/libgo/go/runtime/unaligned2.go
../../../gcc-7.2.0/libgo/go/runtime/utf8.go
../../../gcc-7.2.0/libgo/go/runtime/write_err.go runtime_sysinfo.go sigtab.go
-o runtime.o >/dev/null 2>&1
rm -f runtime.inc.tmp2
grep -v "#define _" runtime.inc.tmp | grep -v "#define [cm][01234] " >
runtime.inc.tmp2
for pattern in '_[GP][a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
  grep "#define $pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
done
/bin/sh ../../../gcc-7.2.0/libgo/mvifdiff.sh runtime.inc.tmp2 runtime.inc
echo timestamp > s-runtime-inc
/media/gcc-7.2.0-go/./gcc/xgcc -B/media/gcc-7.2.0-go/./gcc/
-B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-7.2.0/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-7.2.0/sparc-unknown-linux-gnu/sys-include    -DHAVE_CONFIG_H -I.
-I../../../gcc-7.2.0/libgo  -I ../../../gcc-7.2.0/libgo/runtime
-I../../../gcc-7.2.0/libgo/../libffi/include -I../libffi/include -pthread 
-fexceptions -fnon-call-exceptions -fplan9-extensions  -Wall -Wextra
-Wwrite-strings -Wcast-qual -Werror   -D_GNU_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I ../../../gcc-7.2.0/libgo/../libgcc -I
../../../gcc-7.2.0/libgo/../libbacktrace -I ../../gcc/include -fPIC -g -O2 -MT
libgobegin_a-go-main.o -MD -MP -MF .deps/libgobegin_a-go-main.Tpo -c -o
libgobegin_a-go-main.o `test -f 'runtime/go-main.c' || echo
'../../../gcc-7.2.0/libgo/'`runtime/go-main.c
In file included from ../../../gcc-7.2.0/libgo/runtime/runtime.h:113:0,
                 from ../../../gcc-7.2.0/libgo/runtime/go-main.c:17:
./runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type
  struct __pthread_fastlock __sem_lock;
                            ^~~~~~~~~~
make[4]: *** [Makefile:1580: libgobegin_a-go-main.o] Error 1
make[4]: Leaving directory
'/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo'
make[3]: *** [Makefile:2746: all-recursive] Error 1
make[3]: Leaving directory
'/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo'
make[2]: *** [Makefile:1344: all] Error 2
make[2]: Leaving directory
'/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo'
make[1]: *** [Makefile:18527: all-target-libgo] Error 2
make[1]: Leaving directory '/c/media/gcc-7.2.0-go'
make: *** [Makefile:931: all] Error 2

I would love to see go on my sparc machine.
>From gcc-bugs-return-573091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:55:40 2017
Return-Path: <gcc-bugs-return-573091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15707 invoked by alias); 23 Aug 2017 13:55: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 14449 invoked by uid 48); 23 Aug 2017 13:55:26 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78330] incorrectly accepts invalid C++ code with shadowed template parameter
Date: Wed, 23 Aug 2017 16:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: accepts-invalid, 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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-78330-4-2zIzb8LrsL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78330-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78330-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02650.txt.bz2
Content-length: 737

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78330

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, there's not even a warning from -Wshadow:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wshadow 78330.cc
$
>From gcc-bugs-return-573092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 13:58:35 2017
Return-Path: <gcc-bugs-return-573092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97199 invoked by alias); 23 Aug 2017 13:58:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87984 invoked by uid 48); 23 Aug 2017 13:58:29 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81945] [8 Regression] ICE in operator[], at vec.h:749
Date: Wed, 23 Aug 2017 16:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-81945-4-a2An003S3r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81945-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81945-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02651.txt.bz2
Content-length: 1459

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81945

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |amker at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  More likely loop-distribution related:

t.c:19:3: internal compiler error: in operator[], at vec.h:749
   while (sa < 1);
   ^
0x97d148 vec<loop*, va_gc, vl_embed>::operator[](unsigned int)
        /space/rguenther/src/svn/early-lto-debug/gcc/vec.h:749
0x12632da get_loop
        /space/rguenther/src/svn/early-lto-debug/gcc/cfgloop.h:500
0x12644a9 vect_loop_dist_alias_call
        /space/rguenther/src/svn/early-lto-debug/gcc/tree-vectorizer.c:503
0x1264b2b vectorize_loops()
        /space/rguenther/src/svn/early-lto-debug/gcc/tree-vectorizer.c:676
0x11262ab execute
        /space/rguenther/src/svn/early-lto-debug/gcc/tree-ssa-loop.c:414
Please submit a full bug report,
with preprocessed source if appropriate.

so we outline the IFN call but we obviously need to remap the loop indices.
>From gcc-bugs-return-573093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 14:06:32 2017
Return-Path: <gcc-bugs-return-573093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24966 invoked by alias); 23 Aug 2017 14:06: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 19029 invoked by uid 48); 23 Aug 2017 14:06:26 -0000
From: "manish.baphna at citi dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81947] New: variadic template specialization doesn't compile
Date: Wed, 23 Aug 2017 16:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.7
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manish.baphna at citi 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-81947-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02652.txt.bz2
Content-length: 788

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81947

            Bug ID: 81947
           Summary: variadic template specialization doesn't compile
           Product: gcc
           Version: 4.4.7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manish.baphna at citi dot com
  Target Milestone: ---

->cat vartemp.cpp & g++ vartemp.cpp -std=c++0x
template <class ...Type>
void send(const Type& ...args)
{
}

template <>
void send(const int&x, const double& y)
{
}

int main(){

}
vartemp.cpp:7: error: template-id âsend<>â for âvoid send(const int&, const
double&)â does not match any template declaration

gcc version 4.4.7 20120313
>From gcc-bugs-return-573094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 14:06:32 2017
Return-Path: <gcc-bugs-return-573094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25284 invoked by alias); 23 Aug 2017 14:06:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19866 invoked by uid 48); 23 Aug 2017 14:06:27 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk0Nl0gcnVudGltZS5pbmM6NzgyOjI4OiBlcnJvcjogZmll?= =?UTF-8?B?bGQg4oCYX19zZW1fbG9ja+KAmSBoYXMgaW5jb21wbGV0ZSB0eXBl?Date: Wed, 23 Aug 2017 16:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81946-4-zY6pYwn9zq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02653.txt.bz2
Content-length: 310

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
What is the full definition of the failing struct in the generated runtime.inc
file?  That is, look at line 782 of TARGET/libgo/runtime.inc and show us the
complete type definition.  Thanks.
>From gcc-bugs-return-573095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 14:09:31 2017
Return-Path: <gcc-bugs-return-573095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5365 invoked by alias); 23 Aug 2017 14: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 128886 invoked by uid 48); 23 Aug 2017 14:09:27 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78388] Bogus "declaration shadows template parameter" error with parenthesized function-style casts
Date: Wed, 23 Aug 2017 16:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic, 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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-78388-4-dSfxlA550c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02654.txt.bz2
Content-length: 1358

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78388

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 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 and clang doesn't:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Wshadow 78388.cc
78388.cc: In function ‘void f()’:
78388.cc:4:17: error: declaration of ‘void i’ shadows template parameter
     (int((void(i), 1))) + 0;
                 ^
78388.cc:1:10: note: template parameter ‘i’ declared here
 template<int i>
          ^~~
$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic -Wshadow 78388.cc
78388.cc:4:25: warning: expression result unused [-Wunused-value]
    (int((void(i), 1))) + 0;
    ~~~~~~~~~~~~~~~~~~~ ^ ~
1 warning generated.
$

Function-style casts are evil, see bug 69818 (which is asking for a warning in
a different context, but still)
>From gcc-bugs-return-573096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 14:38:46 2017
Return-Path: <gcc-bugs-return-573096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44592 invoked by alias); 23 Aug 2017 14:38:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44528 invoked by uid 48); 23 Aug 2017 14:38:41 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81948] New: vectorize exp2 using exp
Date: Wed, 23 Aug 2017 16:46: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: enhancement
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81948-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02655.txt.bz2
Content-length: 1002

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81948

            Bug ID: 81948
           Summary: vectorize exp2 using exp
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org
  Target Milestone: ---

Using -Ofast -mavx2 and a recent glibc, g++ vectorizes

#include <cmath>
void f(double*d){
  d=(double*)__builtin_assume_aligned(d,256);
  for(int i=0;i<1024;++i)
    d[i]=std::exp(d[i]*std::log(2));
}

However, if I write d[i]=std::exp2(d[i]) instead, it fails to vectorize
(libmvec does not provide a vector version of exp2). It would be good, when
checking if a standard function like exp2 has a vector version, to also check
related, more canonical functions (exp in this case).

(this could also be vaguely related to PR 81706)
>From gcc-bugs-return-573097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 14:45:59 2017
Return-Path: <gcc-bugs-return-573097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44155 invoked by alias); 23 Aug 2017 14: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 40719 invoked by uid 48); 23 Aug 2017 14:45:54 -0000
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81940] [8 regression] internal compiler error: in dwarf2out_abstract_function, at dwarf2out.c:21613
Date: Wed, 23 Aug 2017 16:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dimhen at gmail dot com
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:
Message-ID: <bug-81940-4-rrx4r0pURZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81940-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02656.txt.bz2
Content-length: 144

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81940

--- Comment #8 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
r251306 PASS for me
>From gcc-bugs-return-573098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 14:50:24 2017
Return-Path: <gcc-bugs-return-573098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46545 invoked by alias); 23 Aug 2017 14:50: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 46465 invoked by uid 48); 23 Aug 2017 14:50:19 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81945] [8 Regression] ICE in operator[], at vec.h:749
Date: Wed, 23 Aug 2017 16:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-81945-4-wPmUSk79qw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81945-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81945-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02657.txt.bz2
Content-length: 406

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81945

amker at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |amker at gcc dot gnu.org

--- Comment #2 from amker at gcc dot gnu.org ---
Thanks for reporting, I will investigate the issue.
>From gcc-bugs-return-573099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 15:13:13 2017
Return-Path: <gcc-bugs-return-573099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39153 invoked by alias); 23 Aug 2017 15:13:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 38034 invoked by uid 48); 23 Aug 2017 15:13:07 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81949] New: DOM fails to simplify conditional
Date: Wed, 23 Aug 2017 16:59: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
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-81949-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02658.txt.bz2
Content-length: 948

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81949

            Bug ID: 81949
           Summary: DOM fails to simplify conditional
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: law at redhat dot com
  Target Milestone: ---

DOM fails to simplify the 3rd conditional in the test 20030922-2.c.  This is by
current design and the test is xfailed.

This is a regression relative to gcc-7 and earlier.

So solve this within the DOM framework we'd need to build unwindable
equivalence classes from the conditional equivalences.  Given those classes, we
could then iterate over the items within the equivalence class for each use
operand to see if using an equivalent SSA_NAME allows a given statement to
simplify (not just propagate, but truly simplify).
>From gcc-bugs-return-573100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 15:21:33 2017
Return-Path: <gcc-bugs-return-573100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74681 invoked by alias); 23 Aug 2017 15:21:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 74550 invoked by uid 48); 23 Aug 2017 15:21:28 -0000
From: "Judy.Ward at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81950] New: _GLIBCXX17 macro not used consistently
Date: Wed, 23 Aug 2017 17:07: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: Judy.Ward 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-81950-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02659.txt.bz2
Content-length: 881

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81950

            Bug ID: 81950
           Summary: _GLIBCXX17 macro not used consistently
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Judy.Ward at intel dot com
  Target Milestone: ---

The macro _GLIBCXX17_INLINE is used in most places in the headers to represent
the need for the c++17 inline variable feature. This makes it useful to
compilers (like the Intel compiler) which does not yet have support for this
feature.

However there is one place where this macro is not used - line 366 of utility,
i.e.:
       inline constexpr in_place_t in_place{};

should be:

      _GLIBCXX17 constexpr in_place_t in_place{};

Please fix.

thanks
>From gcc-bugs-return-573101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 15:23:53 2017
Return-Path: <gcc-bugs-return-573101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81810 invoked by alias); 23 Aug 2017 15:23: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 81774 invoked by uid 48); 23 Aug 2017 15:23:48 -0000
From: "Judy.Ward at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81950] _GLIBCXX17_INLINEmacro not used consistently
Date: Wed, 23 Aug 2017 17:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Judy.Ward 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: short_desc
Message-ID: <bug-81950-4-w0MnU1Juvy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81950-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81950-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02660.txt.bz2
Content-length: 566

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81950

Judy Ward <Judy.Ward at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|_GLIBCXX17 macro not used   |_GLIBCXX17_INLINEmacro not
                   |consistently                |used consistently

--- Comment #1 from Judy Ward <Judy.Ward at intel dot com> ---

In the comment above I meant to say the line should be changed to:

    _GLIBCXX17_INLINE constexpr in_place_t in_place{};
>From gcc-bugs-return-573102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 15:41:48 2017
Return-Path: <gcc-bugs-return-573102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56869 invoked by alias); 23 Aug 2017 15:41: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 56807 invoked by uid 48); 23 Aug 2017 15:41:44 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk0Nl0gcnVudGltZS5pbmM6NzgyOjI4OiBlcnJvcjogZmll?= =?UTF-8?B?bGQg4oCYX19zZW1fbG9ja+KAmSBoYXMgaW5jb21wbGV0ZSB0eXBl?Date: Wed, 23 Aug 2017 17:28: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: mfe at live dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81946-4-xRJMSUwI3i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02661.txt.bz2
Content-length: 270

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946

--- Comment #2 from martin <mfe at live dot de> ---
Created attachment 42031
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42031&action=edit
generated runtime.inc

contains the incomplete type __sem_lock.
>From gcc-bugs-return-573103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 15:43:17 2017
Return-Path: <gcc-bugs-return-573103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60304 invoked by alias); 23 Aug 2017 15:43: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 60239 invoked by uid 48); 23 Aug 2017 15:43:13 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk0Nl0gcnVudGltZS5pbmM6NzgyOjI4OiBlcnJvcjogZmll?= =?UTF-8?B?bGQg4oCYX19zZW1fbG9ja+KAmSBoYXMgaW5jb21wbGV0ZSB0eXBl?Date: Wed, 23 Aug 2017 17:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mfe at live dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81946-4-ZQToBJE6UA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02662.txt.bz2
Content-length: 285

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946

--- Comment #3 from martin <mfe at live dot de> ---
The ‘__sem_lock’ struct is contained in:

struct semt {
        struct __pthread_fastlock __sem_lock;
        int32_t __sem_value;
        void* __sem_waiting;
};
>From gcc-bugs-return-573104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 15:46:10 2017
Return-Path: <gcc-bugs-return-573104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64136 invoked by alias); 23 Aug 2017 15:46: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 64076 invoked by uid 48); 23 Aug 2017 15:46:06 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56763] "attribute ignored in declaration of " warning points to wrong place
Date: Wed, 23 Aug 2017 17: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: unknown
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-56763-4-ZKbebn8ii6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56763-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56763-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02663.txt.bz2
Content-length: 723

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56763

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, I'd also expect the offending attribute to be underlined now that
gcc has rich location support.
>From gcc-bugs-return-573105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 15:48:51 2017
Return-Path: <gcc-bugs-return-573105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74278 invoked by alias); 23 Aug 2017 15:48:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 73974 invoked by uid 48); 23 Aug 2017 15:48:42 -0000
From: "jcowgill+gcc at jcowgill dot uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81951] New: [7/8 Regression] ICE returning 16 byte struct on s390x with -mno-lra
Date: Wed, 23 Aug 2017 17:41: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: jcowgill+gcc at jcowgill dot uk
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81951-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02664.txt.bz2
Content-length: 1993

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81951

            Bug ID: 81951
           Summary: [7/8 Regression] ICE returning 16 byte struct on s390x
                    with -mno-lra
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jcowgill+gcc at jcowgill dot uk
  Target Milestone: ---

This works with GCC 6, but is broken on GCC 7 and GCC 8. I know that -mno-lra
is pretty much dead, but I thought I would submit this bug anyway.

$ cat test.cpp 
struct big { int a, b, c, d; };
big retbig() { return {}; }

$ ../build-s390/gcc/xg++ -B../build-s390/gcc -S -mno-lra -O1 test.cpp
test.cpp: In function ‘big retbig()’:
test.cpp:2:27: error: insn does not satisfy its constraints:
 big retbig() { return {}; }
                           ^
(insn 15 3 6 2 (set (reg:TI 4 %r4)
        (const_int 0 [0])) "test.cpp":2 1266 {movti}
     (nil))
during RTL pass: postreload
test.cpp:2:27: internal compiler error: in extract_constrain_insn, at
recog.c:2213
0x109b695 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/gcc/rtl-error.c:108
0x109b6f5 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc/gcc/rtl-error.c:118
0x1048b7f extract_constrain_insn(rtx_insn*)
        ../../gcc/gcc/recog.c:2213
0x1012b96 reload_cse_simplify_operands
        ../../gcc/gcc/postreload.c:391
0x101205c reload_cse_simplify
        ../../gcc/gcc/postreload.c:120
0x10123bf reload_cse_regs_1
        ../../gcc/gcc/postreload.c:218
0x1011ed5 reload_cse_regs
        ../../gcc/gcc/postreload.c:64
0x1017918 execute
        ../../gcc/gcc/postreload.c:2342
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
>From gcc-bugs-return-573106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 15:50:31 2017
Return-Path: <gcc-bugs-return-573106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79691 invoked by alias); 23 Aug 2017 15:50:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 79559 invoked by uid 48); 23 Aug 2017 15:50:27 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80598] -Wunused triggers for functions used in uninstantiated templates
Date: Wed, 23 Aug 2017 17:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.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: see_also
Message-ID: <bug-80598-4-8Q5ohnm8mv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80598-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80598-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02665.txt.bz2
Content-length: 883

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80598

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=56936

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #1)
> Confirmed, although I think there might be a duplicate around here
> somewhere, the part about uninstantiated templates sounds familiar...

Right, it was bug 56936, but that was about a warning being missing due to
templates being uninstantiated, while this is the reverse: an excess warning
being printed due to templates being uninstantiated. So I'll leave them
separate.
>From gcc-bugs-return-573107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:02:09 2017
Return-Path: <gcc-bugs-return-573107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49740 invoked by alias); 23 Aug 2017 16:02: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 47507 invoked by uid 48); 23 Aug 2017 16:02:05 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59922] -finstrument-functions emit false warning "control reaches end of non-void function"
Date: Wed, 23 Aug 2017 18: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: 4.8.2
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-59922-4-e507km3arH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59922-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59922-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02666.txt.bz2
Content-length: 713

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59922

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed. Happens with optimization levels -O0 and -Os, but not -O1, -O2, -O3,
-Og, or -Ofast.
>From gcc-bugs-return-573108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:05:21 2017
Return-Path: <gcc-bugs-return-573108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80425 invoked by alias); 23 Aug 2017 16:05: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 73680 invoked by uid 48); 23 Aug 2017 16:05:17 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80503] ICE in extract_insn, at recog.c:2311 on ppc64le-linux-gnu
Date: Wed, 23 Aug 2017 18:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner 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: cc
Message-ID: <bug-80503-4-rhr37SgTO4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80503-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80503-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02667.txt.bz2
Content-length: 404

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80503

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bergner at gcc dot gnu.org

--- Comment #3 from Peter Bergner <bergner at gcc dot gnu.org> ---
Closed as duplicate.
>From gcc-bugs-return-573109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:17:17 2017
Return-Path: <gcc-bugs-return-573109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112185 invoked by alias); 23 Aug 2017 16:17: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 112042 invoked by uid 48); 23 Aug 2017 16:17:05 -0000
From: "barry.revzin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81952] New: copy elision used when constructor needs to be called
Date: Wed, 23 Aug 2017 18:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
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-81952-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02668.txt.bz2
Content-length: 1164

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81952

            Bug ID: 81952
           Summary: copy elision used when constructor needs to be called
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: barry.revzin at gmail dot com
  Target Milestone: ---

>From StackOverflow (https://stackoverflow.com/q/45843428/2069064), a reduced
example:

#include <iostream>

template <class T>
struct opt {
    opt() { }
    opt(opt const& ) { std::cout << "1a\n"; }
    opt(opt&& ) { std::cout << "1b\n"; }

    template <class U>
    opt(U&& ) { std::cout << "2\n"; }
};

struct foo 
{
    explicit operator opt<int>() { std::cout << "3\n"; return {}; }
};

int main()
{
    opt<int> o(foo{});
}

This is direct-initialization of an object not of the same type, so we need to
go through the constructors, the best of which is the template so this program
should print 2. But instead, gcc elides this and just invokes the opt<int>
conversion function and prints 3 (but not 1b, just 3).
>From gcc-bugs-return-573110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:30:58 2017
Return-Path: <gcc-bugs-return-573110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8907 invoked by alias); 23 Aug 2017 16:30: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 8749 invoked by uid 48); 23 Aug 2017 16:30:51 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Wed, 23 Aug 2017 18:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81931-4-2VRdDguEvK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02669.txt.bz2
Content-length: 861

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #10 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #9)
> (In reply to Richard Biener from comment #7)
> Fixes testcase.  Untested otherwise.
> 
> diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c
> index 676c806..04a30b8 100644
> --- a/gcc/tree-ssanames.c
> +++ b/gcc/tree-ssanames.c
> @@ -470,7 +470,7 @@ get_nonzero_bits (const_tree name)
>    if (TREE_CODE (name) == INTEGER_CST)
>      return name;
>  
> -  unsigned int precision = TYPE_PRECISION (TREE_TYPE (name));
> +  unsigned int precision = element_precision (TREE_TYPE (name));
>    if (POINTER_TYPE_P (TREE_TYPE (name)))
>      {
>        struct ptr_info_def *pi = SSA_NAME_PTR_INFO (name);

Tested on powerpc64-linux {-m32,-m64}; it fixes everything.  Thanks!
>From gcc-bugs-return-573111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:31:40 2017
Return-Path: <gcc-bugs-return-573111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10019 invoked by alias); 23 Aug 2017 16:31:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9935 invoked by uid 48); 23 Aug 2017 16:31:35 -0000
From: "rs2740 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81950] _GLIBCXX17_INLINE macro not used consistently
Date: Wed, 23 Aug 2017 19:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
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: cc
Message-ID: <bug-81950-4-ikIcpcuHTl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81950-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81950-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02670.txt.bz2
Content-length: 504

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81950

TC <rs2740 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rs2740 at gmail dot com

--- Comment #2 from TC <rs2740 at gmail dot com> ---
Unless I'm mistaken, the practice is to use _GLIBCXX17_INLINE on things in C++
<= 14 that are newly made inline in C++17. in_place is new in C++17.
>From gcc-bugs-return-573112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:38:21 2017
Return-Path: <gcc-bugs-return-573112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123823 invoked by alias); 23 Aug 2017 16:38: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 123762 invoked by uid 48); 23 Aug 2017 16:38:17 -0000
From: "pthaugen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81953] New: Code sinking results in increased use of callee saved registers
Date: Wed, 23 Aug 2017 19:49: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: pthaugen 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-81953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02671.txt.bz2
Content-length: 1041

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81953

            Bug ID: 81953
           Summary: Code sinking results in increased use of callee saved
                    registers
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pthaugen at gcc dot gnu.org
                CC: dje.gcc at gmail dot com, wschmidt at gcc dot gnu.org
  Target Milestone: ---
              Host: powerpc64le-unknown-linux-gnu
            Target: powerpc64le-unknown-linux-gnu
             Build: powerpc64le-unknown-linux-gnu

void bar();
int j;
void foo(int a, int b, int c, int d, int e, int f)
{
  int l;
  l = a + b + c + d +e + f;
  if (a != 5)
    {
      bar();
      j = l;
    }
}


The whole expression "l = a + b + c..." is moved past the call to bar(), which
means we now need to use 6 callee-saved regs to hold the parm values across the
call.
>From gcc-bugs-return-573113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:46:42 2017
Return-Path: <gcc-bugs-return-573113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3054 invoked by alias); 23 Aug 2017 16:46: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 2947 invoked by uid 48); 23 Aug 2017 16:46:36 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81953] Code sinking increases register pressure
Date: Wed, 23 Aug 2017 19:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
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: NEW
X-Bugzilla-Resolution:
X-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 short_desc everconfirmed
Message-ID: <bug-81953-4-ObFcptwMcH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81953-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02672.txt.bz2
Content-length: 954

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81953

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
            Summary|Code sinking results in     |Code sinking increases
                   |increased use of callee     |register pressure
                   |saved registers             |
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Part of it is ter.  We should have a simple code motion pass (schedule) that
happens right before expand that reduces register pressure.  I think there are
other bug reports about TER interaction and register pressure too.
>From gcc-bugs-return-573114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:52:47 2017
Return-Path: <gcc-bugs-return-573114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12216 invoked by alias); 23 Aug 2017 16:52:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12072 invoked by uid 48); 23 Aug 2017 16:52:41 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 2017 19:58: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: openacc, openmp
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:
Message-ID: <bug-81936-4-IYx0otwpsl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02673.txt.bz2
Content-length: 1277

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #13 from Tom de Vries <vries at gcc dot gnu.org> ---
I've tried to see if I could workaround the problem by disabling the assert:
...
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 0c339bd46f0..b2df3b89c2e 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -5538,9 +5538,12 @@ dwarf2out_die_ref_for_decl (tree decl, const char **sym,
   while (die->die_parent)
     die = die->die_parent;
   /* For the containing CU DIE we compute a die_symbol in
-     compute_comp_unit_symbol.  */
+     compute_comp_unit_symbol.
+     TODO: Remove flag_generate_offload from assert condition, and fix
+     fallout (PR81936).
+  */
   gcc_assert (die->die_tag == DW_TAG_compile_unit
-             && die->die_id.die_symbol != NULL);
+             && (die->die_id.die_symbol != NULL || flag_generate_offload));
   *sym = die->die_id.die_symbol;
   return true;
 }
...

That worked for pr66714.c, but for all other ICE-ing test-cases I run into
another ICE, now in mkoffload:
...
      else
        {
          /* Pickle stray references.  */
          t = lto_input_tree_1 (&ib_main, data_in, tag, 0);
          gcc_assert (t && data_in->reader_cache->nodes.length () == from);
        }
...
>From gcc-bugs-return-573115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:59:42 2017
Return-Path: <gcc-bugs-return-573115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42444 invoked by alias); 23 Aug 2017 16:59:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 41792 invoked by uid 48); 23 Aug 2017 16:59:36 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk0Nl0gcnVudGltZS5pbmM6NzgyOjI4OiBlcnJvcjogZmll?= =?UTF-8?B?bGQg4oCYX19zZW1fbG9ja+KAmSBoYXMgaW5jb21wbGV0ZSB0eXBl?Date: Wed, 23 Aug 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: 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: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81946-4-egNrhc1MBB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02674.txt.bz2
Content-length: 539

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> ---
Thanks.  This is a dup of PR 81449, which is fixed on trunk.

*** This bug has been marked as a duplicate of bug 81449 ***
>From gcc-bugs-return-573117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 17:07:06 2017
Return-Path: <gcc-bugs-return-573117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85033 invoked by alias); 23 Aug 2017 17:07:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84961 invoked by uid 55); 23 Aug 2017 17:07:01 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Wed, 23 Aug 2017 20:00: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: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse 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-81936-4-FVWsLVfgvP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02676.txt.bz2
Content-length: 1594

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #14 from rguenther at suse dot de <rguenther at suse dot de> ---
On August 23, 2017 6:52:40 PM GMT+02:00, "vries at gcc dot gnu.org"
<gcc-bugzilla@gcc.gnu.org> wrote:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936
>
>--- Comment #13 from Tom de Vries <vries at gcc dot gnu.org> ---
>I've tried to see if I could workaround the problem by disabling the
>assert:
>...
>diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
>index 0c339bd46f0..b2df3b89c2e 100644
>--- a/gcc/dwarf2out.c
>+++ b/gcc/dwarf2out.c
>@@ -5538,9 +5538,12 @@ dwarf2out_die_ref_for_decl (tree decl, const
>char **sym,
>   while (die->die_parent)
>     die = die->die_parent;
>   /* For the containing CU DIE we compute a die_symbol in
>-     compute_comp_unit_symbol.  */
>+     compute_comp_unit_symbol.
>+     TODO: Remove flag_generate_offload from assert condition, and fix
>+     fallout (PR81936).
>+  */
>   gcc_assert (die->die_tag == DW_TAG_compile_unit
>-             && die->die_id.die_symbol != NULL);
>+             && (die->die_id.die_symbol != NULL ||
>flag_generate_offload));
>   *sym = die->die_id.die_symbol;
>   return true;
> }
>...
>
>That worked for pr66714.c, but for all other ICE-ing test-cases I run
>into
>another ICE, now in mkoffload:
>...
>      else
>        {
>          /* Pickle stray references.  */
>          t = lto_input_tree_1 (&ib_main, data_in, tag, 0);
>      gcc_assert (t && data_in->reader_cache->nodes.length () == from);
>        }
>...
That looks odd, I'll see if I can reproduce tomorrow.
>From gcc-bugs-return-573116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 16:59:43 2017
Return-Path: <gcc-bugs-return-573116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42494 invoked by alias); 23 Aug 2017 16:59:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 41952 invoked by uid 48); 23 Aug 2017 16:59:37 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTQ0OV0gcnVudGltZS5pbmM6NzgyOjI4OiBlcnJvcjogZmll?= =?UTF-8?B?bGQg4oCYX19zZW1fbG9ja+KAmSBoYXMgaW5jb21wbGV0ZSB0eXBl?Date: Wed, 23 Aug 2017 20:00: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81449-4-cOBsyYXKW5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81449-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81449-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02675.txt.bz2
Content-length: 179

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81449

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> ---
*** Bug 81946 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-573118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 17:25:29 2017
Return-Path: <gcc-bugs-return-573118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125441 invoked by alias); 23 Aug 2017 17: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 124761 invoked by uid 48); 23 Aug 2017 17:25:00 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81950] _GLIBCXX17_INLINE macro not used consistently
Date: Wed, 23 Aug 2017 20:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.kruegler at googlemail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81950-4-59PztFVwDf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81950-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81950-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02677.txt.bz2
Content-length: 1094

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81950

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Judy Ward from comment #1)
> In the comment above I meant to say the line should be changed to:
> 
>     _GLIBCXX17_INLINE constexpr in_place_t in_place{};

TC's guess is correct. The omission is intentionally, because the macro is
designed to be used in contexts which are unaware of the actual C++ version and
in_place_t was introduced with C++17, see
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0504r0.html and some
papers related to std::optional in-place construction. The surrounding #ifdef
block of the variable definition you are complaining about is only available
since C++17.
>From gcc-bugs-return-573119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 17:28:33 2017
Return-Path: <gcc-bugs-return-573119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12394 invoked by alias); 23 Aug 2017 17:28: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 12186 invoked by uid 48); 23 Aug 2017 17:28:23 -0000
From: "naruse at airemix dot jp" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81954] New: gcc8 too aggressively reorders memory access beyond condition
Date: Wed, 23 Aug 2017 20:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: naruse at airemix dot jp
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned 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-81954-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02678.txt.bz2
Content-length: 8362

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81954

            Bug ID: 81954
           Summary: gcc8 too aggressively reorders memory access beyond
                    condition
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: naruse at airemix dot jp
  Target Milestone: ---

Created attachment 42032
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42032&action=edit
vm.i, generated from vm.c

Environments: shown below
the preprocessed file (*.i*): attached vm.i

How to reproduce from source:

% gcc8 -v
Using built-in specs.
COLLECT_GCC=gcc8
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc8/gcc/x86_64-portbld-freebsd10.3/8.0.0/lto-wrapper
Target: x86_64-portbld-freebsd10.3
Configured with:
/wrkdirs/usr/ports/lang/gcc8-devel/work/gcc-8-20170820/configure
--with-build-config=bootstrap-debug --disable-nls
--enable-gnu-indirect-function --libdir=/usr/local/lib/gcc8
--libexecdir=/usr/local/libexec/gcc8 --program-suffix=8
--with-as=/usr/local/bin/as --with-gmp=/usr/local
--with-gxx-include-dir=/usr/local/lib/gcc8/include/c++/
--with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection'
--with-system-zlib --enable-languages=c,c++,objc,fortran --prefix=/usr/local
--localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/gcc8
--build=x86_64-portbld-freebsd10.3
Thread model: posix
gcc version 8.0.0 20170820 (experimental) (FreeBSD Ports Collection)
% git clone git@github.com:ruby/ruby.git
% cd ruby
% autoconf
% ./configure optflags='-O3 -Wl,-rpath=/usr/local/lib/gcc8'
--with-gcc='/usr/local/bin/gcc8'
% make miniruby
% gdb --args ./miniruby -e'Thread.new("foo", &Object.method(:class_eval)).join'
GNU gdb (GDB) 8.0 [GDB v8.0 for FreeBSD]
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd10.3".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./miniruby...done.
(gdb) r
Starting program: /tmp/ruby/miniruby -eThread.new\(\"foo\",\
\&Object.method\(:class_eval\)\).join
[New LWP 101479 of process 94182]
[New LWP 101478 of process 94182]

Thread 2 received signal SIGSEGV, Segmentation fault.
[Switching to LWP 101479 of process 94182]
0x000000000124c591 in rb_vm_get_ruby_level_next_cfp (cfp=0x805506000,
th=<optimized out>)
    at vm.c:505
505             cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
(gdb) disas 0x000000000124c591-61,+116
Dump of assembler code from 0x124c554 to 0x124c5c8:
   0x000000000124c554 <eval_string_with_cref+116>:      mov    0x60(%rsp),%rdx
   0x000000000124c559 <eval_string_with_cref+121>:      mov    0x28(%rdx),%rcx
   0x000000000124c55d <eval_string_with_cref+125>:      mov    0x20(%rdx),%rdx
   0x000000000124c561 <eval_string_with_cref+129>:      mov    0x30(%rax),%rax
   0x000000000124c565 <eval_string_with_cref+133>:      lea   
(%rdx,%rcx,8),%rcx
   0x000000000124c569 <eval_string_with_cref+137>:      cmp    %rcx,%rax
   0x000000000124c56c <eval_string_with_cref+140>:      jae    0x124c59f
<eval_string_with_cref+191>
   0x000000000124c56e <eval_string_with_cref+142>:      mov    0x20(%rax),%rdx
   0x000000000124c572 <eval_string_with_cref+146>:      testb  $0x80,(%rdx)
   0x000000000124c575 <eval_string_with_cref+149>:      jne    0x124c589
<eval_string_with_cref+169>
   0x000000000124c577 <eval_string_with_cref+151>:      jmpq   0x124c6d8
<eval_string_with_cref+504>
   0x000000000124c57c <eval_string_with_cref+156>:      nopl   0x0(%rax)
   0x000000000124c580 <eval_string_with_cref+160>:      test   %rdx,%rdx
   0x000000000124c583 <eval_string_with_cref+163>:      je     0x124c6d8
<eval_string_with_cref+504>
   0x000000000124c589 <eval_string_with_cref+169>:      add    $0x30,%rax
   0x000000000124c58d <eval_string_with_cref+173>:      mov    0x20(%rax),%rdx
=> 0x000000000124c591 <eval_string_with_cref+177>:      mov    (%rdx),%rdx
   0x000000000124c594 <eval_string_with_cref+180>:      and    $0x80,%edx
   0x000000000124c59a <eval_string_with_cref+186>:      cmp    %rax,%rcx
   0x000000000124c59d <eval_string_with_cref+189>:      ja     0x124c580
<eval_string_with_cref+160>
   0x000000000124c59f <eval_string_with_cref+191>:      lea   
0x306f5a(%rip),%rax        # 0x1553500 <rb_eRuntimeError>
   0x000000000124c5a6 <eval_string_with_cref+198>:      lea   
0x4a79b(%rip),%rsi        # 0x1296d48
   0x000000000124c5ad <eval_string_with_cref+205>:      mov    (%rax),%rdi
   0x000000000124c5b0 <eval_string_with_cref+208>:      xor    %eax,%eax
   0x000000000124c5b2 <eval_string_with_cref+210>:      callq  0x10c4af0
<rb_raise>
   0x000000000124c5b7 <eval_string_with_cref+215>:      nopw   0x0(%rax,%rax,1)
   0x000000000124c5c0 <eval_string_with_cref+224>:      lea   
0x2f3499(%rip),%rsi        # 0x153fa60 <ruby_binding_data_type>
   0x000000000124c5c7 <eval_string_with_cref+231>:      mov    %rax,%rdi
End of assembler dump.

Related macro expanded C source (vm.i) is as follows:
```
static rb_control_frame_t *
vm_get_ruby_level_caller_cfp(const rb_thread_t *th, const rb_control_frame_t
*cfp)
{
    if (VM_FRAME_RUBYFRAME_P(cfp)) {
 return (rb_control_frame_t *)cfp;
    }

    cfp = ((cfp)+1);

    while (!(!((void *)(((rb_control_frame_t *)((th)->ec.vm_stack +
(th)->ec.vm_stack_size))) > (void *)((cfp))))) {
 if (VM_FRAME_RUBYFRAME_P(cfp)) {
     return (rb_control_frame_t *)cfp;
 }

 if (VM_ENV_FLAGS(cfp->ep, VM_FRAME_FLAG_PASSED) == 0) {
     break;
 }
 cfp = ((cfp)+1);
    }
    return 0;
}
```

As the vm.i file shows, it loops from 0x124c59d to 0x124c580.
When cfp (%rax) become larger than `(th)->ec.vm_stack + (th)->ec.vm_stack_size`
(%rcx), it escapes from while loop.

But at that time, cfp may be pointed invalid structure.
VM_FRAME_RUBYFRAME_P(cfp) accesses `cfp->ep[0]`.
On the C source, it is safe while "while 'scondition is true => cfp->ep[0] is
valid" is satisfied.

But optimized asm compiled by GCC8 accesses `cfp->ep[0]` at 0x124c591
before checking while condition and jump at 0x124c59a,0x124c594.

As far as I understand, such optimization is not allowed in C (especially on
x86).


Expected binary is like below:
```
  22e893:       48 8b 44 24 60          mov    0x60(%rsp),%rax
  22e898:       48 8b 54 24 60          mov    0x60(%rsp),%rdx
  22e89d:       48 8b 4a 28             mov    0x28(%rdx),%rcx
  22e8a1:       48 8b 52 20             mov    0x20(%rdx),%rdx
  22e8a5:       48 8b 40 30             mov    0x30(%rax),%rax
  22e8a9:       48 8d 0c ca             lea    (%rdx,%rcx,8),%rcx
  22e8ad:       48 39 c8                cmp    %rcx,%rax
  22e8b0:       72 27                   jb     22e8d9
<eval_string_with_cref+0xb9>
  22e8b2:       66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)
  22e8b8:       48 8b 3d e1 42 30 00    mov    0x3042e1(%rip),%rdi        #
532ba0 <rb_eRuntimeError
>
  22e8bf:       48 8d 35 4a ba 04 00    lea    0x4ba4a(%rip),%rsi        #
27a310 <ruby_api_version+
0x888>
  22e8c6:       31 c0                   xor    %eax,%eax
  22e8c8:       e8 e3 76 e7 ff          callq  a5fb0 <rb_raise>
  22e8cd:       0f 1f 00                nopl   (%rax)
  22e8d0:       48 83 c0 30             add    $0x30,%rax
  22e8d4:       48 39 c1                cmp    %rax,%rcx
  22e8d7:       76 df                   jbe    22e8b8
<eval_string_with_cref+0x98>
  22e8d9:       48 8b 50 20             mov    0x20(%rax),%rdx
  22e8dd:       f6 02 80                testb  $0x80,(%rdx)
  22e8e0:       75 ee                   jne    22e8d0
<eval_string_with_cref+0xb0>
  22e8e2:       c5 fa 6f 40 18          vmovdqu 0x18(%rax),%xmm0
```

It has cmp and be before accessing `0x20(%rax)`.
>From gcc-bugs-return-573121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 17:33:36 2017
Return-Path: <gcc-bugs-return-573121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28345 invoked by alias); 23 Aug 2017 17:33: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 28253 invoked by uid 48); 23 Aug 2017 17:33:29 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81954] gcc8 too aggressively reorders memory access beyond condition
Date: Wed, 23 Aug 2017 20:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: alias, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-81954-4-F2oWL28r5o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81954-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81954-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02680.txt.bz2
Content-length: 403

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81954

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |alias

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There might be an alias bug in the code.
>From gcc-bugs-return-573120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 17:32:53 2017
Return-Path: <gcc-bugs-return-573120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25918 invoked by alias); 23 Aug 2017 17:32:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25860 invoked by uid 48); 23 Aug 2017 17:32:48 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 20:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.kruegler at googlemail 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: cc
Message-ID: <bug-81928-4-BGOSlN7ot3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02679.txt.bz2
Content-length: 1307

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #5 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Matthieu Brucher from comment #4)
> I would agree if the debug and optimized versions had the same behavior.
> They do not. As such there should be a huge warning about the undefined
> behavior. 

The test alone is not undefined behaviour. This is like requesting that the
following code has undefined behaviour:

int main() 
{
  int i = 12;
  int* that = &i;
  if (!that) {}
}

> And no, it's not valid code, it's an undefined behavior, you can do whatever
> you want with it. Outputting an error is a better solution, even adding a
> warning is.  Silently optimizing an undefined behavior away is not.

This argumentation is wrong. There is nothing fundamentally wrong to compare
'this' against null. The only reason to request a warning is because this test
cannot evaluate to true in conforming programs.
>From gcc-bugs-return-573122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 17:41:46 2017
Return-Path: <gcc-bugs-return-573122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31451 invoked by alias); 23 Aug 2017 17:41: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 31375 invoked by uid 48); 23 Aug 2017 17:41:41 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81947] variadic template specialization doesn't compile
Date: Wed, 23 Aug 2017 20:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.7
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.kruegler at googlemail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81947-4-oJRwn2XeD9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81947-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81947-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02681.txt.bz2
Content-length: 898

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81947

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
gcc 4.4.7 has no complete C++11 support. AFAIK the first gcc version targetting
C++11 is the 4.7 series and when testing against 4.7.3 (The oldest 4.7 version
available to me), compiles the code successfully. I don't think that any
further C++11 support is planned for 4.4.7, I recommend to switch to a newer
gcc version or to give up attempting to use C++11 code with a compiler that is
not designed to support C++11.
>From gcc-bugs-return-573123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 17:43:53 2017
Return-Path: <gcc-bugs-return-573123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38328 invoked by alias); 23 Aug 2017 17:43:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 38275 invoked by uid 48); 23 Aug 2017 17:43:49 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk0Nl0gcnVudGltZS5pbmM6NzgyOjI4OiBlcnJvcjogZmll?= =?UTF-8?B?bGQg4oCYX19zZW1fbG9ja+KAmSBoYXMgaW5jb21wbGV0ZSB0eXBl?Date: Wed, 23 Aug 2017 20:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mfe at live dot de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
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-81946-4-OT3cGizbdJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02682.txt.bz2
Content-length: 212

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946

--- Comment #5 from martin <mfe at live dot de> ---
I'm sorry for the trouble, I thought Bugfix 81449 is contained in the gcc 7.2.
release of Aug 14, 2017.
>From gcc-bugs-return-573124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 18:23:15 2017
Return-Path: <gcc-bugs-return-573124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53205 invoked by alias); 23 Aug 2017 18:23: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 53141 invoked by uid 48); 23 Aug 2017 18:23:09 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk0Nl0gcnVudGltZS5pbmM6NzgyOjI4OiBlcnJvcjogZmll?= =?UTF-8?B?bGQg4oCYX19zZW1fbG9ja+KAmSBoYXMgaW5jb21wbGV0ZSB0eXBl?Date: Wed, 23 Aug 2017 20:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: DUPLICATE
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-81946-4-Ob7hdDZOtn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02683.txt.bz2
Content-length: 183

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946

--- Comment #6 from Ian Lance Taylor <ian at airs dot com> ---
It will be in GCC 8 but nobody backported it to the GCC 7 branch.
>From gcc-bugs-return-573125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 18:32:30 2017
Return-Path: <gcc-bugs-return-573125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66216 invoked by alias); 23 Aug 2017 18:32: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 66049 invoked by uid 48); 23 Aug 2017 18:32:24 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 20: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher 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-81928-4-z4Pn1MK6Ap@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02684.txt.bz2
Content-length: 1154

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #6 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
I never said that the test alone should be banned. Please read the original
message first.
I said that if(!this) in the context of a method gives "unexpected" behavior
(according to the standard and the difference in behavior of GCC between debug
and optimized mode) and thus should give an error or at least a warning, and
this is easy to catch.
At least make it a warning, like clang does when it detects that a path is
always true or false, some kind of way for the user to _know_ that they messed
up. The warning is not complicated to do as that's what the optimizer deduces
given the constraints.

And yes, there is something fundamentally wrong with comparing this to nullptr
according to the C++ standard and the contract GCC has in its optimizer. Or
give a reason why it is valid and where the standard says it supercedes the
undefined behavior and the thread discussion on why GCC added the optimization
constraint.
And in that case, you should probably remove the optimization as well to be
consistent.
>From gcc-bugs-return-573127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 18:58:19 2017
Return-Path: <gcc-bugs-return-573127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111573 invoked by alias); 23 Aug 2017 18:58:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 111470 invoked by uid 48); 23 Aug 2017 18:58:11 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 20: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher 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-81928-4-RCmDEX2v7Z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02686.txt.bz2
Content-length: 1276

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #8 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
In a header:
class Foo
{
public:
  void bar();
};

Inthe corresponding source:

#include <iostream>
void Foo::bar()
{
  if(this)
  {
    std::cout << "Pointer is not null";
  }
  else
  {
    std::cout << "Pointer is null, this should not happen, undefined behavior";
  }
}

in main.cpp

int main(int argc, char** argv)
{
  Foo foo;
  foo.bar();

  Foo* foo2 = nullptr;
  foo2->bar();

  return 0;
}

In debug mode, you get once the Pointer is not null and then the other display,
in optimized mode, you get twice the first one.

What is fundamentally wrong is stated in the standard. It is an undefined
behavior to call a method from a null pointer. So testing this inside a method
is an undefined behavior: https://www.viva64.com/en/w/V668/ or even better
https://www.viva64.com/en/b/0226/ since at the time it is clear that gcc didn't
use this perfectly fine optimization.

Once again, GCC acts on this undefined behavior by setting the comparison to
false in optmized mode, which is perfectly fine. The problem is doing so
_silently_, as I said in my original message. Especially since now GCC acts on
this in a non-classic way.
>From gcc-bugs-return-573126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 18:42:26 2017
Return-Path: <gcc-bugs-return-573126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41986 invoked by alias); 23 Aug 2017 18:42: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 35059 invoked by uid 48); 23 Aug 2017 18:42:20 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 20: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.kruegler at googlemail 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-81928-4-oEGbjJqIem@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02685.txt.bz2
Content-length: 1805

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #7 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Matthieu Brucher from comment #6)
> I never said that the test alone should be banned. Please read the original
> message first.

I had done so before I replied. And it seems that I'm not the only one who has
problems understanding your request.

> I said that if(!this) in the context of a method gives "unexpected" behavior
> (according to the standard and the difference in behavior of GCC between
> debug and optimized mode) and thus should give an error or at least a
> warning, and this is easy to catch.

I don't understand this. Please provide an example.

> At least make it a warning, like clang does when it detects that a path is
> always true or false, some kind of way for the user to _know_ that they
> messed up. 

I already suggested the same thing: The only reason to request a warning in
this case is because the test result has only one outcome. But this is
absolutely unrelated to undefined behaviour unless you clarify what precisely
your mean.

> And yes, there is something fundamentally wrong with comparing this to
> nullptr according to the C++ standard and the contract GCC has in its
> optimizer. 

You claim this repeatedly but I'm missing a proof for the "fundamentally wrong"
part. Except if you consider tautologies as "fundamentally wrong".

> Or give a reason why it is valid and where the standard says it
> supercedes the undefined behavior and the thread discussion on why GCC added
> the optimization constraint.
> And in that case, you should probably remove the optimization as well to be
> consistent.

This part is unclear without a specific example that you are talking about, see
above.
>From gcc-bugs-return-573128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 19:44:02 2017
Return-Path: <gcc-bugs-return-573128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6877 invoked by alias); 23 Aug 2017 19:44:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3982 invoked by uid 48); 23 Aug 2017 19:43:55 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81908] [8 Regression] FAIL: gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
Date: Wed, 23 Aug 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status assigned_to
Message-ID: <bug-81908-4-fMGf210JQY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02687.txt.bz2
Content-length: 564

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81908

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch: https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01394.html
>From gcc-bugs-return-573129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 19:49:41 2017
Return-Path: <gcc-bugs-return-573129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50987 invoked by alias); 23 Aug 2017 19: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 45065 invoked by uid 48); 23 Aug 2017 19:49:36 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 20:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: 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-81928-4-EhhvNDNIeH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02688.txt.bz2
Content-length: 783

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Matthieu Brucher from comment #8)
> What is fundamentally wrong is stated in the standard. It is an undefined
> behavior to call a method from a null pointer. So testing this inside a
> method is an undefined behavior

Nonsense.

It can never be null, but it's not undefined to check that. It's 100% defined
that this==nullptr is always false.
>From gcc-bugs-return-573130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 19:55:07 2017
Return-Path: <gcc-bugs-return-573130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40720 invoked by alias); 23 Aug 2017 19:55:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32356 invoked by uid 48); 23 Aug 2017 19:55:01 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81947] variadic template specialization doesn't compile
Date: Wed, 23 Aug 2017 20:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.7
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-81947-4-a9HEY1WE5p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81947-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81947-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02689.txt.bz2
Content-length: 553

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81947

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Right, GCC 4.4.7 is ancient and not supported here. This was fixed years ago.
>From gcc-bugs-return-573131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 19:58:33 2017
Return-Path: <gcc-bugs-return-573131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60125 invoked by alias); 23 Aug 2017 19:58:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56530 invoked by uid 48); 23 Aug 2017 19:58:27 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 20:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81928-4-4pbtIUkHAF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02690.txt.bz2
Content-length: 298

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #10 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
If it is always false, what impeds you for warning as such? Because numerous
people are checking this (and I agree that they shouldn't), as proven by my 2
links.
>From gcc-bugs-return-573132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 19:59:49 2017
Return-Path: <gcc-bugs-return-573132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97103 invoked by alias); 23 Aug 2017 19:59: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 93964 invoked by uid 48); 23 Aug 2017 19:59:44 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 20:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81928-4-KeIi5NjHKV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02691.txt.bz2
Content-length: 249

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #11 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
Oh, and if this is always false, why isn't it the case in debug mode? It is
then a bug according to what you said.
>From gcc-bugs-return-573133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:00:28 2017
Return-Path: <gcc-bugs-return-573133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114556 invoked by alias); 23 Aug 2017 20:00: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 99024 invoked by uid 48); 23 Aug 2017 20:00:03 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81950] _GLIBCXX17_INLINE macro not used consistently
Date: Wed, 23 Aug 2017 20:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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-81950-4-HMzkfcYfFW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81950-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81950-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02692.txt.bz2
Content-length: 877

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81950

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The explanations above are correct.

We could do something here dependent on __cpp_inline_variables >= 201606, if
that helps other compilers, but using _GLIBCXX17_INLINE isn't the right fix
(that should always be defined when __cplusplus > 201402L, so if the Intel
compiler is undefining it you should stop doing that, and work with us to
support your copiler properly).

I'd entertain patches to do that, but am unlikely top find time to do so
myself.
>From gcc-bugs-return-573134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:00:50 2017
Return-Path: <gcc-bugs-return-573134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115669 invoked by alias); 23 Aug 2017 20:00:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115435 invoked by uid 48); 23 Aug 2017 20:00:41 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher at gmail dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81928-4-sJS9HMwbmR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02693.txt.bz2
Content-length: 601

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

Matthieu Brucher <matthieu.brucher at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #12 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
Reopening, either this == nullptr is always false and then debug mode should be
changed accordingly, or add a warning. Some consistency is required here.
>From gcc-bugs-return-573135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:01:26 2017
Return-Path: <gcc-bugs-return-573135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15156 invoked by alias); 23 Aug 2017 20:01: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 9803 invoked by uid 48); 23 Aug 2017 20:01:22 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Wed, 23 Aug 2017 21:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-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 everconfirmed
Message-ID: <bug-81932-4-kQwnfGV73N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02694.txt.bz2
Content-length: 350

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |UNCONFIRMED
     Ever confirmed|1                           |0
>From gcc-bugs-return-573136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:03:19 2017
Return-Path: <gcc-bugs-return-573136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125609 invoked by alias); 23 Aug 2017 20:03:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125168 invoked by uid 48); 23 Aug 2017 20:03:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 21:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: 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-81928-4-djGtbfAGQ0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02695.txt.bz2
Content-length: 136

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
See comment 1.
>From gcc-bugs-return-573137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:04:13 2017
Return-Path: <gcc-bugs-return-573137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28056 invoked by alias); 23 Aug 2017 20:04: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 27992 invoked by uid 48); 23 Aug 2017 20:04:08 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60212] no warning for unused variables
Date: Wed, 23 Aug 2017 21:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-60212-4-6FvoW5gNxg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60212-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60212-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02696.txt.bz2
Content-length: 1071

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60212

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that clang warns while g++ doesn't.

$ /usr/local/bin/g++ -fwhole-program -O3 -std=c++11 -Wall -Wextra -Wunused
-pedantic -o 60212.exe 60212.cc
$ /sw/opt/llvm-3.1/bin/clang++ -fwhole-program -O3 -std=c++11 -Wall -Wextra
-Wunused -pedantic -o 60212c.exe 60212.cc
clang-3: warning: argument unused during compilation: '-fwhole-program'
60212.cc:5:7: warning: unused variable 'x' [-Wunused-variable]
    S x(a);
      ^
1 warning generated.
$
>From gcc-bugs-return-573139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:04:27 2017
Return-Path: <gcc-bugs-return-573139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29594 invoked by alias); 23 Aug 2017 20:04:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 29103 invoked by uid 55); 23 Aug 2017 20:04:22 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/72804] Poor code gen with -mvsx-timode
Date: Wed, 23 Aug 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: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72804-4-TsTATFYzwi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72804-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72804-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02697.txt.bz2
Content-length: 1069

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72804

--- Comment #8 from Peter Bergner <bergner at gcc dot gnu.org> ---
Author: bergner
Date: Wed Aug 23 20:03:46 2017
New Revision: 251318

URL: https://gcc.gnu.org/viewcvs?rev=251318&root=gcc&view=rev
Log:
gcc/
        Backport from mainline
        2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

        PR target/72804
        * config/rs6000/vsx.md (*vsx_le_permute_<mode>): Add support for
        operands residing in integer registers.
        (*vsx_le_perm_load_<mode>): Likewise.
        (*vsx_le_perm_store_<mode>): Likewise.
        (define_peephole2): Add peepholes to optimize the above.

gcc/testsuite/
        Backport from mainline
        2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

        PR target/72804
        * gcc.target/powerpc/pr72804.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/pr72804.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/rs6000/vsx.md
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-573138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:04:13 2017
Return-Path: <gcc-bugs-return-573138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28067 invoked by alias); 23 Aug 2017 20:04: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 28009 invoked by uid 48); 23 Aug 2017 20:04:09 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 22:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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:
Message-ID: <bug-81928-4-gQbHULn4PB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02698.txt.bz2
Content-length: 431

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Matthieu Brucher from comment #11)
> Oh, and if this is always false, why isn't it the case in debug mode? It is
> then a bug according to what you said.

It is always false in a valid program. If you create a situation where the this
pointer is null that's a bug in your program, not in GCC.
>From gcc-bugs-return-573140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:05:40 2017
Return-Path: <gcc-bugs-return-573140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43352 invoked by alias); 23 Aug 2017 20:05:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 43222 invoked by uid 48); 23 Aug 2017 20:05:36 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/72804] Poor code gen with -mvsx-timode
Date: Wed, 23 Aug 2017 22:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bergner at gcc dot gnu.org
X-Bugzilla-Status: CLOSED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-72804-4-zC4FifH8KU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72804-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72804-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02699.txt.bz2
Content-length: 406

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72804

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #9 from Peter Bergner <bergner at gcc dot gnu.org> ---
Fixed in GCC 7 now too.  Closing as fixed.
>From gcc-bugs-return-573141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:08:50 2017
Return-Path: <gcc-bugs-return-573141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48113 invoked by alias); 23 Aug 2017 20:08: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 47998 invoked by uid 48); 23 Aug 2017 20:08:45 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 22: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher at gmail dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81928-4-jiwUiVrBu1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02700.txt.bz2
Content-length: 626

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #15 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
Thanks, finally something relevant, yes it's a bug that can be easilly checked
by gcc and that GCC can easilly warn about. (lowering the bar here). Yes, the
user should chase the bug because they screwep on a monumental level. But why
can't gcc warn that the user is about to do something stupid or tell them that
the comparison is always true? 
Of course, if there is a warning level that already does that, my comment is
moot (although making it a higher level warning may help).
>From gcc-bugs-return-573142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:10:38 2017
Return-Path: <gcc-bugs-return-573142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50485 invoked by alias); 23 Aug 2017 20:10: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 50428 invoked by uid 48); 23 Aug 2017 20:10:31 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 22:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia 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:
Message-ID: <bug-81928-4-tu2NQXkQ7c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02701.txt.bz2
Content-length: 185

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-fsanitize=undefined will catch the NULL pointer at runtime.
>From gcc-bugs-return-573143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:13:15 2017
Return-Path: <gcc-bugs-return-573143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53881 invoked by alias); 23 Aug 2017 20:13: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 53838 invoked by uid 48); 23 Aug 2017 20:13:09 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60972] Mixing #pragma pack and __attribute__((packed)) leads to spurious warnings.
Date: Wed, 23 Aug 2017 22: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: 4.9.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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-60972-4-NgdmzqPJmI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60972-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60972-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02702.txt.bz2
Content-length: 825

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60972

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-23
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed. Another problem with the warnings is that there's no flag
controlling them. I'd expect one of -Wno-packed, -Wno-attributes, or
-Wno-ignored-attributes to disable the warning, but none of them do so.
>From gcc-bugs-return-573144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:13:53 2017
Return-Path: <gcc-bugs-return-573144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55157 invoked by alias); 23 Aug 2017 20:13: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 54729 invoked by uid 48); 23 Aug 2017 20:13:37 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Wed, 23 Aug 2017 23:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher at gmail dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81928-4-aGc2hamjQR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02703.txt.bz2
Content-length: 625

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #17 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
Not everyone runs this sanitizer, and not everyone has unit tests that can find
this error (the application I woked on that had this has numerous unit tests,
but this was not tested because the guy that wrote them forgot about this
undefined behavior or something similar).
It was discovered by chance on a product using it and tracked down.

Once again, a warning about conditions that are always true or false would
capture i, I don't know if gcc has it and if it would warn properly.
>From gcc-bugs-return-573145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:27:40 2017
Return-Path: <gcc-bugs-return-573145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86296 invoked by alias); 23 Aug 2017 20:27:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86034 invoked by uid 48); 23 Aug 2017 20:27:35 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Thu, 24 Aug 2017 00: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: 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-81928-4-9v0naWH3D0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02704.txt.bz2
Content-length: 943

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #18 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Matthieu Brucher from comment #15)
> Of course, if there is a warning level that already does that, my comment is
> moot (although making it a higher level warning may help).

As comment 1 already said, there is a warning about it already. Have you even
tried it before this long, rambling rant?

this.cc: In member function ‘void X::f()’:
this.cc:6:3: warning: nonnull argument ‘this’ compared to NULL
[-Wnonnull-compare]
   if (!this)
   ^~


It's included in -Wall
>From gcc-bugs-return-573146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:33:35 2017
Return-Path: <gcc-bugs-return-573146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106776 invoked by alias); 23 Aug 2017 20:33: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 106664 invoked by uid 48); 23 Aug 2017 20:33:29 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Thu, 24 Aug 2017 00:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher 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:
Message-ID: <bug-81928-4-9QLIWd7Yzw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02705.txt.bz2
Content-length: 678

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #19 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
That was my original comment... Thanks for quoting me...
The issue is that the warning doesn't tell me what you told me, that "this" is
never equal to nullptr in that context. This is what the warning should be (and
as such, yes, it is a bug).

This change in behavior (this is always different from nullptr) was introduced
in gcc 6. Any version before would still check that the condition is true, so
GCC behaves better now, handling better the case than before, but it still
needs to educate people that what they are doing is wrong.
>From gcc-bugs-return-573147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:34:14 2017
Return-Path: <gcc-bugs-return-573147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109861 invoked by alias); 23 Aug 2017 20:34: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 108758 invoked by uid 48); 23 Aug 2017 20:34:05 -0000
From: "matthieu.brucher at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Thu, 24 Aug 2017 00:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthieu.brucher at gmail dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81928-4-Z3csCe8uMt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02706.txt.bz2
Content-length: 463

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

Matthieu Brucher <matthieu.brucher at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---

--- Comment #20 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
Reopening, seriously!
>From gcc-bugs-return-573148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:34:20 2017
Return-Path: <gcc-bugs-return-573148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110264 invoked by alias); 23 Aug 2017 20:34: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 109864 invoked by uid 48); 23 Aug 2017 20:34:11 -0000
From: "adpc at riseup dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81955] New: corrupted double-linked list (not small)
Date: Thu, 24 Aug 2017 01:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adpc at riseup 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-81955-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02707.txt.bz2
Content-length: 12678

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81955

            Bug ID: 81955
           Summary: corrupted double-linked list (not small)
           Product: gcc
           Version: 6.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: adpc at riseup dot net
  Target Milestone: ---

Compiling firefox I've got the following message from glibc:

/usr/bin/x86_64-pc-linux-gnu-g++ -std=gnu++11 -o Unified_cpp_layout_base1.o -c
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/ff/dist/stl_wrappers
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/ff/dist/system_wrappers
-include
/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/config/gcc_hidden.h
-DNDEBUG=1 -DTRIMMED=1 -DOS_POSIX=1 -DOS_LINUX=1 -DSTATIC_EXPORTABLE_JS_API
-DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/base
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/ff/layout/base
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/ff/ipc/ipdl/_ipdlheaders
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/ipc/chromium/src
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/ipc/glue
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/forms
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/generic
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/mathml
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/painting
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/printing
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/style
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/svg
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/tables
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/xul
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/layout/xul/tree
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/docshell/base
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/dom/base
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/dom/html
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/dom/svg
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/dom/xbl
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/dom/xul
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/view
-I/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/ff/dist/include
 -I/usr/include/nspr -I/usr/include/nss       -fPIC  -DMOZILLA_CLIENT -include
/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/ff/mozilla-config.h
-MD -MP -MF .deps/Unified_cpp_layout_base1.o.pp  -Wall -Wc++11-compat
-Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith
-Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings
-Wno-invalid-offsetof -Wc++14-compat -Wno-error=maybe-uninitialized
-Wno-error=deprecated-declarations -Wno-error=array-bounds
-Wno-error=free-nonheap-object -Wformat -Wformat-security -march=native -pipe
-fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2
-fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno
-pthread -pipe  -freorder-blocks -O2 -fomit-frame-pointer  -Wno-error=shadow 
/var/tmp/portage/www-client/firefox-55.0.2/work/firefox-55.0.2/ff/layout/base/Unified_cpp_layout_base1.cpp
*** Error in `/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus': corrupted
double-linked list (not small): 0x0000000002ff9f70 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7b648)[0x3f436cef648]
/lib64/libc.so.6(+0x83abe)[0x3f436cf7abe]
/lib64/libc.so.6(+0x86317)[0x3f436cfa317]
/lib64/libc.so.6(__libc_malloc+0x73)[0x3f436cfbc83]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(xmalloc+0x3b)[0x132593b]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(_Z20sbitmap_vector_allocjj+0x54)[0xb41804]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(_Z16pre_edge_lcm_avsiPP17simple_bitmap_defS1_S1_S1_S1_S1_PS1_S2_+0x5b6)[0xa2c0a6]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus[0x12646e4]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus[0xe0c5b6]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(_Z16execute_one_passP8opt_pass+0x19b)[0xacf11b]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus[0xacf688]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus[0xacf69a]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(_Z17execute_pass_listP8functionP8opt_pass+0x38)[0xacf728]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(_ZN11cgraph_node6expandEv+0x106)[0x81ae76]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus[0x81c5bd]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(_ZN12symbol_table25finalize_compilation_unitEv+0x117)[0x81e117]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus[0xb97432]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(_ZN6toplev4mainEiPPc+0x716)[0x5c67a6]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(main+0x4a)[0x5c8cea]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3f436c9459d]
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus(_start+0x2a)[0x5ddaca]
======= Memory map: ========
00400000-01c5c000 r-xp 00000000 08:02 4249400                           
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus
01e5c000-01e65000 r--p 0185c000 08:02 4249400                           
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus
01e65000-01e71000 rw-p 01865000 08:02 4249400                           
/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/cc1plus
01e71000-0302d000 rw-p 00000000 00:00 0                                  [heap]
3f41c000000-3f41c021000 rw-p 00000000 00:00 0 
3f41c021000-3f420000000 ---p 00000000 00:00 0 
3f422a6d000-3f422a82000 r-xp 00000000 08:02 4250503                     
/usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc_s.so.1
3f422a82000-3f422c82000 ---p 00015000 08:02 4250503                     
/usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc_s.so.1
3f422c82000-3f422c83000 r--p 00015000 08:02 4250503                     
/usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc_s.so.1
3f422c83000-3f422c84000 rw-p 00016000 08:02 4250503                     
/usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc_s.so.1
3f422cb4000-3f434007000 rw-p 00000000 00:00 0 
3f434008000-3f436c74000 rw-p 00000000 00:00 0 
3f436c74000-3f436e28000 r-xp 00000000 08:02 3304901                     
/lib64/libc-2.25.so
3f436e28000-3f437028000 ---p 001b4000 08:02 3304901                     
/lib64/libc-2.25.so
3f437028000-3f43702c000 r--p 001b4000 08:02 3304901                     
/lib64/libc-2.25.so
3f43702c000-3f43702e000 rw-p 001b8000 08:02 3304901                     
/lib64/libc-2.25.so
3f43702e000-3f437032000 rw-p 00000000 00:00 0 
3f437032000-3f43713b000 r-xp 00000000 08:02 3304699                     
/lib64/libm-2.25.so
3f43713b000-3f43733a000 ---p 00109000 08:02 3304699                     
/lib64/libm-2.25.so
3f43733a000-3f43733b000 r--p 00108000 08:02 3304699                     
/lib64/libm-2.25.so
3f43733b000-3f43733c000 rw-p 00109000 08:02 3304699                     
/lib64/libm-2.25.so
3f43733c000-3f437353000 r-xp 00000000 08:02 4884862                     
/lib64/libz.so.1.2.11
3f437353000-3f437553000 ---p 00017000 08:02 4884862                     
/lib64/libz.so.1.2.11
3f437553000-3f437554000 r--p 00017000 08:02 4884862                     
/lib64/libz.so.1.2.11
3f437554000-3f437555000 rw-p 00018000 08:02 4884862                     
/lib64/libz.so.1.2.11
3f437555000-3f437558000 r-xp 00000000 08:02 3304703                     
/lib64/libdl-2.25.so
3f437558000-3f437757000 ---p 00003000 08:02 3304703                     
/lib64/libdl-2.25.so
3f437757000-3f437758000 r--p 00002000 08:02 3304703                     
/lib64/libdl-2.25.so
3f437758000-3f437759000 rw-p 00003000 08:02 3304703                     
/lib64/libdl-2.25.so
3f437759000-3f4377da000 r-xp 00000000 08:02 5652705                     
/usr/lib64/libgmp.so.10.3.2
3f4377da000-3f4379d9000 ---p 00081000 08:02 5652705                     
/usr/lib64/libgmp.so.10.3.2
3f4379d9000-3f4379db000 r--p 00080000 08:02 5652705                     
/usr/lib64/libgmp.so.10.3.2
3f4379db000-3f4379dc000 rw-p 00082000 08:02 5652705                     
/usr/lib64/libgmp.so.10.3.2
3f4379dc000-3f437a43000 r-xp 00000000 08:02 5010679                     
/usr/lib64/libmpfr.so.4.1.5
3f437a43000-3f437c42000 ---p 00067000 08:02 5010679                     
/usr/lib64/libmpfr.so.4.1.5
3f437c42000-3f437c44000 r--p 00066000 08:02 5010679                     
/usr/lib64/libmpfr.so.4.1.5
3f437c44000-3f437c45000 rw-p 00068000 08:02 5010679                     
/usr/lib64/libmpfr.so.4.1.5
3f437c45000-3f437c5d000 r-xp 00000000 08:02 5009630                     
/usr/lib64/libmpc.so.3.0.0
3f437c5d000-3f437e5d000 ---p 00018000 08:02 5009630                     
/usr/lib64/libmpc.so.3.0.0
3f437e5d000-3f437e5e000 r--p 00018000 08:02 5009630                     
/usr/lib64/libmpc.so.3.0.0
3f437e5e000-3f437e5f000 rw-p 00019000 08:02 5009630                     
/usr/lib64/libmpc.so.3.0.0
3f437e5f000-3f437e75000 r-xp 00000000 08:02 3283294                     
/usr/lib64/libsandbox.so
3f437e75000-3f438075000 ---p 00016000 08:02 3283294                     
/usr/lib64/libsandbox.so
3f438075000-3f438076000 r--p 00016000 08:02 3283294                     
/usr/lib64/libsandbox.so
3f438076000-3f438077000 rw-p 00017000 08:02 3283294                     
/usr/lib64/libsandbox.so
3f438077000-3f43807f000 rw-p 00000000 00:00 0 
3f43807f000-3f4380a3000 r-xp 00000000 08:02 3304381                     
/lib64/ld-2.25.so
3f4380a4000-3f4380a8000 rw-p 00000000 00:00 0 
3f4380a9000-3f438274000 rw-p 00000000 00:00 0 
3f438274000-3f4382a3000 rw-p 00000000 00:00 0 
3f4382a3000-3f4382a4000 r--p 00024000 08:02 3304381                     
/lib64/ld-2.25.so
3f4382a4000-3f4382a5000 rw-p 00025000 08:02 3304381                     
/lib64/ld-2.25.so
3f4382a5000-3f4382a6000 rw-p 00000000 00:00 0 
3feaeb10000-3feaeb57000 rw-p 00000000 00:00 0                           
[stack]
3feaebd5000-3feaebd7000 r--p 00000000 00:00 0                            [vvar]
3feaebd7000-3feaebd9000 r-xp 00000000 00:00 0                            [vdso]
ffffffffff600000-ffffffffff601000 r--p 00000000 00:00 0                 
[vsyscall]
>From gcc-bugs-return-573149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:35:49 2017
Return-Path: <gcc-bugs-return-573149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126516 invoked by alias); 23 Aug 2017 20:35: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 126331 invoked by uid 48); 23 Aug 2017 20:35:45 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Thu, 24 Aug 2017 01:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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: bug_status resolution
Message-ID: <bug-81928-4-Y4ynsdr6vJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02708.txt.bz2
Content-length: 888

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #21 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Matthieu Brucher from comment #19)
> That was my original comment... Thanks for quoting me...
> The issue is that the warning doesn't tell me what you told me, that "this"
> is never equal to nullptr in that context. This is what the warning should
> be (and as such, yes, it is a bug).

Huh????
Yes it is:
nonnull argument ‘this’ compared to NULL

What more do you want it to say.  That comparing this to NULL Is undefined
behavior?
>From gcc-bugs-return-573150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:44:46 2017
Return-Path: <gcc-bugs-return-573150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10446 invoked by alias); 23 Aug 2017 20:44:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10258 invoked by uid 48); 23 Aug 2017 20:44:41 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/81955] corrupted double-linked list (not small)
Date: Thu, 24 Aug 2017 01:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget component
Message-ID: <bug-81955-4-kDhE4OG0wh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02709.txt.bz2
Content-length: 549

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81955

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Target|                            |x86_64-pc-linux-gnu
          Component|c++                         |rtl-optimization

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you attach the preprocessed source?
>From gcc-bugs-return-573152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 21:40:44 2017
Return-Path: <gcc-bugs-return-573152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126677 invoked by alias); 23 Aug 2017 21:40:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 124622 invoked by uid 48); 23 Aug 2017 21:40:40 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78840] [5 Regression] ICE with const variables in templates implicitly captured by nested lambda expressions
Date: Thu, 24 Aug 2017 02:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-78840-4-V7jblNYRRb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78840-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78840-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02711.txt.bz2
Content-length: 698

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78840

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6/7/8 Regression] ICE    |[5 Regression] ICE with
                   |with const variables in     |const variables in
                   |templates implicitly        |templates implicitly
                   |captured by nested lambda   |captured by nested lambda
                   |expressions                 |expressions

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
This seems to work with current 6/7/8 branches.
>From gcc-bugs-return-573151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 20:47:25 2017
Return-Path: <gcc-bugs-return-573151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15462 invoked by alias); 23 Aug 2017 20:47: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 15290 invoked by uid 48); 23 Aug 2017 20:47:19 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Thu, 24 Aug 2017 02:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: 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-81928-4-XdMxp7Ke7F@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02710.txt.bz2
Content-length: 538

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

--- Comment #22 from Jonathan Wakely <redi at gcc dot gnu.org> ---
No, comment 1 was from Richard. And the warning already exists, and it says
that a nonnull argument (i.e. something that can never be null) is compared to
null. The only thing I'd change would be to change 'argument' to 'pointer'.

Please stop reopening this to ask for the same thing, you're making yourself
look silly.

Either explain more clearly what you're asking for, or accept it already warns
about this.
>From gcc-bugs-return-573153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 21:43:26 2017
Return-Path: <gcc-bugs-return-573153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43212 invoked by alias); 23 Aug 2017 21:43: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 38109 invoked by uid 48); 23 Aug 2017 21:43:22 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81282] templated Lambda ,auto
Date: Thu, 24 Aug 2017 05:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution target_milestone
Message-ID: <bug-81282-4-uX8UDp4TRS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81282-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81282-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02712.txt.bz2
Content-length: 566

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81282

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.5

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Works in GCC 6 and up.
>From gcc-bugs-return-573154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 21:46:54 2017
Return-Path: <gcc-bugs-return-573154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79215 invoked by alias); 23 Aug 2017 21:46:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76562 invoked by uid 55); 23 Aug 2017 21:46:48 -0000
From: "dansan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80969] [8 Regression] ICE in ix86_expand_prologue, at config/i386/i386.c:14606
Date: Thu, 24 Aug 2017 05:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dansan at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80969-4-Xpw8ojRJjT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80969-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80969-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02713.txt.bz2
Content-length: 2726

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80969

--- Comment #5 from dansan at gcc dot gnu.org ---
Author: dansan
Date: Wed Aug 23 21:46:14 2017
New Revision: 251321

URL: https://gcc.gnu.org/viewcvs?rev=251321&root=gcc&view=rev
Log:
PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when
realigning stack.

2017-08-23  Daniel Santos  <daniel.santos@pobox.com>

        * config/i386/i386.h (ix86_frame::stack_realign_allocate_offset):
        Remove field.
        (ix86_frame::stack_realign_allocate): New field.
        (struct machine_frame_state): Modify comments.
        (machine_frame_state::sp_realigned_fp_end): New field.
        * config/i386/i386.c (ix86_compute_frame_layout): Rework stack frame
        layout calculation.
        (sp_valid_at): Add assertion to assure no attempt to access invalid
        offset of a realigned stack.
        (fp_valid_at): Likewise.
        (choose_baseaddr): Modify comments.
        (ix86_emit_outlined_ms2sysv_save): Adjust to changes in
        ix86_expand_prologue.
        (ix86_expand_prologue): Modify stack realignment and allocation.
        (ix86_expand_epilogue): Modify comments.
        * doc/sourcebuild.texi: Add documentation for target selectors avx2,
        avx2_runtime, avx512f, and avx512f_runtime.

2017-08-23  Daniel Santos  <daniel.santos@pobox.com>

        * gcc.target/i386/pr80969-1.c: New testcase.
        * gcc.target/i386/pr80969-2a.c: Likewise.
        * gcc.target/i386/pr80969-2.c: Likewise.
        * gcc.target/i386/pr80969-3.c: Likewise.
        * gcc.target/i386/pr80969-4a.c: Likewise.
        * gcc.target/i386/pr80969-4b.c: Likewise.
        * gcc.target/i386/pr80969-4.c: Likewise.
        * gcc.target/i386/pr80969-4.h: New header common to pr80969-4*.c
        * lib/target-supports.exp (check_avx512_os_support_available,
        check_avx512f_hw_available, check_effective_target_avx512f_runtime):
        New proceedures for target avx512f and avx512f_runtime selectors.
        (check_avx2_hw_available): Fix breakage due NULL being undefined.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr80969-1.c
    trunk/gcc/testsuite/gcc.target/i386/pr80969-2.c
    trunk/gcc/testsuite/gcc.target/i386/pr80969-2a.c
    trunk/gcc/testsuite/gcc.target/i386/pr80969-3.c
    trunk/gcc/testsuite/gcc.target/i386/pr80969-4.c
    trunk/gcc/testsuite/gcc.target/i386/pr80969-4.h
    trunk/gcc/testsuite/gcc.target/i386/pr80969-4a.c
    trunk/gcc/testsuite/gcc.target/i386/pr80969-4b.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/i386.h
    trunk/gcc/doc/sourcebuild.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/lib/target-supports.exp
>From gcc-bugs-return-573155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 21:53:36 2017
Return-Path: <gcc-bugs-return-573155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70430 invoked by alias); 23 Aug 2017 21:53: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 64535 invoked by uid 48); 23 Aug 2017 21:53:31 -0000
From: "demoonlit at panathenaia dot halfmoon.jp" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/81956] New: [7 regression] calling a null procedure is not skipped
Date: Thu, 24 Aug 2017 06:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: demoonlit at panathenaia dot halfmoon.jp
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned 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-81956-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02714.txt.bz2
Content-length: 1014

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81956

            Bug ID: 81956
           Summary: [7 regression] calling a null procedure is not skipped
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: demoonlit at panathenaia dot halfmoon.jp
  Target Milestone: ---

Hello. Has the behavior of null procedures been changed from gcc-7?

package p is
   procedure Null_Proc is null;
end p;

with p;
procedure main is
begin
   p.Null_Proc;
end main;

With gcc-7.2, the calling Null_Proc is generated into the object code.

$ gcc -c -O1 main.adb
$ nm main.o
0000000000000010 s EH_frame1
0000000000000000 S __ada_main
                 U _p__null_proc

With gcc-6.2, this calling Null_Proc has been skipped. I think this behavior is
desirable.

$ gcc -c -O1 main.adb
$ nm main.o
0000000000000008 s EH_frame1
0000000000000000 S __ada_main
>From gcc-bugs-return-573156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 22:07:42 2017
Return-Path: <gcc-bugs-return-573156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91005 invoked by alias); 23 Aug 2017 22:07: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 88094 invoked by uid 48); 23 Aug 2017 22:07:36 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81953] Code sinking increases register pressure
Date: Thu, 24 Aug 2017 06:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81953-4-kSBMblPyiW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81953-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02715.txt.bz2
Content-length: 218

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81953

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
It's a good idea to move it to inside the conditional, just not
to behind the function call.
>From gcc-bugs-return-573157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 22:09:31 2017
Return-Path: <gcc-bugs-return-573157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39370 invoked by alias); 23 Aug 2017 22: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 36507 invoked by uid 48); 23 Aug 2017 22:09:27 -0000
From: "rs2740 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81942] ICE on empty constexpr constructor with C++14
Date: Thu, 24 Aug 2017 07:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-invalid-code
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: cc
Message-ID: <bug-81942-4-5ex7CTc3rM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81942-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81942-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02716.txt.bz2
Content-length: 417

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81942

TC <rs2740 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rs2740 at gmail dot com

--- Comment #1 from TC <rs2740 at gmail dot com> ---
Why is this tagged ice-on-invalid? The test case is valid C++14.
>From gcc-bugs-return-573158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 22:13:55 2017
Return-Path: <gcc-bugs-return-573158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31967 invoked by alias); 23 Aug 2017 22: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 26898 invoked by uid 48); 23 Aug 2017 22:13:47 -0000
From: "roland at rschulz dot eu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81957] New: ICE decltype
Date: Thu, 24 Aug 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: roland at rschulz dot eu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned 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-81957-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02717.txt.bz2
Content-length: 1254

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81957

            Bug ID: 81957
           Summary: ICE decltype
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland at rschulz dot eu
  Target Milestone: ---

#include <type_traits>

struct f {
    template<bool b, typename Int>
    void operator()(std::integral_constant<bool,b>, Int i) {
    }
};

template<bool...Bs, typename F, typename ...T>
auto dispatch(F f, T...t) -> decltype(f(std::integral_constant<bool,Bs>()...,
t...)) {
    return f(std::integral_constant<bool,Bs>()..., t...);
}

template<bool...Bs, typename F, typename ...T>
auto dispatch(F f, bool b, T...t) -> decltype(dispatch<Bs..., true>(f, t...)) {
    if (b)
        return dispatch<Bs..., true>(f, t...);
    else
        return dispatch<Bs..., false>(f, t...);
}

int main() {
    dispatch(f(), true, 5);
    return 0;
}

gives:
Internal compiler error: Error reporting routines re-entered.

Without the 2nd decltype (either using void or no return type specification) it
compiles fine.

The problem is present in all supported GCC versions.
>From gcc-bugs-return-573159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 22:26:51 2017
Return-Path: <gcc-bugs-return-573159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102768 invoked by alias); 23 Aug 2017 22:26: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 94027 invoked by uid 48); 23 Aug 2017 22:26:46 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81958] New: spurious -Wmaybe-uninitialized warning in gcc-8, or with -O1
Date: Thu, 24 Aug 2017 07:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 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-81958-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02718.txt.bz2
Content-length: 1690

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81958

            Bug ID: 81958
           Summary: spurious -Wmaybe-uninitialized warning in gcc-8, or
                    with -O1
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arnd at linaro dot org
  Target Milestone: ---

building many random configurations of the linux kernel using a gcc-8.0.0
snapshot (20170821) found a couple of bugs with -Wmaybe-uninitialized, but also
added one warning for code that does not appear to have any uninitialized use,
reduced test case follows:

__attribute__ ((__cold__)) int printk();
struct lpfc_queue {
        int queue_id;
        struct lpfc_queue *hba_eq;
} *cq_phba;
void lpfc_debug_dump_all_queues(unsigned maxidx)
{
        struct lpfc_queue *eq;
        unsigned eqidx;
        printk();
        for (eqidx = 0; eqidx < maxidx; eqidx++) {
                eq = &cq_phba->hba_eq[eqidx];
                if (eq->queue_id)
                        break;
        }
        if (eqidx == maxidx)
                eq = &cq_phba->hba_eq[0];
        printk(eq);
}

$ x86_64-linux-gcc-8.0.0 -Wall -Werror=maybe-uninitialized -Werror -O2 -c
lpfc_debugfs.c
lpfc_debugfs-e-21.i: In function 'lpfc_debug_dump_all_queues':
lpfc_debugfs-e-21.i:22:10: error: 'eq' may be used uninitialized in this
function [-Werror=maybe-uninitialized]
          printk(eq);
          ^~~~~~~~~~

Older versions warn for -O1 and -Os but not for -O2, while gcc-8.0.0 currently
warns for all optimization levels.
>From gcc-bugs-return-573160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 22:57:24 2017
Return-Path: <gcc-bugs-return-573160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108174 invoked by alias); 23 Aug 2017 22:57: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 107524 invoked by uid 48); 23 Aug 2017 22:57:19 -0000
From: "howarth.at.gcc at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81797] gcc 7.1.0 fails to build on macOS 10.13 (High Sierra):
Date: Thu, 24 Aug 2017 07:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: howarth.at.gcc 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-81797-4-Tk5fiV75pn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02719.txt.bz2
Content-length: 869

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81797

--- Comment #7 from Jack Howarth <howarth.at.gcc at gmail dot com> ---
(In reply to Romain from comment #6)
> Hi, 
> 
> > It might be an interesting exercise to encrypt the APFS volume and see if that
> throws just enough additional filesystem overhead in to make the problem go
> latent.
> 
> I'm also trying to compile gcc-7.2.0 on macOS 10.13, and I'm using encrypted
> APFS, but it does not make this bug disappear.
> 
> Regards,
> Romain

FX and Romain,
     How many cores does each of your build systems have? Jeremy Sequoia says
he hasn't seen this on any of his build systems with APFS for MacPorts gcc6 or
later bootstraps but he is using 4 core systems in each case. I have seen
instances where particular race conditions don't show up on 8 core systems but
plague dual core systems.
>From gcc-bugs-return-573161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 23 23:59:50 2017
Return-Path: <gcc-bugs-return-573161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11282 invoked by alias); 23 Aug 2017 23:59: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 11256 invoked by uid 48); 23 Aug 2017 23:59:44 -0000
From: "meissner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81959] New: PowerPC __float128 optimization fails with integer PRE_INC addresses
Date: Thu, 24 Aug 2017 07:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: meissner at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-81959-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02720.txt.bz2
Content-length: 775

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81959

            Bug ID: 81959
           Summary: PowerPC __float128 optimization fails with integer
                    PRE_INC addresses
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: meissner at gcc dot gnu.org
  Target Milestone: ---

Created attachment 42033
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42033&action=edit
Sample test

If you are doing 32-bit signed integer to IEEE 128-bit floating point on
power9, using an array where PRE_INC addresses are used, the compiler will fail
with an INSN not found error message.
>From gcc-bugs-return-573162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 00:03:14 2017
Return-Path: <gcc-bugs-return-573162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31141 invoked by alias); 24 Aug 2017 00:03: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 30925 invoked by uid 48); 24 Aug 2017 00:03:04 -0000
From: "meissner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81959] PowerPC __float128 optimization fails with integer PRE_INC addresses
Date: Thu, 24 Aug 2017 08:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: meissner at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: meissner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc assigned_to target_milestone
Message-ID: <bug-81959-4-nlTBV8w86y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81959-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81959-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02721.txt.bz2
Content-length: 688

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81959

Michael Meissner <meissner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at gcc dot gnu.org,
                   |                            |meissner at gcc dot gnu.org,
                   |                            |segher at gcc dot gnu.org,
                   |                            |wschmidt at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |meissner at gcc dot gnu.org
   Target Milestone|---                         |8.0
>From gcc-bugs-return-573163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 00:07:26 2017
Return-Path: <gcc-bugs-return-573163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65128 invoked by alias); 24 Aug 2017 00:07: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 63946 invoked by uid 48); 24 Aug 2017 00:07:21 -0000
From: "meissner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81959] PowerPC __float128 optimization fails with integer PRE_INC addresses
Date: Thu, 24 Aug 2017 08: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: meissner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: meissner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81959-4-ot9dELMMGG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81959-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81959-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02722.txt.bz2
Content-length: 626

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81959

Michael Meissner <meissner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-24
     Ever confirmed|0                           |1

--- Comment #1 from Michael Meissner <meissner at gcc dot gnu.org> ---
Using -mno-update or -mcpu=power8 'fixes' the bug.

It is probably related to the optimizations for PR 79038 that were added on
March 15th.
>From gcc-bugs-return-573164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 00:51:42 2017
Return-Path: <gcc-bugs-return-573164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74408 invoked by alias); 24 Aug 2017 00: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 73914 invoked by uid 48); 24 Aug 2017 00:51:37 -0000
From: "daniel.santos at pobox dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81850] [mingw/cygwin] -mabi=sysv ignored
Date: Thu, 24 Aug 2017 08:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.santos at pobox dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81850-4-DfVHadnGEX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81850-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81850-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02723.txt.bz2
Content-length: 1384

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81850

Daniel Santos <daniel.santos at pobox dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Daniel Santos <daniel.santos at pobox dot com> ---
Hmm, interestingly I cannot reproduce the error, so I must have made a mistake
somewhere:

$ cat abitest.c
void __attribute__((sysv_abi))(*volatile foo) (void);
void bar (void) {
  foo ();
}

/d/builds/x86_64-pc-cygwin/head-minimal/gcc/xgcc
-B/d/builds/x86_64-pc-cygwin/head-minimal/gcc -c -mabi=sysv -o abitest.o
abitest.c && objdump -dr abitest.o

abitest.o:     file format pe-x86-64


Disassembly of section .text:

0000000000000000 <bar>:
   0:   55                      push   %rbp
   1:   48 89 e5                mov    %rsp,%rbp
   4:   48 8d 05 00 00 00 00    lea    0x0(%rip),%rax        # b <bar+0xb>
                        7: R_X86_64_PC32        foo-0x8
   b:   48 8b 00                mov    (%rax),%rax
   e:   ff d0                   callq  *%rax
  10:   90                      nop
  11:   5d                      pop    %rbp
  12:   c3                      retq   
  13:   90                      nop


... which is correct.
>From gcc-bugs-return-573165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 01:34:11 2017
Return-Path: <gcc-bugs-return-573165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128286 invoked by alias); 24 Aug 2017 01:34: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 126639 invoked by uid 48); 24 Aug 2017 01:34:04 -0000
From: "rs2740 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57170] No diagnostic for a negative case when switching over unsigned
Date: Thu, 24 Aug 2017 08: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: 4.8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rs2740 at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-57170-4-VzAIDTjTu6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02724.txt.bz2
Content-length: 1019

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57170

TC <rs2740 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rs2740 at gmail dot com

--- Comment #2 from TC <rs2740 at gmail dot com> ---
As comment #0 alluded to - perhaps a bit opaquely - this code is ill-formed in
C++11 and later. [stmt.switch] requires the case expression to be "a converted
constant expression ([expr.const]) of the promoted type of the switch
condition", and a narrowing conversion cannot be used in a converted constant
expression. The standard requires a diagnostic, which GCC fails to provide even
with -pedantic.

(Meanwhile, using unsigned char or unsigned short there is actually well-formed
if they get promoted to int as they usually do.)

So, unless you are saying that GCC's full conformance mode requires
-Wsign-conversion, I don't see how this bug is invalid.
>From gcc-bugs-return-573166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 01:41:43 2017
Return-Path: <gcc-bugs-return-573166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4839 invoked by alias); 24 Aug 2017 01:41: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 128945 invoked by uid 48); 24 Aug 2017 01:41:36 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57170] Diagnostic for a negative case when switching over unsigned comes from -Wsign-conversion instead of -Wpedantic or -Wnarrowing
Date: Thu, 24 Aug 2017 08:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: accepts-invalid, 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: keywords bug_status cf_reconfirmed_on resolution short_desc everconfirmed
Message-ID: <bug-57170-4-qRYpVMGPzI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57170-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57170-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02725.txt.bz2
Content-length: 1786

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57170

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2017-08-24
         Resolution|INVALID                     |---
            Summary|No diagnostic for a         |Diagnostic for a negative
                   |negative case when          |case when switching over
                   |switching over unsigned     |unsigned comes from
                   |                            |-Wsign-conversion instead
                   |                            |of -Wpedantic or
                   |                            |-Wnarrowing
     Ever confirmed|0                           |1

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to TC from comment #2)
> As comment #0 alluded to - perhaps a bit opaquely - this code is ill-formed
> in C++11 and later. [stmt.switch] requires the case expression to be "a
> converted constant expression ([expr.const]) of the promoted type of the
> switch condition", and a narrowing conversion cannot be used in a converted
> constant expression. The standard requires a diagnostic, which GCC fails to
> provide even with -pedantic.
> 
> (Meanwhile, using unsigned char or unsigned short there is actually
> well-formed if they get promoted to int as they usually do.)
> 
> So, unless you are saying that GCC's full conformance mode requires
> -Wsign-conversion, I don't see how this bug is invalid.

OK, reopening and retitling to make it clearer.
>From gcc-bugs-return-573167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 01:53:38 2017
Return-Path: <gcc-bugs-return-573167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11664 invoked by alias); 24 Aug 2017 01:53: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 10459 invoked by uid 48); 24 Aug 2017 01:53:32 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/61961] New warning when initializer-list constructor chosen for uniform init that doesn't intend to use initializer_list
Date: Thu, 24 Aug 2017 09:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-61961-4-v9tTUfj4ip@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61961-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61961-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02726.txt.bz2
Content-length: 646

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61961

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirming as an enhancement.
>From gcc-bugs-return-573168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 02:01:05 2017
Return-Path: <gcc-bugs-return-573168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44998 invoked by alias); 24 Aug 2017 02:01:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44858 invoked by uid 48); 24 Aug 2017 02:00:58 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52960] Missing warnings on ambiguous source : function decl vs local var decl
Date: Thu, 24 Aug 2017 09:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: diagnostic
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: keywords bug_status cc resolution cf_known_to_fail
Message-ID: <bug-52960-4-rXL7hURb0w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52960-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52960-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02727.txt.bz2
Content-length: 826

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52960

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org
         Resolution|---                         |DUPLICATE
      Known to fail|                            |6.0

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Bug 25814 also requests -Wvexing-parse be added for this situation, and has
more extensive discussion than here. Closing as a duplicate of it.

*** This bug has been marked as a duplicate of bug 25814 ***
>From gcc-bugs-return-573169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 02:01:08 2017
Return-Path: <gcc-bugs-return-573169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45225 invoked by alias); 24 Aug 2017 02:01: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 44963 invoked by uid 48); 24 Aug 2017 02:01:01 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/25814] Request for warning for parser ambiguity of function declarations and variable declarations with initializations
Date: Thu, 24 Aug 2017 09:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.0.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
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-25814-4-01I81ETfig@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25814-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25814-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02728.txt.bz2
Content-length: 450

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25814

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xinliangli at gmail dot com

--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 52960 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-573170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 05:18:43 2017
Return-Path: <gcc-bugs-return-573170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70042 invoked by alias); 24 Aug 2017 05:18: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 26699 invoked by uid 48); 24 Aug 2017 05:18:10 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81159] New warning idea: -Wself-move
Date: Thu, 24 Aug 2017 09:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81159-4-GGdln4OgpW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02729.txt.bz2
Content-length: 566

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81159

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
                 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-573171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 05:39:57 2017
Return-Path: <gcc-bugs-return-573171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117182 invoked by alias); 24 Aug 2017 05:38: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 41849 invoked by uid 48); 24 Aug 2017 05:32:22 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67906] Missing warning about std::move without effect
Date: Thu, 24 Aug 2017 09:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-67906-4-akx16lYflN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02730.txt.bz2
Content-length: 1453

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67906

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-24
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Could you please provide a complete self-contained example? The snippet you
posted looks like it's missing some declarations:

$ /usr/local/bin/g++ -c 67906.cc
67906.cc:1:7: error: ‘Frame’ does not name a type
 const Frame& x = stack.top();
       ^~~~~
67906.cc:2:1: error: ‘Value’ does not name a type
 Value y = std::move(x.value); // x.value - non-mutable
 ^~~~~
$

Anyways, bug 81159 is related, but that's about a different misuse of
std::move, so I'll keep the 2 separate.

Oh, and also "-Wno-effect" would probably be a bad name for the option, since
"-Wno-" is reserved for negative versions of warnings. i.e., is "-Wno-effect"
the negative of "-Weffect"? That seems wrong. Or is it already in the positive,
in which case the negative is "-Wno-no-effect"? That would seem redundant.
>From gcc-bugs-return-573172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 06:53:11 2017
Return-Path: <gcc-bugs-return-573172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41780 invoked by alias); 24 Aug 2017 06:53: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 41762 invoked by uid 48); 24 Aug 2017 06:53:06 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/81960] New: gcc doesn't compile on MAC OS X
Date: Thu, 24 Aug 2017 10:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02731.txt.bz2
Content-length: 413

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81960

            Bug ID: 81960
           Summary: gcc doesn't compile on MAC OS X
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---
>From gcc-bugs-return-573173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 06:59:22 2017
Return-Path: <gcc-bugs-return-573173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70822 invoked by alias); 24 Aug 2017 06:59:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 70752 invoked by uid 48); 24 Aug 2017 06:59:16 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk0Nl0gcnVudGltZS5pbmM6NzgyOjI4OiBlcnJvcjogZmll?= =?UTF-8?B?bGQg4oCYX19zZW1fbG9ja+KAmSBoYXMgaW5jb21wbGV0ZSB0eXBl?Date: Thu, 24 Aug 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: go
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mfe at live dot de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
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-81946-4-DLnk1pL8uz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02732.txt.bz2
Content-length: 151

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946

--- Comment #7 from martin <mfe at live dot de> ---
Thanks for letting me know. I appreciate it.
>From gcc-bugs-return-573174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 07:18:18 2017
Return-Path: <gcc-bugs-return-573174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9910 invoked by alias); 24 Aug 2017 07:18:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9830 invoked by uid 48); 24 Aug 2017 07:18:04 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/81960] gcc doesn't compile on MAC OS X
Date: Thu, 24 Aug 2017 10:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_fail
Message-ID: <bug-81960-4-sKeG0Gog7N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02733.txt.bz2
Content-length: 8124

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81960

Jürgen Reuter <juergen.reuter at desy dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |8.0

--- Comment #1 from Jürgen Reuter <juergen.reuter at desy dot de> ---
My system is Darwin 16.7.0 with Xcode 8.1.0 (clang-802.0.42). The svn revision
of the gcc 251319. 

/usr/local/packages/gcc_8.0.0/_build/./prev-gcc/xg++
-B/usr/local/packages/gcc_8.0.0/_build/./prev-gcc/
-B/usr/local/x86_64-apple-darwin16.7.0/bin/ -nostdinc++
-B/usr/local/packages/gcc_8.0.0/_build/prev-x86_64-apple-darwin16.7.0/libstdc++-v3/src/.libs
-B/usr/local/packages/gcc_8.0.0/_build/prev-x86_64-apple-darwin16.7.0/libstdc++-v3/libsupc++/.libs

-I/usr/local/packages/gcc_8.0.0/_build/prev-x86_64-apple-darwin16.7.0/libstdc++-v3/include/x86_64-apple-darwin16.7.0

-I/usr/local/packages/gcc_8.0.0/_build/prev-x86_64-apple-darwin16.7.0/libstdc++-v3/include
 -I/usr/local/packages/gcc_8.0.0/libstdc++-v3/libsupc++
-L/usr/local/packages/gcc_8.0.0/_build/prev-x86_64-apple-darwin16.7.0/libstdc++-v3/src/.libs
-L/usr/local/packages/gcc_8.0.0/_build/prev-x86_64-apple-darwin16.7.0/libstdc++-v3/libsupc++/.libs
-fno-PIE -c   -g -O2   -gtoggle -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
 -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include
-I./../intl -I../../gcc/../libcpp/include -I/usr/local//include
-I/usr/local//include -I/usr/local//include  -I../../gcc/../libdecnumber
-I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace  
-o dwarf2out.o -MT dwarf2out.o -MMD -MP -MF ./.deps/dwarf2out.TPo
../../gcc/dwarf2out.c
../../gcc/dwarf2out.c: In function 'void init_sections_and_labels(bool)':
../../gcc/dwarf2out.c:27184:1: error: '%ld' directive writing between 1 and 10
bytes into a region of size 9 [-Werror=format-overflow=]
 init_sections_and_labels (bool early_lto_debug)
 ^~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: note: directive argument in the range [0,
4294967295]
In file included from ./tm.h:21:0,
                 from ../../gcc/target.h:52,
                 from ../../gcc/dwarf2out.c:61:
../../gcc/config/darwin.h:759:15: note: 'sprintf' output between 23 and 32
bytes into a destination of size 30
       sprintf (LABEL, "*%s%ld", PREFIX, (long)(NUM)); \
       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27210:4: note: in expansion of macro
'ASM_GENERATE_INTERNAL_LABEL'
    ASM_GENERATE_INTERNAL_LABEL (debug_skeleton_line_section_label,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: error: '%ld' directive writing between 1 and 10
bytes into a region of size 7 [-Werror=format-overflow=]
 init_sections_and_labels (bool early_lto_debug)
 ^~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: note: directive argument in the range [0,
4294967295]
In file included from ./tm.h:21:0,
                 from ../../gcc/target.h:52,
                 from ../../gcc/dwarf2out.c:61:
../../gcc/config/darwin.h:759:15: note: 'sprintf' output between 25 and 34
bytes into a destination of size 30
       sprintf (LABEL, "*%s%ld", PREFIX, (long)(NUM)); \
       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27229:4: note: in expansion of macro
'ASM_GENERATE_INTERNAL_LABEL'
    ASM_GENERATE_INTERNAL_LABEL (debug_skeleton_abbrev_section_label,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: error: '%ld' directive writing between 1 and 10
bytes into a region of size 9 [-Werror=format-overflow=]
 init_sections_and_labels (bool early_lto_debug)
 ^~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: note: directive argument in the range [0,
4294967295]
In file included from ./tm.h:21:0,
                 from ../../gcc/target.h:52,
                 from ../../gcc/dwarf2out.c:61:
../../gcc/config/darwin.h:759:15: note: 'sprintf' output between 23 and 32
bytes into a destination of size 30
       sprintf (LABEL, "*%s%ld", PREFIX, (long)(NUM)); \
       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27238:4: note: in expansion of macro
'ASM_GENERATE_INTERNAL_LABEL'
    ASM_GENERATE_INTERNAL_LABEL (debug_skeleton_line_section_label,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: error: '%ld' directive writing between 1 and 10
bytes into a region of size 9 [-Werror=format-overflow=]
 init_sections_and_labels (bool early_lto_debug)
 ^~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: note: directive argument in the range [0,
4294967295]
In file included from ./tm.h:21:0,
                 from ../../gcc/target.h:52,
                 from ../../gcc/dwarf2out.c:61:
../../gcc/config/darwin.h:759:15: note: 'sprintf' output between 23 and 32
bytes into a destination of size 30
       sprintf (LABEL, "*%s%ld", PREFIX, (long)(NUM)); \
       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27245:4: note: in expansion of macro
'ASM_GENERATE_INTERNAL_LABEL'
    ASM_GENERATE_INTERNAL_LABEL (debug_skeleton_info_section_label,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: error: '%ld' directive writing between 1 and 10
bytes into a region of size 7 [-Werror=format-overflow=]
 init_sections_and_labels (bool early_lto_debug)
 ^~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: note: directive argument in the range [0,
4294967295]
In file included from ./tm.h:21:0,
                 from ../../gcc/target.h:52,
                 from ../../gcc/dwarf2out.c:61:
../../gcc/config/darwin.h:759:15: note: 'sprintf' output between 25 and 34
bytes into a destination of size 30
       sprintf (LABEL, "*%s%ld", PREFIX, (long)(NUM)); \
       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27290:4: note: in expansion of macro
'ASM_GENERATE_INTERNAL_LABEL'
    ASM_GENERATE_INTERNAL_LABEL (debug_skeleton_abbrev_section_label,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: error: '%ld' directive writing between 1 and 10
bytes into a region of size 9 [-Werror=format-overflow=]
 init_sections_and_labels (bool early_lto_debug)
 ^~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: note: directive argument in the range [0,
4294967295]
In file included from ./tm.h:21:0,
                 from ../../gcc/target.h:52,
                 from ../../gcc/dwarf2out.c:61:
../../gcc/config/darwin.h:759:15: note: 'sprintf' output between 23 and 32
bytes into a destination of size 30
       sprintf (LABEL, "*%s%ld", PREFIX, (long)(NUM)); \
       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27300:4: note: in expansion of macro
'ASM_GENERATE_INTERNAL_LABEL'
    ASM_GENERATE_INTERNAL_LABEL (debug_skeleton_line_section_label,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: error: '%ld' directive writing between 1 and 10
bytes into a region of size 9 [-Werror=format-overflow=]
 init_sections_and_labels (bool early_lto_debug)
 ^~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27184:1: note: directive argument in the range [0,
4294967295]
In file included from ./tm.h:21:0,
                 from ../../gcc/target.h:52,
                 from ../../gcc/dwarf2out.c:61:
../../gcc/config/darwin.h:759:15: note: 'sprintf' output between 23 and 32
bytes into a destination of size 30
       sprintf (LABEL, "*%s%ld", PREFIX, (long)(NUM)); \
       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/dwarf2out.c:27306:4: note: in expansion of macro
'ASM_GENERATE_INTERNAL_LABEL'
    ASM_GENERATE_INTERNAL_LABEL (debug_skeleton_info_section_label,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [dwarf2out.o] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2
>From gcc-bugs-return-573175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 07:20:06 2017
Return-Path: <gcc-bugs-return-573175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11671 invoked by alias); 24 Aug 2017 07:20: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 11601 invoked by uid 48); 24 Aug 2017 07:20:01 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/81960] gcc doesn't compile on MAC OS X
Date: Thu, 24 Aug 2017 10:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81960-4-iT5R1Gln2K@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02734.txt.bz2
Content-length: 166

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81960

--- Comment #2 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Actually, is this in the bootstrap ?
>From gcc-bugs-return-573176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 07:26:48 2017
Return-Path: <gcc-bugs-return-573176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22281 invoked by alias); 24 Aug 2017 07:26: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 22240 invoked by uid 48); 24 Aug 2017 07:26:40 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Thu, 24 Aug 2017 10:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
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:
Message-ID: <bug-81936-4-bdHAFkLFw4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02735.txt.bz2
Content-length: 367

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #15 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #14)
> That looks odd, I'll see if I can reproduce tomorrow.

FYI, there are scripts at
https://gcc.gnu.org/wiki/Offloading#How_to_try_offloading_enabled_GCC that show
a working nvptx offloading setup.
>From gcc-bugs-return-573177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 07:29:04 2017
Return-Path: <gcc-bugs-return-573177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50656 invoked by alias); 24 Aug 2017 07:29:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 50601 invoked by uid 48); 24 Aug 2017 07:28:59 -0000
From: "demoonlit at panathenaia dot halfmoon.jp" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/81961] New: [7 regression] an imported unsized C array in the auto-translated binding raises Storage_Error
Date: Thu, 24 Aug 2017 10:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: demoonlit at panathenaia dot halfmoon.jp
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned 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-81961-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02736.txt.bz2
Content-length: 1313

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81961

            Bug ID: 81961
           Summary: [7 regression] an imported unsized C array in the
                    auto-translated binding raises Storage_Error
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: demoonlit at panathenaia dot halfmoon.jp
  Target Milestone: ---

For example, translate a C header like following x.h with -fdump-ada-spec.

==== x.h ====
extern int unsized[];
=============

$ gcc -c -fdump-ada-spec x.h

$ cat x_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);

with Interfaces.C; use Interfaces.C;

package x_h is

   unsized : aliased array (size_t) of aliased int;  -- x.h:1
   pragma Import (C, unsized, "unsized");

end x_h;

And prepare a main routine, compile and execute it.

==== main.adb ====
with x_h;
procedure main is
begin
   null;
end main;
==================

$ gnatmake main
gcc -c main.adb
gnatbind -x main.ali
gnatlink main.ali

$ ./main

raised STORAGE_ERROR : x_h.ads:8 object too large

This exception has been not appeared with gcc-6.
>From gcc-bugs-return-573178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 07:43:46 2017
Return-Path: <gcc-bugs-return-573178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49034 invoked by alias); 24 Aug 2017 07:43: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 48921 invoked by uid 48); 24 Aug 2017 07:43:33 -0000
From: "demoonlit at panathenaia dot halfmoon.jp" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/81961] [7 regression] an imported unsized C array in the auto-translated binding raises Storage_Error
Date: Thu, 24 Aug 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: demoonlit at panathenaia dot halfmoon.jp
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81961-4-12GuYiUYDK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81961-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81961-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02737.txt.bz2
Content-length: 200

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81961

--- Comment #1 from yuta tomino <demoonlit at panathenaia dot halfmoon.jp> ---
Note, -gnatp or pragma Suppress can not suppress this exception.
>From gcc-bugs-return-573179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 08:03:53 2017
Return-Path: <gcc-bugs-return-573179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120500 invoked by alias); 24 Aug 2017 08:03:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120457 invoked by uid 48); 24 Aug 2017 08:03:48 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/81960] gcc doesn't compile on MAC OS X
Date: Thu, 24 Aug 2017 10:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81960-4-twB3YCgSMk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02738.txt.bz2
Content-length: 198

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81960

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
Patch at [1].

[1] https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01376.html
>From gcc-bugs-return-573180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 08:13:29 2017
Return-Path: <gcc-bugs-return-573180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117720 invoked by alias); 24 Aug 2017 08: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 117645 invoked by uid 48); 24 Aug 2017 08:13:24 -0000
From: "sven.c.dack at sky dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template
Date: Thu, 24 Aug 2017 10:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sven.c.dack at sky dot com
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: cc
Message-ID: <bug-81525-4-zr9QyAVrQy@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-08/txt/msg02739.txt.bz2
Content-length: 480

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

Sven C. Dack <sven.c.dack at sky dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sven.c.dack at sky dot com

--- Comment #6 from Sven C. Dack <sven.c.dack at sky dot com> ---
A quick reminder that 7.2 has been released and that you probably want to put
the patch back in.
>From gcc-bugs-return-573181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 08:39:49 2017
Return-Path: <gcc-bugs-return-573181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40901 invoked by alias); 24 Aug 2017 08:39:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40845 invoked by uid 48); 24 Aug 2017 08:39:42 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81962] New: -Wmaybe-uninitialized refers to wrong line (and only works with -O3)
Date: Thu, 24 Aug 2017 10:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 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-81962-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02740.txt.bz2
Content-length: 1571

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81962

            Bug ID: 81962
           Summary: -Wmaybe-uninitialized refers to wrong line (and only
                    works with -O3)
           Product: gcc
           Version: 7.1.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: ---

Consider this Fortran test case:


module ce

implicit none

contains

   subroutine ce3(a)
      real, intent(in) :: a
      if (a <= 0.) then
         print *,"error"
      end if
   end subroutine

   subroutine cee(Y)
      real, intent(in) :: Y
      real :: alpha
      if (Y>0.) then
         alpha = Y
      else
         print *,"error"
      end if
      call ce3(alpha)
   end subroutine

end module



Compiling with "gfortran-7 -Wall -O3", I get:

ce.f90:9:0:

       if (a <= 0.) then

Warning: ‘alpha’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
ce.f90:16:0:

       real :: alpha

note: ‘alpha’ was declared here


The fact that one gets a warning here is good in principle, but there are two
problems:

1) The line that is referred to is not really the right one. In particular it
does not contain any mention of 'alpha', which can be really confusing for
larger codes.  The warning should instead refer to the line "call ce3(alpha)".

2) The warning disappears when -O3 is not used (or with a lower warning level).
>From gcc-bugs-return-573182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 08:42:39 2017
Return-Path: <gcc-bugs-return-573182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114808 invoked by alias); 24 Aug 2017 08:42: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 107190 invoked by uid 48); 24 Aug 2017 08:42:28 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81962] -Wmaybe-uninitialized refers to wrong line (and only works with -O3)
Date: Thu, 24 Aug 2017 10:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
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: see_also
Message-ID: <bug-81962-4-fhj5oOw7EA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81962-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81962-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02741.txt.bz2
Content-length: 486

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81962

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=63943

--- Comment #1 from janus at gcc dot gnu.org ---
This might be rather closely related to PR 60741 and PR 63943.
>From gcc-bugs-return-573183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 08:47:20 2017
Return-Path: <gcc-bugs-return-573183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93108 invoked by alias); 24 Aug 2017 08:46: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 91710 invoked by uid 48); 24 Aug 2017 08:46:20 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/67679] [5/6/7/8 Regression] -Wunitialized reports on compiler-generated variables
Date: Thu, 24 Aug 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: fortran
X-Bugzilla-Version: 5.2.1
X-Bugzilla-Keywords: diagnostic
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: see_also
Message-ID: <bug-67679-4-SfeR91nq9q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67679-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67679-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02742.txt.bz2
Content-length: 442

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67679

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=66459

--- Comment #3 from janus at gcc dot gnu.org ---
See also PR 66459.
>From gcc-bugs-return-573184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 09:19:39 2017
Return-Path: <gcc-bugs-return-573184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4269 invoked by alias); 24 Aug 2017 09:19:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120922 invoked by uid 48); 24 Aug 2017 09:16:23 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81942] ICE on empty constexpr constructor with C++14
Date: Thu, 24 Aug 2017 11:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
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: keywords
Message-ID: <bug-81942-4-vbAOFQQYeA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81942-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81942-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02743.txt.bz2
Content-length: 554

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81942

Thomas Preud'homme <thopre01 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |ice-on-valid-code

--- Comment #2 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
(In reply to TC from comment #1)
> Why is this tagged ice-on-invalid? The test case is valid C++14.

My bad, got confused by the error message when building for C++11.
>From gcc-bugs-return-573185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 09:33:53 2017
Return-Path: <gcc-bugs-return-573185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57449 invoked by alias); 24 Aug 2017 09:33:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 57188 invoked by uid 48); 24 Aug 2017 09:33:46 -0000
From: "abominable-snowman at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81964] New: istream_iterator: unexpected read in ctor
Date: Thu, 24 Aug 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: 6.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abominable-snowman 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 cc target_milestone attachments.created
Message-ID: <bug-81964-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02744.txt.bz2
Content-length: 1188

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81964

            Bug ID: 81964
           Summary: istream_iterator: unexpected read in ctor
           Product: gcc
           Version: 6.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: abominable-snowman at yandex dot ru
                CC: abominable-snowman at yandex dot ru
  Target Milestone: ---
                CC: abominable-snowman at yandex dot ru

istream_iterator do unexpected read from stream when initialized by istream&:

    ///  Construct start of input stream iterator.
    istream_iterator(istream_type& __s)
     : _M_stream(&__s)
     { _M_read(); }

but expected, that read happens on dereference at least.
See:

  std::istringstream s("1 2");
  std::istream_iterator<int> ii1(s);
  std::istream_iterator<int> ii2(s);

  VERIFY( *ii2 == 1 );
  VERIFY( *ii1 == 2 );

--- Comment #1 from Petr Ovtchenkov <abominable-snowman at yandex dot ru> ---
Created attachment 42035
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42035&action=edit
proposed solution and test
>From gcc-bugs-return-573186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 09:40:39 2017
Return-Path: <gcc-bugs-return-573186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98451 invoked by alias); 24 Aug 2017 09:40:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 98046 invoked by uid 48); 24 Aug 2017 09:40:34 -0000
From: "v at vsamko dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81884] [6/7 Regression] Invalid code generation with zero size arrays or flexible array members
Date: Thu, 24 Aug 2017 11:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: v at vsamko dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81884-4-5FkBmnHBeO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02745.txt.bz2
Content-length: 300

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81884

--- Comment #7 from Valentine <v at vsamko dot com> ---
Many thanks for this ! 

Are there any plans to merge this into 7.2.0 and into any future 7.x releases?

If not, is it safe for me just to apply this patch to 7.2 locally and rebuild?
>From gcc-bugs-return-573187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 09:44:29 2017
Return-Path: <gcc-bugs-return-573187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9033 invoked by alias); 24 Aug 2017 09:44: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 8908 invoked by uid 48); 24 Aug 2017 09:44:14 -0000
From: "rainer@emrich-ebersheim.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81965] New: [8 Regression] ICE in stage 2 compiler while configuring libgcc in stage 2, during GIMPLE pass: cfg
Date: Thu, 24 Aug 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rainer@emrich-ebersheim.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-81965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02746.txt.bz2
Content-length: 4111

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81965

            Bug ID: 81965
           Summary: [8 Regression] ICE in stage 2 compiler while
                    configuring libgcc in stage 2, during GIMPLE pass: cfg
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rainer@emrich-ebersheim.de
  Target Milestone: ---

gcc version 8.0.0 20170824 (experimental) [trunk revision 251326] (GCC)

ICE in stage 2 compiler while configuring libgcc in stage 2:

configure:3471:
/opt/devel/SCRATCH/tmp.s6J9UOTgxN/gcc-8.0.0/gcc-8.0.0/./gcc/xgcc
-B/opt/devel/SCRATCH/tmp.s6J9UOTgxN/gcc-8.0.0/gcc-8.0.0/./gcc/
-L/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/lib
-L/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/mingw/lib
-isystem
/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/include
-isystem
/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/mingw/include
-B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/bin/
-B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/lib/
-isystem
/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/include
-isystem
/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/sys-include
   -o conftest -g -O2   conftest.c  >&5
during GIMPLE pass: cfg
conftest.c: In function 'main':
conftest.c:11:1: internal compiler error: Segmentation fault
 main ()
 ^~~~
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.
configure:3474: $? = 1
configure:3662: checking for suffix of object files
configure:3684:
/opt/devel/SCRATCH/tmp.s6J9UOTgxN/gcc-8.0.0/gcc-8.0.0/./gcc/xgcc
-B/opt/devel/SCRATCH/tmp.s6J9UOTgxN/gcc-8.0.0/gcc-8.0.0/./gcc/
-L/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/lib
-L/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/mingw/lib
-isystem
/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/include
-isystem
/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/mingw/include
-B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/bin/
-B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/lib/
-isystem
/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/include
-isystem
/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-8.0.0/x86_64-w64-mingw32/sys-include
   -c -g -O2  conftest.c >&5
during GIMPLE pass: cfg
conftest.c: In function 'main':
conftest.c:11:1: internal compiler error: Segmentation fault
 main ()
 ^~~~
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.
configure:3688: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3702: error: in
`/opt/devel/SCRATCH/tmp.s6J9UOTgxN/gcc-8.0.0/gcc-8.0.0/x86_64-w64-mingw32/libgcc':
configure:3705: error: cannot compute suffix of object files: cannot compile
>From gcc-bugs-return-573188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 09:52:25 2017
Return-Path: <gcc-bugs-return-573188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35182 invoked by alias); 24 Aug 2017 09:52: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 35109 invoked by uid 55); 24 Aug 2017 09:52:20 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81884] [6/7 Regression] Invalid code generation with zero size arrays or flexible array members
Date: Thu, 24 Aug 2017 12:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81884-4-DeOpcIxQIx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81884-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02747.txt.bz2
Content-length: 512

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81884

--- Comment #8 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 24 Aug 2017, v at vsamko dot com wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81884
> 
> --- Comment #7 from Valentine <v at vsamko dot com> ---
> Many thanks for this ! 
> 
> Are there any plans to merge this into 7.2.0 and into any future 7.x 
> releases?

Yes.

> If not, is it safe for me just to apply this patch to 7.2 locally and rebuild?

Yes.
>From gcc-bugs-return-573189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:22:26 2017
Return-Path: <gcc-bugs-return-573189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24051 invoked by alias); 24 Aug 2017 10:22: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 21605 invoked by uid 48); 24 Aug 2017 10:22:21 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81948] vectorize exp2 using exp
Date: Thu, 24 Aug 2017 12:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on blocked everconfirmed
Message-ID: <bug-81948-4-lB2IDZhWeV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81948-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81948-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02748.txt.bz2
Content-length: 994

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81948

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
             Blocks|                            |53947
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  glibc uses a different alg for exp2 than exp but for exp10 it
simply does exp(x * log(10)) it seems.

Probably requires some refactoring in vectorizable_simd_clone_call.

Or we decide that with -funsafe-math-optimizations canonicalizing expN/logN
to exp/log is worthwhile.

The best thing would be to enhance glibc of course.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947
[Bug 53947] [meta-bug] vectorizer missed-optimizations
>From gcc-bugs-return-573191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:26:18 2017
Return-Path: <gcc-bugs-return-573191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102224 invoked by alias); 24 Aug 2017 10:26: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 99821 invoked by uid 48); 24 Aug 2017 10:26:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81952] copy elision used when constructor needs to be called
Date: Thu, 24 Aug 2017 12:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81952-4-R4r2MBD8oY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81952-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81952-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02750.txt.bz2
Content-length: 606

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81952

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
It prints 2 with -std=c++1y or lower and 3 starting with -std=c++1z.
>From gcc-bugs-return-573190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:23:44 2017
Return-Path: <gcc-bugs-return-573190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119248 invoked by alias); 24 Aug 2017 10:23: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 117063 invoked by uid 48); 24 Aug 2017 10:23:39 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81951] [7/8 Regression] ICE returning 16 byte struct on s390x with -mno-lra
Date: Thu, 24 Aug 2017 12:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-81951-4-9GiqkTIJLa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81951-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81951-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02749.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81951

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.3
>From gcc-bugs-return-573192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:33:27 2017
Return-Path: <gcc-bugs-return-573192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67943 invoked by alias); 24 Aug 2017 10:33:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 60780 invoked by uid 48); 24 Aug 2017 10:33:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81953] Code sinking increases register pressure
Date: Thu, 24 Aug 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81953-4-hiCGtVYFLU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81953-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02751.txt.bz2
Content-length: 1082

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81953

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
TER doesn't cross calls these days, it's really sinking doing this.

I think given the schedule of instructions inside a BB on GIMPLE is somewhat
arbitrary sinking should always sink to the beginning of the basic block.

Note sinking also pushes things downward to post-dominating blocks, so for
the slightly modified testcase:

void bar();
int j, x;
void foo(int a, int b, int c, int d, int e, int f)
{
  int l;
  l = a + b + c + d +e + f;
  if (a != 5)
    {
      bar();
      if (b != 3)
        x = 3;
      else
        x = 5;
      j = l;
    }
}

the trick with the start of the BB wouldn't work as it crosses the if (b != 3)
diamond as well.

I suppose it should get some register pressure modeling here (sinking a
load with no SSA dependencies as far as possible is good, but when SSA
dependencies are involved the live-in of the sunk stmt group matters).

The interesting part is also why RTL scheduling doesn't rectify things
here?
>From gcc-bugs-return-573193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:34:55 2017
Return-Path: <gcc-bugs-return-573193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76060 invoked by alias); 24 Aug 2017 10:34: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 75999 invoked by uid 48); 24 Aug 2017 10:34:50 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81954] gcc8 too aggressively reorders memory access beyond condition
Date: Thu, 24 Aug 2017 12:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: alias, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81954-4-ZTwyAv8ZEJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81954-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81954-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02752.txt.bz2
Content-length: 204

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81954

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Or this is a dup of PR81900 which is meanwhile fixed (but not in your version).
>From gcc-bugs-return-573194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:39:26 2017
Return-Path: <gcc-bugs-return-573194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80826 invoked by alias); 24 Aug 2017 10:39:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80773 invoked by uid 48); 24 Aug 2017 10:39:20 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/81955] corrupted double-linked list (not small)
Date: Thu, 24 Aug 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: rtl-optimization
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed attachments.created
Message-ID: <bug-81955-4-YsPvjYXms4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02753.txt.bz2
Content-length: 823

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81955

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-24
     Ever confirmed|0                           |1

--- Comment #2 from Ad PC <adpc at riseup dot net> ---
Created attachment 42034
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42034&action=edit
source

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Please atttach _preprocessed_ source (or provide a link where to download it),
non-preprocessed source cannot be used as a testcase as it includes files we do
not have available.
>From gcc-bugs-return-573195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:39:51 2017
Return-Path: <gcc-bugs-return-573195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81618 invoked by alias); 24 Aug 2017 10:39: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 81579 invoked by uid 48); 24 Aug 2017 10:39:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/81956] [7 regression] calling a null procedure is not skipped
Date: Thu, 24 Aug 2017 13:21: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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
Message-ID: <bug-81956-4-tv8pGgFMxA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81956-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81956-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02754.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81956

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |7.3
>From gcc-bugs-return-573196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:41:17 2017
Return-Path: <gcc-bugs-return-573196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115964 invoked by alias); 24 Aug 2017 10:41:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112671 invoked by uid 48); 24 Aug 2017 10:41:10 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81965] [8 Regression] ICE in stage 2 compiler while configuring libgcc in stage 2, during GIMPLE pass: cfg
Date: Thu, 24 Aug 2017 13:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone
Message-ID: <bug-81965-4-fZfKan0QNl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02755.txt.bz2
Content-length: 1187

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81965

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Just a wild guess... does

Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c     (revision 251326)
+++ gcc/dwarf2out.c     (working copy)
@@ -178,7 +178,7 @@ static GTY(()) section *debug_ranges_sec
 static GTY(()) section *debug_frame_section;

 /* Maximum size (in bytes) of an artificially generated label.  */
-#define MAX_ARTIFICIAL_LABEL_BYTES     30
+#define MAX_ARTIFICIAL_LABEL_BYTES     40

 /* According to the (draft) DWARF 3 specification, the initial length
    should either be 4 or 12 bytes.  When it's 12 bytes, the first 4

fix it?
>From gcc-bugs-return-573197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:43:00 2017
Return-Path: <gcc-bugs-return-573197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66443 invoked by alias); 24 Aug 2017 10:43: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 66379 invoked by uid 48); 24 Aug 2017 10:42:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/81961] [7 regression] an imported unsized C array in the auto-translated binding raises Storage_Error
Date: Thu, 24 Aug 2017 13: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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
Message-ID: <bug-81961-4-Gv51ZIxRwo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81961-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81961-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02756.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81961

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |7.3
>From gcc-bugs-return-573198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:43:52 2017
Return-Path: <gcc-bugs-return-573198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67858 invoked by alias); 24 Aug 2017 10:43:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 67818 invoked by uid 48); 24 Aug 2017 10:43:46 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk2Nl0gTmV3OiBydW50aW1lLmluYzozNjI6MTA6IGVycm9y?= =?UTF-8?B?OiBkdXBsaWNhdGUgbWVtYmVyIOKAmF/igJk=?Date: Thu, 24 Aug 2017 13:46: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: mfe at live dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-81966-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02757.txt.bz2
Content-length: 4042

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81966

            Bug ID: 81966
           Summary: runtime.inc:362:10: error: duplicate member ‘_’
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: mfe at live dot de
                CC: cmang at google dot com
  Target Milestone: ---

Hi,

regarding https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946 I untared the last
gcc 7.2.0 source. I removed the libgo folder and replaced it with the libgo
folder from the svn trunk source.

the exact version of GCC:
gcc-7.1.0

the system type:
NetgearReadyNAS Duo
(http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS)

the options given when GCC was configured/built:
nas-02-90-38:/media/gcc-7.2.0-go# ../gcc-7.2.0/configure
CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go
--prefix=/opt/gcc-7.2.0  --with-cpu=v7 --disable-libstdcxx-pch
--disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit
--with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug 
--disable-doc --disable-libcilkrts --disable-libitm


## --------- ##
## Platform. ##
## --------- ##

hostname = nas-02-90-38
uname -m = padre
uname -r = 2.6.17.14ReadyNAS
uname -s = Linux
uname -v = #1 Wed Jun 20 20:08:20 PDT 2012

the complete command line that triggers the bug;
/usr/local/bin/make

the compiler output (error messages, warnings, etc.);
[...]
time/write_err.go runtime_sysinfo.go sigtab.go -o runtime.o >/dev/null 2>&1
rm -f runtime.inc.tmp2 runtime.inc.tmp3
grep -v "#define _" runtime.inc.tmp | grep -v "#define [cm][01234] " | grep -v
"#define empty " > runtime.inc.tmp2
for pattern in '_[GP][a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
  grep "#define $pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
done
for TYPE in _Complex_lock _Reader_lock semt; do \
  sed -e '/struct '${TYPE}' {/,/^}/s/^.*$//' runtime.inc.tmp2 >
runtime.inc.tmp3; \
  mv runtime.inc.tmp3 runtime.inc.tmp2; \
done
sed -e 's/sigset/sigset_go/' runtime.inc.tmp2 > runtime.inc.tmp3
/bin/sh ../../../gcc-7.2.0/libgo/mvifdiff.sh runtime.inc.tmp3 runtime.inc
rm -f runtime.inc.tmp2 runtime.inc.tmp3
echo timestamp > s-runtime-inc
/media/gcc-7.2.0-go/./gcc/xgcc -B/media/gcc-7.2.0-go/./gcc/
-B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-7.2.0/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-7.2.0/sparc-unknown-linux-gnu/sys-include    -DHAVE_CONFIG_H -I.
-I../../../gcc-7.2.0/libgo  -I ../../../gcc-7.2.0/libgo/runtime
-I../../../gcc-7.2.0/libgo/../libffi/include -I../libffi/include -pthread 
-fexceptions -fnon-call-exceptions -fplan9-extensions  -Wall -Wextra
-Wwrite-strings -Wcast-qual -Werror   -D_GNU_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I ../../../gcc-7.2.0/libgo/../libgcc -I
../../../gcc-7.2.0/libgo/../libbacktrace -I ../../gcc/include -fPIC -g -O2 -MT
libgobegin_a-go-main.o -MD -MP -MF .deps/libgobegin_a-go-main.Tpo -c -o
libgobegin_a-go-main.o `test -f 'runtime/go-main.c' || echo
'../../../gcc-7.2.0/libgo/'`runtime/go-main.c
In file included from ../../../gcc-7.2.0/libgo/runtime/runtime.h:108:0,
                 from ../../../gcc-7.2.0/libgo/runtime/go-main.c:17:
./runtime.inc:362:10: error: duplicate member ‘_’
  uint8_t _[64];
          ^
Generated runtime.inc from line 347 to 363:

struct gcControllerState {
        int64_t scanWork;
        int64_t bgScanCredit;
        int64_t assistTime;
        int64_t dedicatedMarkTime;
        int64_t fractionalMarkTime;
        int64_t idleMarkTime;
        int64_t markStartTime;
        int64_t dedicatedMarkWorkersNeeded;
        double assistWorkPerByte;
        double assistBytesPerWork;
        double fractionalUtilizationGoal;
        double triggerRatio;
        uint8_t _[64];
        int64_t fractionalMarkWorkersNeeded;
        uint8_t _[64];
};
>From gcc-bugs-return-573199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 10:46:06 2017
Return-Path: <gcc-bugs-return-573199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114138 invoked by alias); 24 Aug 2017 10:46: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 97436 invoked by uid 48); 24 Aug 2017 10:45:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81957] ICE decltype
Date: Thu, 24 Aug 2017 13:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: ice-on-valid-code, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-81957-4-or07ht8gkR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81957-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81957-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02758.txt.bz2
Content-length: 615

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81957

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code,
                   |                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-573200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 11:24:58 2017
Return-Path: <gcc-bugs-return-573200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111040 invoked by alias); 24 Aug 2017 11:24: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 110965 invoked by uid 48); 24 Aug 2017 11:24:51 -0000
From: "jozef.l at somniumtech dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80993] [msp430] __attribute__((interrupt)) should imply __attribute__((used))
Date: Thu, 24 Aug 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: target
X-Bugzilla-Version: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jozef.l at somniumtech 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-80993-4-1tnzZWuhAo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80993-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80993-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02759.txt.bz2
Content-length: 479

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80993

Jozef Lawrynowicz <jozef.l at somniumtech dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jozef.l at somniumtech dot com

--- Comment #1 from Jozef Lawrynowicz <jozef.l at somniumtech dot com> ---
Patch submitted: https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01426.html
>From gcc-bugs-return-573201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 11:41:34 2017
Return-Path: <gcc-bugs-return-573201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24603 invoked by alias); 24 Aug 2017 11:41:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24533 invoked by uid 55); 24 Aug 2017 11:41:30 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Thu, 24 Aug 2017 14:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh at gcc dot gnu.org
X-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-81931-4-P2p6gFKNbf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02760.txt.bz2
Content-length: 457

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #11 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Thu Aug 24 11:40:55 2017
New Revision: 251328

URL: https://gcc.gnu.org/viewcvs?rev=251328&root=gcc&view=rev
Log:
        PR middle-end/81931
        * tree-ssanames.c (get_nonzero_bits): Use element_precision
        instead of TYPE_PRECISION.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssanames.c
>From gcc-bugs-return-573202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 11:43:09 2017
Return-Path: <gcc-bugs-return-573202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27874 invoked by alias); 24 Aug 2017 11:43: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 27684 invoked by uid 55); 24 Aug 2017 11:43:04 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81931] [8 regression] r251260 breaks many tests on powerpc64
Date: Thu, 24 Aug 2017 14:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh at gcc dot gnu.org
X-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-81931-4-Jeewr7KAX3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81931-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02761.txt.bz2
Content-length: 554

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81931

--- Comment #12 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Thu Aug 24 11:42:24 2017
New Revision: 251329

URL: https://gcc.gnu.org/viewcvs?rev=251329&root=gcc&view=rev
Log:
Port from mainline:

2017-08-24  Aldy Hernandez  <aldyh@redhat.com>

        PR middle-end/81931
        * tree-ssanames.c (get_nonzero_bits): Use element_precision
        instead of TYPE_PRECISION.

Modified:
    branches/range-gen2/gcc/ChangeLog
    branches/range-gen2/gcc/tree-ssanames.c
>From gcc-bugs-return-573203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 11:59:59 2017
Return-Path: <gcc-bugs-return-573203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68166 invoked by alias); 24 Aug 2017 11:59:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68103 invoked by uid 48); 24 Aug 2017 11:59:51 -0000
From: "rainer@emrich-ebersheim.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81965] [8 Regression] ICE in stage 2 compiler while configuring libgcc in stage 2, during GIMPLE pass: cfg
Date: Thu, 24 Aug 2017 14:23: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: rainer@emrich-ebersheim.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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81965-4-dKsFiF8lPJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02762.txt.bz2
Content-length: 983

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81965

--- Comment #2 from Rainer Emrich <rainer@emrich-ebersheim.de> ---
(In reply to Richard Biener from comment #1)
> Just a wild guess... does
> 
> Index: gcc/dwarf2out.c
> ===================================================================
> --- gcc/dwarf2out.c     (revision 251326)
> +++ gcc/dwarf2out.c     (working copy)
> @@ -178,7 +178,7 @@ static GTY(()) section *debug_ranges_sec
>  static GTY(()) section *debug_frame_section;
>  
>  /* Maximum size (in bytes) of an artificially generated label.  */
> -#define MAX_ARTIFICIAL_LABEL_BYTES     30
> +#define MAX_ARTIFICIAL_LABEL_BYTES     40
>  
>  /* According to the (draft) DWARF 3 specification, the initial length
>     should either be 4 or 12 bytes.  When it's 12 bytes, the first 4
> 
> fix it?

Unfortunately not.
>From gcc-bugs-return-573204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 12:01:20 2017
Return-Path: <gcc-bugs-return-573204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74527 invoked by alias); 24 Aug 2017 12:01: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 69457 invoked by uid 48); 24 Aug 2017 12:00:36 -0000
From: "rainer@emrich-ebersheim.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81965] [8 Regression] ICE in stage 2 compiler while configuring libgcc in stage 2, during GIMPLE pass: cfg
Date: Thu, 24 Aug 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: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rainer@emrich-ebersheim.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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81965-4-Nov3F6bkpP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02763.txt.bz2
Content-length: 1091

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81965

--- Comment #3 from Rainer Emrich <rainer@emrich-ebersheim.de> ---
(In reply to Rainer Emrich from comment #2)
> (In reply to Richard Biener from comment #1)
> > Just a wild guess... does
> > 
> > Index: gcc/dwarf2out.c
> > ===================================================================
> > --- gcc/dwarf2out.c     (revision 251326)
> > +++ gcc/dwarf2out.c     (working copy)
> > @@ -178,7 +178,7 @@ static GTY(()) section *debug_ranges_sec
> >  static GTY(()) section *debug_frame_section;
> >  
> >  /* Maximum size (in bytes) of an artificially generated label.  */
> > -#define MAX_ARTIFICIAL_LABEL_BYTES     30
> > +#define MAX_ARTIFICIAL_LABEL_BYTES     40
> >  
> >  /* According to the (draft) DWARF 3 specification, the initial length
> >     should either be 4 or 12 bytes.  When it's 12 bytes, the first 4
> > 
> > fix it?
> 
> Unfortunately not.

I'm going to bisect.
>From gcc-bugs-return-573205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 12:10:29 2017
Return-Path: <gcc-bugs-return-573205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1752 invoked by alias); 24 Aug 2017 12:10:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1697 invoked by uid 48); 24 Aug 2017 12:10:23 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Thu, 24 Aug 2017 14:53: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: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-81936-4-lAsElog57H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02764.txt.bz2
Content-length: 2011

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-08-24
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ok, I think this isn't really offloading specific.  We emit locations with
DW_OP_GNU_variable_value optimistically as dw_val_class_decl_ref and later
either resolve those to a dw_val_class_die_ref or drop them
(resolve_addr_in_expr).

For early LTO we have the machinery in note_variable_value_in_expr to
workaround this early (until we find a better way).

Ah...

static void
note_variable_value_in_expr (dw_die_ref die, dw_loc_descr_ref loc)
{
  for (; loc; loc = loc->dw_loc_next)
    if (loc->dw_loc_opc == DW_OP_GNU_variable_value
        && loc->dw_loc_oprnd1.val_class == dw_val_class_decl_ref)
      {
        tree decl = loc->dw_loc_oprnd1.v.val_decl_ref;
        dw_die_ref ref = lookup_decl_die (decl);
        if (! ref && flag_generate_lto)
          {

|| flag_generate_offload missing...

and we run into:

> ./cc1 -quiet pr66714.c -fopenmp -g
pr66714.c:17:1: internal compiler error: in calc_die_sizes, at dwarf2out.c:9131
 }
 ^
0xa4c29f calc_die_sizes
        /tmp/trunk2/gcc/dwarf2out.c:9130
0xa4c2f9 calc_die_sizes
        /tmp/trunk2/gcc/dwarf2out.c:9135
0xa4f31c output_comp_unit
        /tmp/trunk2/gcc/dwarf2out.c:10432
0xa81c71 dwarf2out_finish
        /tmp/trunk2/gcc/dwarf2out.c:30022
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.

more flag_generate-offload missing.
>From gcc-bugs-return-573206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 12:11:14 2017
Return-Path: <gcc-bugs-return-573206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3328 invoked by alias); 24 Aug 2017 12: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 3265 invoked by uid 48); 24 Aug 2017 12:11:09 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Thu, 24 Aug 2017 15:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81936-4-0QC3WuoA5B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02765.txt.bz2
Content-length: 229

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #17 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 42036
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42036&action=edit
patch
>From gcc-bugs-return-573207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 12:16:21 2017
Return-Path: <gcc-bugs-return-573207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33013 invoked by alias); 24 Aug 2017 12:16: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 14414 invoked by uid 48); 24 Aug 2017 12:16:09 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67960] Prefixing a function with [[deprecated]] produces multiple warnings
Date: Thu, 24 Aug 2017 15:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: diagnostic
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: keywords bug_status cc resolution
Message-ID: <bug-67960-4-EIFSLPvZ83@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67960-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67960-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02766.txt.bz2
Content-length: 786

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67960

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Closing as a duplicate of bug 79078. Even though that one is newer, it's more
general, has more extensive discussion, and I saw it before I saw this one.

*** This bug has been marked as a duplicate of bug 79078 ***
>From gcc-bugs-return-573208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 12:16:26 2017
Return-Path: <gcc-bugs-return-573208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34088 invoked by alias); 24 Aug 2017 12: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 26663 invoked by uid 48); 24 Aug 2017 12:16:17 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79078] Warnings from deprecated attribute are too noisy
Date: Thu, 24 Aug 2017 15:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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: cc
Message-ID: <bug-79078-4-WZEhlGy5Ig@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79078-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79078-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02767.txt.bz2
Content-length: 451

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chrisb2244 at gmail dot com

--- Comment #12 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 67960 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-573209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 12:32:37 2017
Return-Path: <gcc-bugs-return-573209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28314 invoked by alias); 24 Aug 2017 12: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 25054 invoked by uid 48); 24 Aug 2017 12:32:33 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81908] [8 Regression] FAIL: gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
Date: Thu, 24 Aug 2017 15:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget cc
Message-ID: <bug-81908-4-bHsHjpKDY9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02768.txt.bz2
Content-length: 605

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81908

Christophe Lyon <clyon at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|i?86-*-*                    |i?86-*-*
                   |                            |arm-none-linux-gnueabihf
                 CC|                            |clyon at gcc dot gnu.org

--- Comment #6 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Also seen on arm-none-linux-gnueabihf targets --with-cpu=cortex-a9
--with-fpu=neon-fp16
>From gcc-bugs-return-573210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 12:48:46 2017
Return-Path: <gcc-bugs-return-573210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43636 invoked by alias); 24 Aug 2017 12:48:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 43508 invoked by uid 48); 24 Aug 2017 12:48:36 -0000
From: "v.barinov at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81967] New: No overload std::basic_string::erase(__const_iterator, __const_iterator) old ABI
Date: Thu, 24 Aug 2017 15:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: v.barinov at samsung dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-81967-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02769.txt.bz2
Content-length: 972

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81967

            Bug ID: 81967
           Summary: No overload std::basic_string::erase(__const_iterator,
                    __const_iterator) old ABI
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: v.barinov at samsung dot com
  Target Milestone: ---

Created attachment 42037
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42037&action=edit
Bug example

include/bits/basic_string.h lacks overload of
std::basic_string::erase(__const_iterator, __const_iterator) for old abi.

 g++ test.cxx -DGLIBCXX_USE_CXX11_ABI=1

is okay, but

 g++ test.cxx -DGLIBCXX_USE_CXX11_ABI=0

 test.cxx:7:15: error: no matching function for call to
‘std::basic_string<char>::erase(const const_iterator&, const const_iterator&)’
>From gcc-bugs-return-573211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 13:20:26 2017
Return-Path: <gcc-bugs-return-573211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66147 invoked by alias); 24 Aug 2017 13:20:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65825 invoked by uid 48); 24 Aug 2017 13:20:20 -0000
From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 2017 15:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryxi at stu dot xidian.edu.cn
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81932-4-jOzxdFSMHn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02770.txt.bz2
Content-length: 934

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

Xi Ruoyao <ryxi at stu dot xidian.edu.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |msebor at gcc dot gnu.org,
                   |                            |ryxi at stu dot xidian.edu.cn

--- Comment #4 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
It starts form r243461:

PR c/78165 - avoid printing type suffix for constants in %E output

gcc/c-family/ChangeLog:

        PR c/78165
           * c-pretty-print (pp_c_integer_constant): Avoid formatting type
             suffix.

Martin removed the type suffix for %E unconditionally.  I think it's wrong
for debug symbol of TreeVector<typename, unsigned int> since it's "official
name" (demangled C++ symbol name) HAS the type suffix.

CC Martin to know his opinion.
>From gcc-bugs-return-573212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 13:21:02 2017
Return-Path: <gcc-bugs-return-573212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67062 invoked by alias); 24 Aug 2017 13:21: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 66993 invoked by uid 55); 24 Aug 2017 13:20:58 -0000
From: "yroux at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80287] C++ crash with __attribute((may_alias))
Date: Thu, 24 Aug 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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yroux 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-80287-4-JhT2J7PR2d@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80287-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80287-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02771.txt.bz2
Content-length: 951

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80287

--- Comment #11 from Yvan Roux <yroux at gcc dot gnu.org> ---
Author: yroux
Date: Thu Aug 24 13:20:22 2017
New Revision: 251331

URL: https://gcc.gnu.org/viewcvs?rev=251331&root=gcc&view=rev
Log:
PR c++/80287 C++ crash with __attribute((may_alias))

gcc/
2017-08-24  Yvan Roux  <yvan.roux@linaro.org>

        Backport from mainline
        2017-04-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/80287
        * class.c (fixup_may_alias): Fix all type variants.

gcc/testsuite
2017-08-24  Yvan Roux  <yvan.roux@linaro.org>

        Backport from mainline
        2017-08-22  Yvan Roux  <yvan.roux@linaro.org>

        PR c++/80287
        * g++.dg/pr8028.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/pr80287.C
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/cp/class.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-573213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 13:33:27 2017
Return-Path: <gcc-bugs-return-573213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2852 invoked by alias); 24 Aug 2017 13:33: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 453 invoked by uid 48); 24 Aug 2017 13:33:22 -0000
From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryxi at stu dot xidian.edu.cn
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81932-4-nvwXoym1AW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02772.txt.bz2
Content-length: 225

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #5 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
Martin said Clang doesn't output the suffix at all, so I tested Clang 4.0.
It also suffers this warning.
>From gcc-bugs-return-573214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 13:42:31 2017
Return-Path: <gcc-bugs-return-573214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44816 invoked by alias); 24 Aug 2017 13:42:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44706 invoked by uid 55); 24 Aug 2017 13:42:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Thu, 24 Aug 2017 15:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81936-4-5cSTh1k5RM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02773.txt.bz2
Content-length: 955

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Aug 24 13:41:51 2017
New Revision: 251332

URL: https://gcc.gnu.org/viewcvs?rev=251332&root=gcc&view=rev
Log:
2017-08-24  Richard Biener  <rguenther@suse.de>

        PR debug/81936
        * dwarf2out.c (output_die): Handle flag_generate_offload like
        flag_generate_lto.
        (output_comp_unit): Likewise.
        (gen_array_type_die): Likewise.
        (dwarf2out_early_finish): Likewise.
        (note_variable_value_in_expr): Likewise.
        (dwarf2out_finish): Likewise.  Adjust assert.
        * cgraphunit.c (symbol_table::compile): Move setting of
        flag_generate_offload earlier ...
        (symbol_table::finalize_compilation_unit): ... here, before
        early debug finalization.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraphunit.c
    trunk/gcc/dwarf2out.c
>From gcc-bugs-return-573215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 13:46:09 2017
Return-Path: <gcc-bugs-return-573215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77572 invoked by alias); 24 Aug 2017 13:46: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 77414 invoked by uid 55); 24 Aug 2017 13:45:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81921] [5/6/7/8 Regression] Fails to always-inline intrinsics with -flto
Date: Thu, 24 Aug 2017 15:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: lto, rejects-valid
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81921-4-QyacXyjZLB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81921-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81921-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02774.txt.bz2
Content-length: 1018

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81921

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Aug 24 13:44:35 2017
New Revision: 251333

URL: https://gcc.gnu.org/viewcvs?rev=251333&root=gcc&view=rev
Log:
2017-08-23  Richard Biener  <rguenther@suse.de>

        PR target/81921
        * targhooks.c (default_target_can_inline_p): Properly
        use target_option_default_node when no DECL_FUNCTION_SPECIFIC_TARGET
        is present and always compare.
        * config/i386/i386.c (ix86_valid_target_attribute_tree): Do not
        imply -mfpmath=sse from TARGET_SSE_P.
        (ix86_can_inline_p): Properly use target_option_default_node when
        no DECL_FUNCTION_SPECIFIC_TARGET is present and always compare.

        * gcc.target/i386/pr81921.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr81921.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/targhooks.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-573216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 13:53:57 2017
Return-Path: <gcc-bugs-return-573216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85475 invoked by alias); 24 Aug 2017 13:53: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 85391 invoked by uid 48); 24 Aug 2017 13:53:52 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543
Date: Thu, 24 Aug 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: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81936-4-bjkfuv3tOe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02775.txt.bz2
Content-length: 430

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #19 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-573218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 14:18:53 2017
Return-Path: <gcc-bugs-return-573218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54789 invoked by alias); 24 Aug 2017 14:18: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 54716 invoked by uid 48); 24 Aug 2017 14:18:47 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81968] New: [8 regression] early lto debug objects make Solaris ld SEGV
Date: Thu, 24 Aug 2017 15:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 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-81968-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02777.txt.bz2
Content-length: 1642

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968

            Bug ID: 81968
           Summary: [8 regression] early lto debug objects make Solaris ld
                    SEGV
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org, rguenth at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11

The Early LTO Debug patches caused a large number of testsuite regressions on
Solaris when using /bin/ld:

+UNRESOLVED: g++.dg/lto/20101010-4 cp_lto_20101010-4_0.o-cp_lto_20101010-4_0.o
execute  -std=c++0x -flto -g -r -nostdlib 
+FAIL: g++.dg/lto/20101010-4 cp_lto_20101010-4_0.o-cp_lto_20101010-4_0.o link, 
-std=c++0x -flto -g -r -nostdlib 

They all are like

FAIL: c-c++-common/cilk-plus/CK/cilk-for-2.c  -O3 -flto -g  (test for excess
errors)
Excess errors:
collect2: fatal error: ld terminated with signal 11 [Segmentation Fault]
compilation terminated.
ld: warning: file /var/tmp//ccOFDEXadebugobjtem: section [1] has invalid type [
SHT_NULL ]
ld: warning: file /var/tmp//ccOFDEXadebugobjtem: section [5] contains both
SHF_EXCLUDE and SHF_ALLOC flags: SHF_EXCLUDE ignored

The same problem happens when gcc is configured to use gas and ld instead of
as/ld, sparc and x86, 32 and 64-bit.

Clearly a SEGV isn't the best error handling, and I'm not yet certain if the
errors
are benign.  OTOH, I don't yet know why the objects are created this way.

  Rainer
>From gcc-bugs-return-573217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 13:55:05 2017
Return-Path: <gcc-bugs-return-573217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102741 invoked by alias); 24 Aug 2017 13:55:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 97317 invoked by uid 48); 24 Aug 2017 13:54:59 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81921] [5/6/7 Regression] Fails to always-inline intrinsics with -flto
Date: Thu, 24 Aug 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: lto, rejects-valid
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-81921-4-PA7UnwBNqz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81921-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81921-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02776.txt.bz2
Content-length: 645

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81921

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |8.0
            Summary|[5/6/7/8 Regression] Fails  |[5/6/7 Regression] Fails to
                   |to always-inline intrinsics |always-inline intrinsics
                   |with -flto                  |with -flto
      Known to fail|8.0                         |

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.
>From gcc-bugs-return-573219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 14:19:08 2017
Return-Path: <gcc-bugs-return-573219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55850 invoked by alias); 24 Aug 2017 14:19:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55532 invoked by uid 48); 24 Aug 2017 14:19:02 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81968] [8 regression] early lto debug objects make Solaris ld SEGV
Date: Thu, 24 Aug 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: lto
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-81968-4-BifOj9Lt2e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81968-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81968-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02778.txt.bz2
Content-length: 285

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-573220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 14:23:10 2017
Return-Path: <gcc-bugs-return-573220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5374 invoked by alias); 24 Aug 2017 14:23: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 5331 invoked by uid 48); 24 Aug 2017 14:23:05 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81960] gcc doesn't compile on MAC OS X
Date: Thu, 24 Aug 2017 16:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status component resolution target_milestone
Message-ID: <bug-81960-4-HFHTKK7PTr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02779.txt.bz2
Content-length: 541

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81960

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|libgcc                      |bootstrap
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed.
>From gcc-bugs-return-573221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 14:45:24 2017
Return-Path: <gcc-bugs-return-573221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16629 invoked by alias); 24 Aug 2017 14:45:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16253 invoked by uid 48); 24 Aug 2017 14:44:59 -0000
From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryxi at stu dot xidian.edu.cn
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81932-4-P6DwMZsPRH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02780.txt.bz2
Content-length: 334

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #6 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
Created attachment 42038
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42038&action=edit
patch proposal

This patch turn on the type suffix of integer constants in debug info.

It's not tested well yet.
>From gcc-bugs-return-573222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 14:53:54 2017
Return-Path: <gcc-bugs-return-573222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87554 invoked by alias); 24 Aug 2017 14:53: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 87459 invoked by uid 48); 24 Aug 2017 14:53:49 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81504] [7/8 Regression] gcc-7 regression: vec_st  in loop misoptimized
Date: Thu, 24 Aug 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: 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: P2
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81504-4-4WwNdkZaYB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02781.txt.bz2
Content-length: 277

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81504

--- Comment #4 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
I don't think this has anything to do with the swaps pass.  I see the same
wrong code generation with -mno-optimize-swaps.  I'll continue to investigate.
>From gcc-bugs-return-573223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:04:42 2017
Return-Path: <gcc-bugs-return-573223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107184 invoked by alias); 24 Aug 2017 15: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 95702 invoked by uid 48); 24 Aug 2017 15:04:32 -0000
From: "psmith at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 2017 16:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: psmith 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-81932-4-2Fbj6YcGOM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02782.txt.bz2
Content-length: 387

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #7 from Paul Smith <psmith at gnu dot org> ---
I'm not sure what the impacts of "if (pp->flags & pp_c_flag_gnu_v3)" are; does
this mean it only works if you specify -ggdb3?  Is that the right thing?  I
don't know what the differences are between the different debug types.

Thanks for picking up this issue so quickly!
>From gcc-bugs-return-573224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:16:38 2017
Return-Path: <gcc-bugs-return-573224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85814 invoked by alias); 24 Aug 2017 15:16:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85726 invoked by uid 55); 24 Aug 2017 15:16:30 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81968] [8 regression] early lto debug objects make Solaris ld SEGV
Date: Thu, 24 Aug 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: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81968-4-kP15dG7hlG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81968-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81968-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02783.txt.bz2
Content-length: 2071

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968

--- Comment #1 from rguenther at suse dot de <rguenther at suse dot de> ---
On August 24, 2017 4:18:45 PM GMT+02:00, "ro at gcc dot gnu.org"
<gcc-bugzilla@gcc.gnu.org> wrote:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968
>
>            Bug ID: 81968
>        Summary: [8 regression] early lto debug objects make Solaris ld
>                    SEGV
>           Product: gcc
>           Version: 8.0
>            Status: UNCONFIRMED
>          Severity: normal
>          Priority: P3
>         Component: lto
>          Assignee: unassigned at gcc dot gnu.org
>          Reporter: ro at gcc dot gnu.org
>              CC: marxin at gcc dot gnu.org, rguenth at gcc dot gnu.org
>  Target Milestone: ---
>            Target: *-*-solaris2.11
>
>The Early LTO Debug patches caused a large number of testsuite
>regressions on
>Solaris when using /bin/ld:
>
>+UNRESOLVED: g++.dg/lto/20101010-4
>cp_lto_20101010-4_0.o-cp_lto_20101010-4_0.o
>execute  -std=c++0x -flto -g -r -nostdlib 
>+FAIL: g++.dg/lto/20101010-4
>cp_lto_20101010-4_0.o-cp_lto_20101010-4_0.o link, 
>-std=c++0x -flto -g -r -nostdlib 
>
>They all are like
>
>FAIL: c-c++-common/cilk-plus/CK/cilk-for-2.c  -O3 -flto -g  (test for
>excess
>errors)
>Excess errors:
>collect2: fatal error: ld terminated with signal 11 [Segmentation
>Fault]
>compilation terminated.
>ld: warning: file /var/tmp//ccOFDEXadebugobjtem: section [1] has
>invalid type [
>SHT_NULL ]
>ld: warning: file /var/tmp//ccOFDEXadebugobjtem: section [5] contains
>both
>SHF_EXCLUDE and SHF_ALLOC flags: SHF_EXCLUDE ignored
>
>The same problem happens when gcc is configured to use gas and ld
>instead of
>as/ld, sparc and x86, 32 and 64-bit.
>
>Clearly a SEGV isn't the best error handling, and I'm not yet certain
>if the
>errors
>are benign.  OTOH, I don't yet know why the objects are created this
>way.

They are created that way to make my life easier. They are supposed to be valid
ELF objects and they are according to the specs and my interpretation. 

>
>  Rainer
>From gcc-bugs-return-573225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:18:56 2017
Return-Path: <gcc-bugs-return-573225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107159 invoked by alias); 24 Aug 2017 15:18:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107105 invoked by uid 48); 24 Aug 2017 15:18:50 -0000
From: "rainer@emrich-ebersheim.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81965] [8 Regression] ICE in stage 2 compiler while configuring libgcc in stage 2, during GIMPLE pass: cfg
Date: Thu, 24 Aug 2017 16: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: rainer@emrich-ebersheim.de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81965-4-ZMdT82FMwO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02784.txt.bz2
Content-length: 668

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81965

Rainer Emrich <rainer@emrich-ebersheim.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Rainer Emrich <rainer@emrich-ebersheim.de> ---
Ok, found it. That's an issue of binutils trunk from this morning, strange.
Using binutils-2.29 works as expected.
Will have an eye at binutils trunk. If the issue persist I will open an PR in
the binutils bugzilla.

Closing the PR as invalid.
>From gcc-bugs-return-573226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:24:57 2017
Return-Path: <gcc-bugs-return-573226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37090 invoked by alias); 24 Aug 2017 15:24:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 37028 invoked by uid 48); 24 Aug 2017 15:24:51 -0000
From: "vincent-gcc at vinc17 dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81969] New: "el" escape sequence in coloring yields incorrect message in some terminals
Date: Thu, 24 Aug 2017 16:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vincent-gcc at vinc17 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-81969-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02785.txt.bz2
Content-length: 4136

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81969

            Bug ID: 81969
           Summary: "el" escape sequence in coloring yields incorrect
                    message in some terminals
           Product: gcc
           Version: 6.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vincent-gcc at vinc17 dot net
  Target Milestone: ---

Consider a tst.c file:

int foo (void)
{
  int x, xx;
  return x + xx;
}

In a 80-column xterm, I get (where | represents the right border of the
terminal):

cventin% gcc-6 -Wall -c tst.c                                                  
|
tst.c: In function ‘foo’:                                                      
|
tst.c:4:12: warning: ‘x’ is used uninitialized in this function
[-Wuninitialize]|
   return x + xx;                                                              
|
          ~~^~~~                                                               
|
tst.c:4:12: warning: ‘xx’ is used uninitialized in this function
[-Wuninitialize|
d]                                                                             
|

i.e. the "d" of -Wuninitialized is missing in the first message.

In a 80-column rxvt, I get:

cventin% gcc-6 -Wall -c tst.c                                                  
|
tst.c: In function ‘foo’:                                                      
|
tst.c:4:12: warning: ‘x’ is used uninitialized in this function [-Wuninitialize
|
]                                                                              
|
   return x + xx;                                                              
|
          ~~^~~~                                                               
|
tst.c:4:12: warning: ‘xx’ is used uninitialized in this function
[-Wuninitialize|
d]                                                                             
|

Here the "d" is replaced by a space.

In the xterm logs, I see a \E[K ("el" escape sequence, which clears to the end
of the line) after the first 80 characters. Thus this may be the same bug as in
grep: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=15444
I quote:

  The EL command (\E[K) is sent to clear the line. The VT100
  terminal autowraps when the 81th character is received and the
  EL command is not counted as a character. So if 80 characters
  are received, it waits on the 80th character and the following
  EL command erases characters from the current one to the end
  of line (i.e. the last character on the line).
>From gcc-bugs-return-573227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:29:08 2017
Return-Path: <gcc-bugs-return-573227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41800 invoked by alias); 24 Aug 2017 15:29: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 41731 invoked by uid 48); 24 Aug 2017 15:29:01 -0000
From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 2017 16: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryxi at stu dot xidian.edu.cn
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81932-4-4cq15rng8j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02786.txt.bz2
Content-length: 505

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #8 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
(In reply to Paul Smith from comment #7)
> I'm not sure what the impacts of "if (pp->flags & pp_c_flag_gnu_v3)" are;
> does this mean it only works if you specify -ggdb3?  Is that the right
> thing?  I don't know what the differences are between the different debug
> types.

I'm neither...  But this flag is set for -g, too.

I'll try more -gxxx options to see if we need a new flag.
>From gcc-bugs-return-573228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:31:32 2017
Return-Path: <gcc-bugs-return-573228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53789 invoked by alias); 24 Aug 2017 15:31: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 53688 invoked by uid 48); 24 Aug 2017 15:31:23 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk2Nl0gcnVudGltZS5pbmM6MzYyOjEwOiBlcnJvcjogZHVw?= =?UTF-8?B?bGljYXRlIG1lbWJlciDigJhf4oCZ?Date: Thu, 24 Aug 2017 16:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81966-4-M0V4kstp4H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81966-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81966-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02787.txt.bz2
Content-length: 581

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81966

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
This is already fixed on trunk by https://golang.org/cl/40701.  That patch was
not backported to the GCC 7 branch, but you could backport it yourself easily
enough.
>From gcc-bugs-return-573230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:37:48 2017
Return-Path: <gcc-bugs-return-573230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49688 invoked by alias); 24 Aug 2017 15:37: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 40109 invoked by uid 48); 24 Aug 2017 15:37:42 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81970] New: carchive gotools tests fail
Date: Thu, 24 Aug 2017 16:43: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: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <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-08/txt/msg02789.txt.bz2
Content-length: 2806

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81970

            Bug ID: 81970
           Summary: carchive gotools tests fail
           Product: gcc
           Version: 8.0
            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: ---

Following carchive gotools tests fail in gccgo testsuite:

FAIL: TestCgoCallbackGC
FAIL: TestInstall
FAIL: TestEarlySignalHandler
FAIL: TestSignalForwarding
FAIL: TestSignalForwardingExternal
FAIL: TestOsSignal
FAIL: TestSigaltstack
FAIL: TestPIE

The problem can be seen from the gotools log dump:

=== RUN   TestInstall
FAIL: TestInstall
        carchive_test.go:160: [gcc -fPIC -m64 -pthread
-fmessage-length=0
-fdebug-prefix-map=/tmp/go-build828417309=/tmp/go-build
-gno-record-gcc-switches -funwind-tables -I pkg/gccgo_linux_amd64_fPIC
-o ./testp1 main.c main_unix.c pkg/gccgo_linux_amd64_fPIC/liblibgo.a
-lgo]
        carchive_test.go:162:
pkg/gccgo_linux_amd64_fPIC/liblibgo.a(a.out.a.o): In function
`__go_init_main':
                /tmp/go-build/libgo/_obj/_cgo_gotypes.go:3: undefined
reference to `runtime.registerGCRoots'
                pkg/gccgo_linux_amd64_fPIC/liblibgo.a(a.out.a.o): In
function `__go_init_main':

/home/uros/gcc-build/gotools/carchive-test-dir/misc/cgo/testcarchive/src/libgo/libgo.go:18:
undefined reference to `runtime.writeBarrier'

/home/uros/gcc-build/gotools/carchive-test-dir/misc/cgo/testcarchive/src/libgo/libgo.go:18:
undefined reference to `runtime.writebarrierptr'
                pkg/gccgo_linux_amd64_fPIC/liblibgo.a(a.out.a.o): In
function `gostart':

/home/uros/gcc-build/x86_64-pc-linux-gnu/libgo/../../../git/gcc/libgo/runtime/go-libmain.c:111:
undefined reference to `runtime.schedinit'

/home/uros/gcc-build/x86_64-pc-linux-gnu/libgo/../../../git/gcc/libgo/runtime/go-libmain.c:112:
undefined reference to `runtime.main'
                collect2: error: ld returned 1 exit status
        carchive_test.go:163: exit status 1

The compiler in carchive_test.go:160 is called with the following command:

gcc -fPIC -m64 -pthread -fmessage-length=0
-fdebug-prefix-map=/tmp/go-build828417309=/tmp/go-build
-gno-record-gcc-switches -funwind-tables -I pkg/gccgo_linux_amd64_fPIC
-o ./testp1 main.c main_unix.c pkg/gccgo_linux_amd64_fPIC/liblibgo.a
-lgo

Please note that with -lgo, the default system-wide libgo shared
library is linked in. However, the test expects newly compiled library
from the libgo build directory. Manually adding correct -L path to the
above command builds functional executable.

 (The system-wide library in the above example is installed from the
current gcc-7 branch).
>From gcc-bugs-return-573229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:37:21 2017
Return-Path: <gcc-bugs-return-573229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10527 invoked by alias); 24 Aug 2017 15:37: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 1177 invoked by uid 48); 24 Aug 2017 15:37:16 -0000
From: "adpc at riseup dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/81955] corrupted double-linked list (not small)
Date: Thu, 24 Aug 2017 16:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adpc at riseup dot net
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-81955-4-N66d95Aqia@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02788.txt.bz2
Content-length: 221

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81955

--- Comment #4 from Ad PC <adpc at riseup dot net> ---
"The file you are trying to attach is 13217 kilobytes (KB) in size. Attachments
cannot be more than 1000 KB."
>From gcc-bugs-return-573231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:39:16 2017
Return-Path: <gcc-bugs-return-573231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26467 invoked by alias); 24 Aug 2017 15: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 17507 invoked by uid 55); 24 Aug 2017 15:39:11 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81913] [8 Regression] wrong code at -O1
Date: Thu, 24 Aug 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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81913-4-SiUWo8lCj8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81913-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02790.txt.bz2
Content-length: 864

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81913

--- Comment #6 from amker at gcc dot gnu.org ---
Author: amker
Date: Thu Aug 24 15:38:39 2017
New Revision: 251337

URL: https://gcc.gnu.org/viewcvs?rev=251337&root=gcc&view=rev
Log:
        PR tree-optimization/81913
        * tree-ssa-loop-niter.c (number_of_iterations_cond): Skip niter
        analysis when either IVs in condition can wrap.

        gcc/testsuite
        * gcc.c-torture/execute/pr81913.c: New test.
        * gcc.dg/tree-ssa/loop-niter-1.c: New test.
        * gcc.dg/tree-ssa/loop-niter-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr81913.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/loop-niter-1.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/loop-niter-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-loop-niter.c
>From gcc-bugs-return-573232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:49:12 2017
Return-Path: <gcc-bugs-return-573232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92228 invoked by alias); 24 Aug 2017 15:49: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 83984 invoked by uid 48); 24 Aug 2017 15:49:06 -0000
From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryxi at stu dot xidian.edu.cn
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81932-4-3ajr5UoRxL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02791.txt.bz2
Content-length: 543

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #9 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
(In reply to Xi Ruoyao from comment #8)

> I'll try more -gxxx options to see if we need a new flag.

This works for:

-g
-g2
-g3
-ggdb
-ggdb2
-ggdb3
-gdwarf
-gdwarf-{2,3,4}
-gdwarf -gstrict-dwarf
-g -gz

Not works for:

-g1, -ggdb1 (GCC 7.2 also doens't work, say "no symbol tv")
-gstabs{,+} (Don't support templates at all)

Not tested:

-gvmx -gcoff -gxcoff (Don't support Linux target)
-gdwarf-5 (My GDB can't read it)
>From gcc-bugs-return-573233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:53:31 2017
Return-Path: <gcc-bugs-return-573233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45087 invoked by alias); 24 Aug 2017 15:53:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 45052 invoked by uid 48); 24 Aug 2017 15:53:26 -0000
From: "adpc at riseup dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/81955] corrupted double-linked list (not small)
Date: Thu, 24 Aug 2017 17:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adpc at riseup dot net
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81955-4-6LDhYq8HR9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02792.txt.bz2
Content-length: 245

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81955

--- Comment #5 from Ad PC <adpc at riseup dot net> ---
Created attachment 42039
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42039&action=edit
used split -n 2 and bzip2 -- part 1
>From gcc-bugs-return-573234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:54:52 2017
Return-Path: <gcc-bugs-return-573234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46645 invoked by alias); 24 Aug 2017 15:54:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 46606 invoked by uid 48); 24 Aug 2017 15:54:46 -0000
From: "adpc at riseup dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/81955] corrupted double-linked list (not small)
Date: Thu, 24 Aug 2017 17:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adpc at riseup dot net
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81955-4-nm9YXk6zbt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81955-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02793.txt.bz2
Content-length: 268

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81955

--- Comment #6 from Ad PC <adpc at riseup dot net> ---
Created attachment 42040
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42040&action=edit
preprocessed source -- used split -n 2 and bzip2 -- part 2
>From gcc-bugs-return-573235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:54:56 2017
Return-Path: <gcc-bugs-return-573235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46995 invoked by alias); 24 Aug 2017 15:54: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 46633 invoked by uid 48); 24 Aug 2017 15:54:50 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81932-4-oaZMMv4Gc7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02794.txt.bz2
Content-length: 635

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #10 from Martin Sebor <msebor at gcc dot gnu.org> ---
Unless the exact format for non-type template arguments is specified in DWARF
(I don't think it is) it seems that a more robust solution is to enhance GDB to
be able to understand types with and without the suffix (and other equivalent
forms).

In the type system there is no difference between A<2>, A<2U>, or A<(unsigned
int)2> and all three are emitted as the DW_AT_name by compilers for A<unsigned>
instantiated with the value 2.

But Jason is the DWARF expert so he should weigh in on this question.
>From gcc-bugs-return-573236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 15:55:47 2017
Return-Path: <gcc-bugs-return-573236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48294 invoked by alias); 24 Aug 2017 15:55: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 48247 invoked by uid 48); 24 Aug 2017 15:55:41 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81960] gcc doesn't compile on MAC OS X
Date: Thu, 24 Aug 2017 17:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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-81960-4-4b0TWYv8df@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02795.txt.bz2
Content-length: 232

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81960

--- Comment #5 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Uroš Bizjak from comment #4)
> Fixed.

Is this fix committed to the gcc svn already?
>From gcc-bugs-return-573237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:01:57 2017
Return-Path: <gcc-bugs-return-573237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68835 invoked by alias); 24 Aug 2017 16:01: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 68759 invoked by uid 48); 24 Aug 2017 16:01:50 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81960] gcc doesn't compile on MAC OS X
Date: Thu, 24 Aug 2017 17:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia 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-81960-4-QkZH6KBiqm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81960-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02796.txt.bz2
Content-length: 272

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81960

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jürgen Reuter from comment #5)
> Is this fix committed to the gcc svn already?

https://gcc.gnu.org/ml/gcc-cvs/2017-08/msg00582.html
>From gcc-bugs-return-573238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:13:18 2017
Return-Path: <gcc-bugs-return-573238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61810 invoked by alias); 24 Aug 2017 16: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 56949 invoked by uid 48); 24 Aug 2017 16:13:07 -0000
From: "rwdougla at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81971] New: internal compiler error: in check_noexcept_r, at cp/except.c:1028
Date: Thu, 24 Aug 2017 18:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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-81971-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02797.txt.bz2
Content-length: 717

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81971

            Bug ID: 81971
           Summary: internal compiler error: in check_noexcept_r, at
                    cp/except.c:1028
           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: ---

int foo(int) { return 0; }

template<typename T>
struct Foo
{
    bool val = requires {
        {foo(T{})} -> int;
    };
};

int main()
{
    Foo<int> f;
    return 0;
}


using gcc 7.2 with --std=c++1z --concepts -Wall
https://godbolt.org/g/kC6QpW
>From gcc-bugs-return-573239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:14:50 2017
Return-Path: <gcc-bugs-return-573239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14351 invoked by alias); 24 Aug 2017 16: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 7232 invoked by uid 48); 24 Aug 2017 16:14:46 -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, 24 Aug 2017 18:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 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
Message-ID: <bug-81970-4-FPsFGZcSq1@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-08/txt/msg02798.txt.bz2
Content-length: 611

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81970

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-pc-linux-gnu,
                   |                            |powerpc64le-unknown-linux-g
                   |                            |nu

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Looks like powerpc64le is affected, too:

https://gcc.gnu.org/ml/gcc-testresults/2017-08/msg01996.html
>From gcc-bugs-return-573240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:25:37 2017
Return-Path: <gcc-bugs-return-573240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115419 invoked by alias); 24 Aug 2017 16: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 74320 invoked by uid 48); 24 Aug 2017 16:25:01 -0000
From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 2017 19: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryxi at stu dot xidian.edu.cn
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81932-4-vxiFuBaFUw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02799.txt.bz2
Content-length: 1763

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #11 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
(In reply to Martin Sebor from comment #10)
> Unless the exact format for non-type template arguments is specified in
> DWARF (I don't think it is) it seems that a more robust solution is to
> enhance GDB to be able to understand types with and without the suffix (and
> other equivalent forms).
> 
> In the type system there is no difference between A<2>, A<2U>, or
> A<(unsigned int)2> and all three are emitted as the DW_AT_name by compilers
> for A<unsigned> instantiated with the value 2.
> 
> But Jason is the DWARF expert so he should weigh in on this question.

DWARF 5 2.15(Identifier Names):

> Because the names of program objects described by DWARF are the names as
> they appear in the source program, implementations of language translators
> that use some form of mangled name (as do many implementations of C++)
> should use the unmangled form of the name in the DW_AT_name attribute...

And DWARF wiki <http://wiki.dwarfstd.org/index.php?title=Best_Practices>:

> For template instantiations, the DW_AT_name attribute should contain both
> the source language name of the object and the template parameters that
> distinguish one instantiation from another. The resulting string should
> be in the natural form for the language, and should have a canonical
> representation (i.e., different producers should generate the same
> representation). For C++, the string should match that produced by the
> *target platform's canonical demangler*; spaces should only be inserted
> where syntactically required by the compiler.

Here our canonical demangler should be c++filt.  And c++filt produce names
with type suffix.
>From gcc-bugs-return-573241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:26:48 2017
Return-Path: <gcc-bugs-return-573241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14207 invoked by alias); 24 Aug 2017 16:26:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10388 invoked by uid 48); 24 Aug 2017 16:26:41 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk2Nl0gcnVudGltZS5pbmM6MzYyOjEwOiBlcnJvcjogZHVw?= =?UTF-8?B?bGljYXRlIG1lbWJlciDigJhf4oCZ?Date: Thu, 24 Aug 2017 19:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mfe at live dot de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81966-4-1I4P9E9Y1e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81966-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81966-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02800.txt.bz2
Content-length: 276

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81966

--- Comment #2 from martin <mfe at live dot de> ---
I copied the folder of svn://gcc.gnu.org/svn/gcc/trunk/libgo/ to the
gcc-7.2.0/libgo folder. When I'm using the trunk it should contain the patch?
Shouldn't that work?
>From gcc-bugs-return-573242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:31:12 2017
Return-Path: <gcc-bugs-return-573242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72303 invoked by alias); 24 Aug 2017 16:31:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 58980 invoked by uid 48); 24 Aug 2017 16:30:52 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66159] bogus warning for alias-declaration using elaborated-type-specifier
Date: Thu, 24 Aug 2017 19:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.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-66159-4-ZrRfTsX1SI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02801.txt.bz2
Content-length: 566

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66159

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
                 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-573243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:33:25 2017
Return-Path: <gcc-bugs-return-573243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59660 invoked by alias); 24 Aug 2017 16:33: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 52232 invoked by uid 48); 24 Aug 2017 16:33:19 -0000
From: "psmith at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 2017 19:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: psmith 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-81932-4-IigTpoXCzl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02802.txt.bz2
Content-length: 168

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #12 from Paul Smith <psmith at gnu dot org> ---
Xi Ruoyao (comment #9):
> This works for:

Excellent.
>From gcc-bugs-return-573244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:37:25 2017
Return-Path: <gcc-bugs-return-573244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15928 invoked by alias); 24 Aug 2017 16: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 13767 invoked by uid 48); 24 Aug 2017 16:37:21 -0000
From: "bugzilla@poradnik-webmastera.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81972] New: Improve data tracking for simple conditional code
Date: Thu, 24 Aug 2017 19:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bugzilla@poradnik-webmastera.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81972-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02803.txt.bz2
Content-length: 1363

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81972

            Bug ID: 81972
           Summary: Improve data tracking for simple conditional code
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugzilla@poradnik-webmastera.com
  Target Milestone: ---

[code]
__attribute__((nonnull(1)))
void f1(int*);

void f2(int* n)
{
    int* ptr = nullptr;
    if (*n > 2)
        ptr = n;
    f1(ptr);
}

void f3(int* n)
{
    if (*n > 2)
        f1(n);
    else
        f1(nullptr);
}
[/code]

Functions f2 and f3 are equivalent. Above code compiled by gcc 7.2 (with -O3
-Wall -Wextra) generates following assembler code:

[code]
f2(int*):
  cmp DWORD PTR [rdi], 2
  mov eax, 0
  cmovle rdi, rax
  jmp f1(int*)
f3(int*):
  cmp DWORD PTR [rdi], 2
  jg .L7
  xor edi, edi
.L7:
  jmp f1(int*)
[/code]

There are two issues here:
- both functions contains bug, they try to pass NULL pointer to f1. However gcc
reports this for f3 only. gcc is able to track data for optimization purposes,
so it should be possible to generate warning for f2.
- f3 is compiled to code with branch, so most probably it will be slower a bit.
It could be optimized to get the same code as f2 (branchless).
>From gcc-bugs-return-573245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:39:01 2017
Return-Path: <gcc-bugs-return-573245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121354 invoked by alias); 24 Aug 2017 16:39: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 114855 invoked by uid 48); 24 Aug 2017 16:38:55 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81236] Crash when calling a template member function from generic lambda
Date: Thu, 24 Aug 2017 19: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: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81236-4-iGAK2QId8o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81236-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81236-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02804.txt.bz2
Content-length: 1008

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81236

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
                 CC|                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Guillaume Racicot from comment #0)
> This code is valid and compiles under clang (3.8.0)

It isn't valid; with make_crash<i> you're trying to use a function parameter as
a non-type template argument.  A simplified version would be

template <int I> void f();

template <class T> constexpr void g(T t)
{
  f<t>();
}

int main()
{
  g(42);
}

which gcc and clang both properly reject.
>From gcc-bugs-return-573246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:43:10 2017
Return-Path: <gcc-bugs-return-573246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99529 invoked by alias); 24 Aug 2017 16:43:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 97385 invoked by uid 48); 24 Aug 2017 16:43:06 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk2Nl0gcnVudGltZS5pbmM6MzYyOjEwOiBlcnJvcjogZHVw?= =?UTF-8?B?bGljYXRlIG1lbWJlciDigJhf4oCZ?Date: Thu, 24 Aug 2017 19:47: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81966-4-9UtMCOVB4B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81966-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81966-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02805.txt.bz2
Content-length: 381

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81966

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
The patch is to a file in gcc/go/gofrontend, not to a file in libgo.  You
probably can not simply copy the gcc/go directory from trunk to GCC 7, as it
will expect other changes.  But you can apply the patch itself, which is small,
to gcc/go/gofrontend/types.cc.
>From gcc-bugs-return-573247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:43:50 2017
Return-Path: <gcc-bugs-return-573247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120903 invoked by alias); 24 Aug 2017 16:43: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 116318 invoked by uid 48); 24 Aug 2017 16:43:40 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81236] Crash when calling a template member function from generic lambda
Date: Thu, 24 Aug 2017 19:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-81236-4-cL3ZcEicGX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81236-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81236-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02806.txt.bz2
Content-length: 936

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81236

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |ice-on-valid-code

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #3)
> (In reply to Guillaume Racicot from comment #0)
> > This code is valid and compiles under clang (3.8.0)
> 
> It isn't valid; with make_crash<i> you're trying to use a function parameter
> as a non-type template argument.

Oops, I wasn't noticing the integral_constant type; the testcase isn't actually
trying to use i as an rvalue.  So it's more like

template <int I> void f();
struct A { constexpr operator int() { return 24; } };
template <class T> constexpr void g(T t)
{
  f<t>();
}

int main()
{
  g(A());
}
>From gcc-bugs-return-573248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 16:44:00 2017
Return-Path: <gcc-bugs-return-573248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124853 invoked by alias); 24 Aug 2017 16:44:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122845 invoked by uid 48); 24 Aug 2017 16:43:56 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBnby84MTk2Nl0gcnVudGltZS5pbmM6MzYyOjEwOiBlcnJvcjogZHVw?= =?UTF-8?B?bGljYXRlIG1lbWJlciDigJhf4oCZ?Date: Thu, 24 Aug 2017 19:58: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81966-4-45Gieq6yTC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81966-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81966-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02807.txt.bz2
Content-length: 284

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81966

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> ---
I should add that parts of libgo are tied to parts of gcc/go, and I don't
actually know whether using the trunk libgo and the GCC 7 gcc/go will work at
all.  Sorry.
>From gcc-bugs-return-573249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 17:16:42 2017
Return-Path: <gcc-bugs-return-573249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32035 invoked by alias); 24 Aug 2017 17: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 29393 invoked by uid 48); 24 Aug 2017 17:16:36 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70328] default generated destructors cause 'inlining failed' warnings.
Date: Thu, 24 Aug 2017 20:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.4
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-70328-4-IqIko9jYtN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70328-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70328-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02808.txt.bz2
Content-length: 613

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70328

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-24
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Could you please provide a testcase so we can verify?
>From gcc-bugs-return-573250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 17:20:33 2017
Return-Path: <gcc-bugs-return-573250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119727 invoked by alias); 24 Aug 2017 17:20: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 117483 invoked by uid 48); 24 Aug 2017 17:20:29 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81909] [nvptx] Missing warning in gcc.dg/pr53037-{2,3}.c
Date: Thu, 24 Aug 2017 20:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.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: cf_gcctarget bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81909-4-k3FgL3sD6o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81909-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81909-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02809.txt.bz2
Content-length: 666

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81909

Thomas Preud'homme <thopre01 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|nvptx                       |nvptx, arm-none-eabi
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
                 CC|                            |thopre01 at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
Same issue on arm-none-eabi targets
>From gcc-bugs-return-573251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 17:23:55 2017
Return-Path: <gcc-bugs-return-573251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40106 invoked by alias); 24 Aug 2017 17:23: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 33201 invoked by uid 48); 24 Aug 2017 17:23:50 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81932-4-tqdNLK9p2J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02810.txt.bz2
Content-length: 749

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #13 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Xi Ruoyao from comment #11)

The target demangler is (or can be) different on each target and, as I said,
different producers use different strings (for example, neither Clang nor IBM
XLC++ includes the suffix, and Oracle CC on Linux uses the cast notation).

The most natural representation of an integer in C++ (and in C) is a decimal
literal with no suffix (unless its value doesn't fit in the signed integer with
the greatest precision).

So my opinion that you asked for is that insisting on anything else is an
inferior choice.  If you don't share it please do no feel compelled to convince
me of yours.
>From gcc-bugs-return-573252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 17:36:25 2017
Return-Path: <gcc-bugs-return-573252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86368 invoked by alias); 24 Aug 2017 17:36:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77543 invoked by uid 48); 24 Aug 2017 17:36:19 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81504] [7/8 Regression] gcc-7 regression: vec_st  in loop misoptimized
Date: Thu, 24 Aug 2017 20:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: P2
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81504-4-DeVhsNy8jj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02811.txt.bz2
Content-length: 837

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81504

--- Comment #5 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
OK, so the problem is in the swaps pass.  It's just that the add of 16 is
correctly placed in every prior optimization pass following ivopts, which has
shifted it around in the usual fashion.  Prior to swap optimization, the store
is performed to the address prior to the add of 16, but following swap
optimization, it is performed to the address following the add of 16.

This is a post-pass performed after the usual swap optimization to identify
patterns that should be turned into an lvx or stvx.  However, there appears to
be a bug wherein the source operand chosen is not checked for continued
availability at the point of the store.  The register chosen has been
overwritten, leading to incorrect code.
>From gcc-bugs-return-573253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 17:39:52 2017
Return-Path: <gcc-bugs-return-573253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60706 invoked by alias); 24 Aug 2017 17:39: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 58127 invoked by uid 48); 24 Aug 2017 17:39:47 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81504] [7/8 Regression] gcc-7 regression: vec_st  in loop misoptimized
Date: Thu, 24 Aug 2017 20:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: P2
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81504-4-SMTGMtFupJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02812.txt.bz2
Content-length: 243

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81504

--- Comment #6 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Correction, the reconstruction happens *prior* to swap optimization so the
latter can't make the patterns unrecognizable.
>From gcc-bugs-return-573254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 17:52:38 2017
Return-Path: <gcc-bugs-return-573254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15156 invoked by alias); 24 Aug 2017 17:52:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9406 invoked by uid 48); 24 Aug 2017 17:52:31 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69864] Fix various Wnarrowing minor issues
Date: Thu, 24 Aug 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: 5.3.0
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: minor
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: keywords bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-69864-4-yohDxdyyit@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69864-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69864-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02813.txt.bz2
Content-length: 2375

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69864

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|documentation               |
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |minor

--- Comment #13 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #8)
> (In reply to Jonathan Wakely from comment #6)
> > Because int b{2.3} absolutely definitely loses precision, and since it's a
> > constant you can just fix the code.
> > 
> > For {u} the compiler doesn't know whether it really narrows or not, since it
> > depends on un time values, so it gives you the benefit of the doubt.
> 
> I updated the FAQ, but I actually agree with mgsergio that this behavior is
> inconsistent and not at all how other -Wflags behave. The fact that we have
> to do ugly kludges in the code to support this makes it only more obvious.
> 
> I'm actually going to reopen this to propose some improvements that perhaps
> someone would decide to tackle as easy hacks:
> 
> * Document that -Wnarrowing also emits errors in doc/invoke.texi
> 
> * Make the message for the error and the warning different, for example:
> 
> narrowing conversion of constant expression from 'double' to 'int' inside { }
> 
> * Do not pretty-print expressions! '2.2999999999999998e+0' is very ugly and
> I'm sure one can easily trick GCC to print absolute non-sense. That is,
> remove %qE and use proper locations/ranges.
> 
> * Create a new function in diagnostic.c, e.g., 
> 
> extern diagnostic_t pederror (location_t, int, const char *, ...)
>      ATTRIBUTE_GCC_DIAG(3,4);
> 
> and replace the kludge in cp/typeck2.c with it (possibly fixing PR69872
> along the way). Document when some warnings might be errors (like we have
> precise definitions for permerror/pedwarn).

Documentation part is done per comment #12, but I'm still confirming that some
of these other suggestions could still be done, too.
>From gcc-bugs-return-573255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 18:23:23 2017
Return-Path: <gcc-bugs-return-573255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26509 invoked by alias); 24 Aug 2017 18:23:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23596 invoked by uid 48); 24 Aug 2017 18:23:17 -0000
From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Thu, 24 Aug 2017 21:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryxi at stu dot xidian.edu.cn
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81932-4-z1JtdBkEMb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02814.txt.bz2
Content-length: 1636

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #14 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
(In reply to Martin Sebor from comment #13)
> (In reply to Xi Ruoyao from comment #11)
> 
> The target demangler is (or can be) different on each target and, as I said,
> different producers use different strings (for example, neither Clang nor
> IBM XLC++ includes the suffix, and Oracle CC on Linux uses the cast
> notation).
> 
> The most natural representation of an integer in C++ (and in C) is a decimal
> literal with no suffix (unless its value doesn't fit in the signed integer
> with the greatest precision).
> 
> So my opinion that you asked for is that insisting on anything else is an
> inferior choice.  If you don't share it please do no feel compelled to
> convince me of yours.

See below:

a.cc:
~~~~~
template <int x> struct a {int foo() {return -x;}};
template struct a<1>;
~~~~~

and b.cc:
~~~~~
template <unsigned x> struct a {int foo();};
int main() {return a<1>().foo();}
~~~~~

This error happens when a library's ABI changes, and someone tries to link old
object code to the new library.  With libiberty's demangle (in GNU ld), we have
error message:

/tmp/ccKFWvhT.o: In function `main':
b.cc:(.text+0x10): undefined reference to `a<1u>::foo()'
collect2: error: ld returned 1 exit status

But what would we get with "natural" expression?

b.cc:(.text+0x10): undefined reference to `a<1>::foo()'

It's hard to know what happened.  We have two different mangled name with the
same demangled name.  It's strange and could be a new example in "How not to
programming in C++".
>From gcc-bugs-return-573256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 18:55:11 2017
Return-Path: <gcc-bugs-return-573256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65056 invoked by alias); 24 Aug 2017 18:55: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 55063 invoked by uid 48); 24 Aug 2017 18:55:04 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79008] missing detail in -Wbuiltin-declaration-mismatch
Date: Thu, 24 Aug 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: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-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 everconfirmed
Message-ID: <bug-79008-4-EdHdDi1mYE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79008-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79008-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02815.txt.bz2
Content-length: 2126

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79008

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |UNCONFIRMED
     Ever confirmed|1                           |0

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I think what I had in mind was incompatible attribute specifications rather
than missing ones but my description sounds a little confused. 
-Wbuiltin-declaration-mismatch also doesn't diagnose incompatible attributes
(maybe it should).

One example of an incompatibility is the following declaration:

  int __attribute__ ((pure)) abs (int);

where abs() the built-in is actually declared const.  GCC doesn't currently
diagnose this except with my patch for bug 81544 (yet to be reviewed).

Another, slightly different, example is declaring a standard library function
with the wrong attributes, like this one:

void* __attribute__ ((malloc, alloc_size (1))) realloc (void*, size_t);

This is wrong on two counts: first, realloc cannot be declared with attribute
malloc because it need not return a unique pointer.  Second, alloc_size
specifies the wrong argument (this is bug 78667).

Since many built-in functions are decorated with multiple attributes it seems
that rather than pointing out these kinds of issues one attribute at a time
(either when there are more than one or as the user adjusts their declaration)
it would be simpler and more user-friendly to include in the diagnostic all the
attributes the built-in is decorated with.  Hence the suggestion to introduce a
a new flag (and perhaps also a conversion specifier) to the pretty printer to
have it (optionally) print the whole attribute list, or parts of it.

E.g.,

  warning ("%#qD conflicts with built-in declaration %#qD", user_decl,
builtin_in_decl);

might print

  warning: ‘int abs(int) __attribute__ ((pure))’ conflicts with built-in
declaration ‘int abs(int) __attribute__ ((const))’
>From gcc-bugs-return-573257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 19:02:02 2017
Return-Path: <gcc-bugs-return-573257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29054 invoked by alias); 24 Aug 2017 19:02: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 23316 invoked by uid 48); 24 Aug 2017 19:01:57 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70644] Warn about implicit conversion of 'this' to pointer to virtual base class during construction
Date: Thu, 24 Aug 2017 22:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.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-70644-4-i1xQ8napE3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70644-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70644-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02816.txt.bz2
Content-length: 566

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70644

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
                 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-573258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 19:27:33 2017
Return-Path: <gcc-bugs-return-573258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67835 invoked by alias); 24 Aug 2017 19:27:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65679 invoked by uid 48); 24 Aug 2017 19:27:29 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71517] g++ gives different warnings if compiling a file directly or adding preprocess step
Date: Thu, 24 Aug 2017 22: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.3.1
X-Bugzilla-Keywords:
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: bug_status cc resolution
Message-ID: <bug-71517-4-bNr07zASDt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71517-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71517-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02817.txt.bz2
Content-length: 587

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71517

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
Dup of bug 57201

*** This bug has been marked as a duplicate of bug 57201 ***
>From gcc-bugs-return-573259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 19:27:35 2017
Return-Path: <gcc-bugs-return-573259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68393 invoked by alias); 24 Aug 2017 19:27:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66488 invoked by uid 48); 24 Aug 2017 19:27:31 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/57201] Using --save-temps affects whether warning is printed
Date: Thu, 24 Aug 2017 22:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.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: cc
Message-ID: <bug-57201-4-ynHlFvQ0lK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57201-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57201-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02818.txt.bz2
Content-length: 460

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57201

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |albert.astals at canonical dot com

--- Comment #14 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 71517 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-573260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 19:38:31 2017
Return-Path: <gcc-bugs-return-573260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108812 invoked by alias); 24 Aug 2017 19:38:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 104976 invoked by uid 48); 24 Aug 2017 19:38:27 -0000
From: "virkony at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67906] Missing warning about std::move without effect
Date: Thu, 24 Aug 2017 22: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: 5.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: virkony 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-67906-4-4zQp1itkpZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02819.txt.bz2
Content-length: 654

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67906

--- Comment #2 from Nikolay Orliuk <virkony at gmail dot com> ---
Sure,

    struct Value {
        Value();
        Value(const Value&);
        Value(Value&&);
    };

    struct Frame {
        Value value; // previously mutable
    };

    Frame top;
    const Frame& x = top;
    Value y = std::move(x.value);


https://godbolt.org/g/v24FfQ

Thank you for looking into it. Yes, there should be better names than
-Wno-effect. Maybe -Wignored-move and -Wmove-const are slightly better.

Such warning will help to identify places which become ineffecient after
changing constness of something.
>From gcc-bugs-return-573261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 19:41:42 2017
Return-Path: <gcc-bugs-return-573261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23704 invoked by alias); 24 Aug 2017 19:41: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 18074 invoked by uid 48); 24 Aug 2017 19:41:38 -0000
From: "virkony at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67906] Missing warning about std::move without effect
Date: Thu, 24 Aug 2017 23:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: virkony 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-67906-4-2oY003H83x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02820.txt.bz2
Content-length: 623

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67906

--- Comment #3 from Nikolay Orliuk <virkony at gmail dot com> ---
Sure,

    struct Value {
        Value();
        Value(const Value&);
        Value(Value&&);
    };

    struct Frame {
        Value value; // previously mutable
    };

    Frame top;
    const Frame& x = top;
    Value y = std::move(x.value);

Thank you for looking into it. Yes, there should be better names than
-Wno-effect. Maybe -Wignored-move and -Wmove-const are slightly better.

Such warning will help to identify places which become ineffecient after
changing constness of something.
>From gcc-bugs-return-573262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 19:47:16 2017
Return-Path: <gcc-bugs-return-573262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56394 invoked by alias); 24 Aug 2017 19:47: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 55038 invoked by uid 55); 24 Aug 2017 19:47:06 -0000
From: "virkony at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67906] Missing warning about std::move without effect
Date: Thu, 24 Aug 2017 23:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: virkony 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-67906-4-iKJN7CP66h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02821.txt.bz2
Content-length: 2518

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67906

--- Comment #4 from Nikolay Orliuk <virkony at gmail dot com> ---
Hello

Sure,

    struct Value {
        Value();
        Value(const Value&);
        Value(Value&&);
    };

    struct Frame {
        Value value; // previously mutable
    };

    Frame top;
    const Frame& x = top;
    Value y = std::move(x.value);


https://godbolt.org/g/v24FfQ

Thank you for looking into it. Yes, there should be better names than
-Wno-effect. Maybe -Wignored-move and -Wmove-const are slightly better.

Such warning will help to identify places which become ineffecient after
changing constness of something.

P.S. By some reason I were not able to leave comment in Bugzilla and got
message "User account creation filtered due to spam." though I were logged
in.

Thank you,
Mykola

On Thu, Aug 24, 2017 at 7:40 AM egallager at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67906
>
> Eric Gallager <egallager at gcc dot gnu.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>            Keywords|                            |diagnostic
>              Status|UNCONFIRMED                 |WAITING
>    Last reconfirmed|                            |2017-08-24
>                  CC|                            |egallager at gcc dot
> gnu.org
>      Ever confirmed|0                           |1
>
> --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
> Could you please provide a complete self-contained example? The snippet you
> posted looks like it's missing some declarations:
>
> $ /usr/local/bin/g++ -c 67906.cc
> 67906.cc:1:7: error: ‘Frame’ does not name a type
>  const Frame& x = stack.top();
>        ^~~~~
> 67906.cc:2:1: error: ‘Value’ does not name a type
>  Value y = std::move(x.value); // x.value - non-mutable
>  ^~~~~
> $
>
> Anyways, bug 81159 is related, but that's about a different misuse of
> std::move, so I'll keep the 2 separate.
>
> Oh, and also "-Wno-effect" would probably be a bad name for the option,
> since
> "-Wno-" is reserved for negative versions of warnings. i.e., is
> "-Wno-effect"
> the negative of "-Weffect"? That seems wrong. Or is it already in the
> positive,
> in which case the negative is "-Wno-no-effect"? That would seem redundant.
>
> --
> You are receiving this mail because:
> You reported the bug.
>From gcc-bugs-return-573263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 19:47:16 2017
Return-Path: <gcc-bugs-return-573263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56785 invoked by alias); 24 Aug 2017 19:47:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55069 invoked by uid 48); 24 Aug 2017 19:47:10 -0000
From: "blaffablaffa at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81973] New: Aliased virtual methods are treated as undefined, so the vtable is not generated
Date: Thu, 24 Aug 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: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: blaffablaffa 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-81973-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02822.txt.bz2
Content-length: 1674

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81973

            Bug ID: 81973
           Summary: Aliased virtual methods are treated as undefined, so
                    the vtable is not generated
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: blaffablaffa at gmail dot com
  Target Milestone: ---

test case:


        #include <iostream>
        using namespace std;

        struct b{
                int a;
                virtual void f(){
                        cout<<__PRETTY_FUNCTION__<<' '<<a<<endl;
                }
        };

        struct s : b{
        #ifdef VIRT_ALIAS
                virtual void f() __attribute__ ((alias ("s_f_alias")));
        #endif
                void g() __attribute__ ((alias ("s_g_alias")));
        };

        extern "C"{
        void s_f_alias(s* this_){
                cout<<__PRETTY_FUNCTION__<<' '<<this_->a<<endl;
        }
        void s_g_alias(s* this_){
                cout<<__PRETTY_FUNCTION__<<' '<<this_->a<<endl;
        }
        }

        int main(){
                s a;
                a.a = 123;
                a.f();
                a.g();
        }



Compiling without -DVIRT_ALIAS works, output is:
virtual void b::f() 123
void s_g_alias(s*) 123

Compiling with -DVIRT_ALIAS gives an error at link time because s::f is treated
as not defined, even though it would be possible to use s_f_alias as the
definition and put its pointer in the vtable. Expected output is:
void s_f_alias(s*) 123
void s_g_alias(s*) 123
>From gcc-bugs-return-573264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 19:49:07 2017
Return-Path: <gcc-bugs-return-573264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3781 invoked by alias); 24 Aug 2017 19:49: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 127201 invoked by uid 48); 24 Aug 2017 19:49:01 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67906] Missing warning about std::move without effect
Date: Thu, 24 Aug 2017 23: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: 5.2.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
Message-ID: <bug-67906-4-9i6rE2xcUM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02823.txt.bz2
Content-length: 519

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67906

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
Thanks. Testcase still needs:

#include <utility>

at the top, but once I've added that, confirmed that there's no warning about
the usage of std::move.
>From gcc-bugs-return-573265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 19:58:05 2017
Return-Path: <gcc-bugs-return-573265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37384 invoked by alias); 24 Aug 2017 19:58: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 37254 invoked by uid 55); 24 Aug 2017 19:57:59 -0000
From: "egall at gwmail dot gwu.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67906] Missing warning about std::move without effect
Date: Fri, 25 Aug 2017 00:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egall at gwmail dot gwu.edu
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67906-4-V8sNLPi6tE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67906-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02824.txt.bz2
Content-length: 2908

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67906

--- Comment #6 from Eric Gallager <egall at gwmail dot gwu.edu> ---
On 8/24/17, Mykola Orliuk <virkony@gmail.com> wrote:
> Hello
>
> Sure,
>
>     struct Value {
>         Value();
>         Value(const Value&);
>         Value(Value&&);
>     };
>
>     struct Frame {
>         Value value; // previously mutable
>     };
>
>     Frame top;
>     const Frame& x = top;
>     Value y = std::move(x.value);
>
>
> https://godbolt.org/g/v24FfQ
>
> Thank you for looking into it. Yes, there should be better names than
> -Wno-effect. Maybe -Wignored-move and -Wmove-const are slightly better.
>
> Such warning will help to identify places which become ineffecient after
> changing constness of something.
>
> P.S. By some reason I were not able to leave comment in Bugzilla and got
> message "User account creation filtered due to spam." though I were logged
> in.
>

No, your comment still went through, 3 times in fact. The "User
account creation filtered due to spam" message is pinned to the top
for display to everyone; it doesn't actually mean that anything is
wrong with your account.

> Thank you,
> Mykola
>
> On Thu, Aug 24, 2017 at 7:40 AM egallager at gcc dot gnu.org <
> gcc-bugzilla@gcc.gnu.org> wrote:
>
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67906
>>
>> Eric Gallager <egallager at gcc dot gnu.org> changed:
>>
>>            What    |Removed                     |Added
>>
>> ----------------------------------------------------------------------------
>>            Keywords|                            |diagnostic
>>              Status|UNCONFIRMED                 |WAITING
>>    Last reconfirmed|                            |2017-08-24
>>                  CC|                            |egallager at gcc dot
>> gnu.org
>>      Ever confirmed|0                           |1
>>
>> --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
>> Could you please provide a complete self-contained example? The snippet
>> you
>> posted looks like it's missing some declarations:
>>
>> $ /usr/local/bin/g++ -c 67906.cc
>> 67906.cc:1:7: error: ‘Frame’ does not name a type
>>  const Frame& x = stack.top();
>>        ^~~~~
>> 67906.cc:2:1: error: ‘Value’ does not name a type
>>  Value y = std::move(x.value); // x.value - non-mutable
>>  ^~~~~
>> $
>>
>> Anyways, bug 81159 is related, but that's about a different misuse of
>> std::move, so I'll keep the 2 separate.
>>
>> Oh, and also "-Wno-effect" would probably be a bad name for the option,
>> since
>> "-Wno-" is reserved for negative versions of warnings. i.e., is
>> "-Wno-effect"
>> the negative of "-Weffect"? That seems wrong. Or is it already in the
>> positive,
>> in which case the negative is "-Wno-no-effect"? That would seem
>> redundant.
>>
>> --
>> You are receiving this mail because:
>> You reported the bug.
>
>From gcc-bugs-return-573266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 20:14:10 2017
Return-Path: <gcc-bugs-return-573266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105822 invoked by alias); 24 Aug 2017 20:14: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 105758 invoked by uid 48); 24 Aug 2017 20:14:04 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71797] Spurious unused-variable warning with inline function and unrelated error
Date: Fri, 25 Aug 2017 00:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cc resolution
Message-ID: <bug-71797-4-xfd0wnqRVQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02825.txt.bz2
Content-length: 965

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71797

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org
         Resolution|---                         |WORKSFORME

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
I can't reproduce this bug; only the error is printed, with no warning for me:

$ /usr/local/bin/g++ -c -Wall -Wunused-const-variable=2 -Wextra -pedantic
71797.cc
71797.cc: In constructor ‘Foo::Foo()’:
71797.cc:8:13: error: ‘create_a_compile_error’ was not declared in this scope
     Foo() { create_a_compile_error; };
             ^~~~~~~~~~~~~~~~~~~~~~
$
>From gcc-bugs-return-573268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 20:20:20 2017
Return-Path: <gcc-bugs-return-573268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66194 invoked by alias); 24 Aug 2017 20:20: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 60957 invoked by uid 48); 24 Aug 2017 20:20:15 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81504] [7/8 Regression] gcc-7 regression: vec_st  in loop misoptimized
Date: Fri, 25 Aug 2017 00:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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: P2
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81504-4-zb0RPyOW2q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02827.txt.bz2
Content-length: 238

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81504

--- Comment #7 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Created attachment 42041
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42041&action=edit
Patch under test
>From gcc-bugs-return-573267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 20:14:48 2017
Return-Path: <gcc-bugs-return-573267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106792 invoked by alias); 24 Aug 2017 20:14: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 106701 invoked by uid 48); 24 Aug 2017 20:14:44 -0000
From: "blaffablaffa at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81973] Aliased virtual methods are treated as undefined, so the vtable is not generated
Date: Fri, 25 Aug 2017 00:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: blaffablaffa 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-81973-4-TcBmOCChsv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81973-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81973-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02826.txt.bz2
Content-length: 382

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81973

--- Comment #1 from Lorenzo Pistone <blaffablaffa at gmail dot com> ---
It is possible to obtain the desired behavior defining in a compilation unit a
dummy s::f with weak attribute (and so generate the vtable), then in a separate
compilation the actual alias of s::f to s_f_alias, but this it is an
impractical workaround.
>From gcc-bugs-return-573269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 20:44:34 2017
Return-Path: <gcc-bugs-return-573269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106596 invoked by alias); 24 Aug 2017 20: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 104318 invoked by uid 48); 24 Aug 2017 20:44:29 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81236] Crash when calling a template member function from generic lambda
Date: Fri, 25 Aug 2017 01:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-81236-4-rEVjbi6e7i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81236-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81236-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02828.txt.bz2
Content-length: 378

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81236

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-573270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 20:53:10 2017
Return-Path: <gcc-bugs-return-573270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86415 invoked by alias); 24 Aug 2017 20:53: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 81072 invoked by uid 48); 24 Aug 2017 20:53:06 -0000
From: "pthaugen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81953] Code sinking increases register pressure
Date: Fri, 25 Aug 2017 01:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pthaugen at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81953-4-SGQ9470pQ8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81953-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02829.txt.bz2
Content-length: 442

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81953

--- Comment #4 from Pat Haugen <pthaugen at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)

> The interesting part is also why RTL scheduling doesn't rectify things
> here?

If you're referring to -fsched-pressure, I believe the answer is that those
algorithms are concerned about the case where pressure is more than available
hard regs, which is not the case here.
>From gcc-bugs-return-573271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 21:04:39 2017
Return-Path: <gcc-bugs-return-573271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42755 invoked by alias); 24 Aug 2017 21:04:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 41283 invoked by uid 48); 24 Aug 2017 21:04:34 -0000
From: "abominable-snowman at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81964] istream_iterator: unexpected read in ctor
Date: Fri, 25 Aug 2017 01:35: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.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abominable-snowman 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-81964-4-7iE352yvOm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81964-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81964-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02830.txt.bz2
Content-length: 189

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81964

--- Comment #2 from Petr Ovtchenkov <abominable-snowman at yandex dot ru> ---
https://gcc.gnu.org/ml/libstdc++/2017-08/msg00033.html
>From gcc-bugs-return-573272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 21:47:18 2017
Return-Path: <gcc-bugs-return-573272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42313 invoked by alias); 24 Aug 2017 21:47: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 42280 invoked by uid 48); 24 Aug 2017 21:47:13 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70792] Incorrect sequence point warning with uniform initializer syntax
Date: Fri, 25 Aug 2017 01: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.0
X-Bugzilla-Keywords: diagnostic, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-70792-4-nrM9NOsoti@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02831.txt.bz2
Content-length: 727

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70792

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-24
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that g++ prints 3 -Wsequence-point warnings on each testcase. 

(the followup one is missing an include for <iostream>, but after that, it
behaves as reported)
>From gcc-bugs-return-573273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 21:54:21 2017
Return-Path: <gcc-bugs-return-573273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19130 invoked by alias); 24 Aug 2017 21:54:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13431 invoked by uid 48); 24 Aug 2017 21:54:16 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71974] Warning: uninitialized variable with OpenMP nested loops
Date: Fri, 25 Aug 2017 02:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.4
X-Bugzilla-Keywords: diagnostic, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc blocked everconfirmed
Message-ID: <bug-71974-4-d6lbnWFbJ0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71974-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71974-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02832.txt.bz2
Content-length: 1241

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71974

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, openmp
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-24
                 CC|                            |egallager at gcc dot gnu.org
             Blocks|                            |24639
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Rafael Guglielmetti from comment #1)
> With gcc 6.1.1, the above code gives rise to the error:
> error: condition expression refers to iteration variable ‘i’
> 
> So I suppose my syntax was incorrect. It is annoying tough.

Do you have a version of your code that avoids that error? I get it, too, and
so I can't reproduce the warning with that error there... WAITING on a valid
testcase.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639
[Bug 24639] [meta-bug] bug to track all Wuninitialized issues
>From gcc-bugs-return-573274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 22:02:37 2017
Return-Path: <gcc-bugs-return-573274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40980 invoked by alias); 24 Aug 2017 22:02: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 40738 invoked by uid 48); 24 Aug 2017 22:02:31 -0000
From: "romain.services at mm dot st" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81797] gcc 7.1.0 fails to build on macOS 10.13 (High Sierra):
Date: Fri, 25 Aug 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: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: romain.services at mm dot st
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81797-4-AsAG9n5O9u@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02833.txt.bz2
Content-length: 219

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81797

--- Comment #8 from Romain <romain.services at mm dot st> ---
Hi Jack,

Thanks. My system is a Core i7 (HT enabled), so I have 8 cores, good catch!

Regards,
Romain
>From gcc-bugs-return-573275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 22:13:45 2017
Return-Path: <gcc-bugs-return-573275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71769 invoked by alias); 24 Aug 2017 22:13: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 71688 invoked by uid 48); 24 Aug 2017 22:13:38 -0000
From: "zeccav at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81974] New: ICE verify_gimple failed  type mismatch in binary expression
Date: Fri, 25 Aug 2017 04:31: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: zeccav 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 cf_gcchost cf_gccbuild
Message-ID: <bug-81974-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02834.txt.bz2
Content-length: 1915

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81974

            Bug ID: 81974
           Summary: ICE verify_gimple failed  type mismatch in binary
                    expression
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
             Build: trunk 251201

! ICE verify_gimple failed Error: type mismatch in binary expression
! must be compiled with -O option
      COMPLEX(kind=kind(0d0)), DIMENSION(10, 10) :: R
      REAL(kind=kind(0d0)), DIMENSION(10, 10)    :: M
      print *,MATMUL(TRANSPOSE(CONJG(R)), M)
      END
!/home/vitti/f95/gfbug143.f:3:0:

!       COMPLEX(kind=kind(0d0)), DIMENSION(10, 10) :: R

!Error: type mismatch in binary expression
!complex(kind=4)

!complex(kind=8)

!complex(kind=8)

!_26 = _19 * _25;
!/home/vitti/f95/gfbug143.f:3:0: Error: type mismatch in binary expression
!complex(kind=8)

!complex(kind=8)

!complex(kind=4)

!_32 = _12 + _26;
!/home/vitti/f95/gfbug143.f:3:0: internal compiler error: verify_gimple failed
!0xd8595d verify_gimple_in_seq(gimple*)
!       ../../gcc/gcc/tree-cfg.c:4978
!0xb41cad gimplify_body(tree_node*, bool)
!       ../../gcc/gcc/gimplify.c:12593
!0xb41e7c gimplify_function_tree(tree_node*)
!       ../../gcc/gcc/gimplify.c:12683
!0x9dce17 cgraph_node::analyze()
!       ../../gcc/gcc/cgraphunit.c:670
!0x9df5f3 analyze_functions
!       ../../gcc/gcc/cgraphunit.c:1131
!0x9e04b2 symbol_table::finalize_compilation_unit()
!       ../../gcc/gcc/cgraphunit.c:2609
!Please submit a full bug report,
!with preprocessed source if appropriate.
!Please include the complete backtrace with any bug report.
!See <https://gcc.gnu.org/bugs/> for instructions.
>From gcc-bugs-return-573276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 22:30:59 2017
Return-Path: <gcc-bugs-return-573276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5235 invoked by alias); 24 Aug 2017 22:30: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 5182 invoked by uid 48); 24 Aug 2017 22:30:51 -0000
From: "barry.revzin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81975] New: Unpacking two packs via alias erroneously complains about mismatched argument packs
Date: Fri, 25 Aug 2017 04:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
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-81975-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02835.txt.bz2
Content-length: 1598

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81975

            Bug ID: 81975
           Summary: Unpacking two packs via alias erroneously complains
                    about mismatched argument packs
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: barry.revzin at gmail dot com
  Target Milestone: ---

Example slightly reduced from http://lists.isocpp.org/core/2017/08/2827.php:

template <class T, class U>
struct is_same;

struct make_list
{
    template <typename... Ts> 
    using f = void;
};

template<template <typename, typename> class F, typename... Ts> 
struct zip_with
{
#ifdef ALIAS
    template <typename C, typename... Ss> 
    using continuation_t = typename C::template f<F<Ts, Ss>...>;
#else
    template <typename C, typename... Ss> 
    struct continuation {
        using type = typename C::template f<F<Ts, Ss>...>;
    };  

    template <typename C, typename... Ss> 
    using continuation_t = typename continuation<C, Ss...>::type;
#endif

    template<typename... Ss> 
    using f = continuation_t<make_list, Ss...>;
};

using T = zip_with<is_same>::f<>;
using U = zip_with<is_same, int>::f<int>;
using V = zip_with<is_same, int, int>::f<int, int>;

Compiling with -DALIAS works fine. Compiling without it leads to errors for T
and V  (but not U!) about mismatched argument pack lengths while expanding
F<Ts,Ss>. The two formulations should be equivalent.
>From gcc-bugs-return-573277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 22:56:42 2017
Return-Path: <gcc-bugs-return-573277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19191 invoked by alias); 24 Aug 2017 22:56:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19142 invoked by uid 48); 24 Aug 2017 22:56:37 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81928] if(!this) optimization leads to possible errors without warnings
Date: Fri, 25 Aug 2017 07:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81928-4-noTJzLaAUO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02836.txt.bz2
Content-length: 1445

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81928

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #23 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #22)
> Either explain more clearly what you're asking for, or accept it already
> warns about this.

The descriptive style of GCC's diagnostics is a recurrent problem for some
users who are not aware of the details of the language. We had countless of
discussions about it in the past. Clang's diagnostics tend to be more
prescriptive:

warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be
assumed to always convert to true

Some other examples:

 $ gcc
error: invalid type argument of unary ‘*’ (have ‘int’)
 $ clang
error: indirection requires pointer operand ('int' invalid)

 $ gcc
warning: wrong type argument to increment [-Wpedantic]
 $ clang
warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith]

 $ gcc
error: invalid operands to binary / (have 'float __vector__' and 'const int *')
 $ clang
error: can't convert between vector values of different size ('__m128' and 'int
const *')
>From gcc-bugs-return-573278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 23:02:47 2017
Return-Path: <gcc-bugs-return-573278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54027 invoked by alias); 24 Aug 2017 23:02:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53973 invoked by uid 48); 24 Aug 2017 23:02:41 -0000
From: "david at doublewise dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52869] [DR 1207] "this" not being allowed in noexcept clauses
Date: Fri, 25 Aug 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: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: david at doublewise dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-52869-4-kei25bwUoa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52869-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52869-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02837.txt.bz2
Content-length: 577

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52869

David Stone <david at doublewise dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at doublewise dot net

--- Comment #2 from David Stone <david at doublewise dot net> ---
Simpler test case:

struct S {
    void f() noexcept(noexcept(this)) {}
};

int main() {}



Updated standard reference stating that this should be valid:
http://eel.is/c++draft/expr.prim.this#2
>From gcc-bugs-return-573279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 23:09:15 2017
Return-Path: <gcc-bugs-return-573279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24213 invoked by alias); 24 Aug 2017 23:09:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24161 invoked by uid 48); 24 Aug 2017 23:09:09 -0000
From: "hacoo36 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66672] std::is_same wrong result for captured reference value inside a lambda
Date: Fri, 25 Aug 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: c++
X-Bugzilla-Version: 5.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hacoo36 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-66672-4-m1HxNo8TQy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66672-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66672-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02838.txt.bz2
Content-length: 1027

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66672

Henry Cooney <hacoo36 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hacoo36 at gmail dot com

--- Comment #1 from Henry Cooney <hacoo36 at gmail dot com> ---
I tested this behavior as of g++ 7.2.0; is_same<decltype((j)), ...> still seems
to indicate that j is an int& inside the lambda. 

I think this behavior is probably incorrect WRT the language spec. For example,
the following code produces a compile-time error ('assignment of read-only
variable 'j''):

====
int main() {
  int i = 100;
  int &j = i;
  cout << j;
  [=]() 
  {
    cout << is_same<decltype((j)), int      &>::value
         << is_same<decltype((j)), int const&>::value;
    cout << endl;
    j = j + 1;
  }();

  cout << j;
}
====

That suggests that the correct type of j is indeed int const&, not int&!
>From gcc-bugs-return-573280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 23:15:58 2017
Return-Path: <gcc-bugs-return-573280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30121 invoked by alias); 24 Aug 2017 23:15: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 30050 invoked by uid 48); 24 Aug 2017 23:15:53 -0000
From: "david at doublewise dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66256] noexcept evaluation done before end of class
Date: Fri, 25 Aug 2017 09:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: accepts-invalid, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: david at doublewise dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-66256-4-AOx38piGbe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66256-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66256-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02839.txt.bz2
Content-length: 1289

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66256

David Stone <david at doublewise dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at doublewise dot net

--- Comment #8 from David Stone <david at doublewise dot net> ---
I do not believe that gcc is correct to reject this code. Consider

http://eel.is/c++draft/basic.scope.class#1

"The potential scope of a name declared in a class consists not only of the
declarative region following the name's point of declaration, but also of all
function bodies, default arguments, noexcept-specifiers, and
brace-or-equal-initializers of non-static data members in that class (including
such things in nested classes)."

That seems to state that this variable is in scope and thus this code should be
allowed.

As a second test case, this should also be accepted (same code, but with e put
in an unevaluated context instead of being static):


struct test
{
        test() noexcept(noexcept(e)) {}
        const bool e = false;
};

int main() {}




And also



struct test
{
        test() noexcept(noexcept(e())) {}
        const bool e() { return false; }
};

int main() {}
>From gcc-bugs-return-573281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 24 23:20:20 2017
Return-Path: <gcc-bugs-return-573281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35502 invoked by alias); 24 Aug 2017 23:20: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 35446 invoked by uid 48); 24 Aug 2017 23:20:15 -0000
From: "david at doublewise dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66256] noexcept evaluation done before end of class
Date: Fri, 25 Aug 2017 09:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: accepts-invalid, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: david at doublewise dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66256-4-5xKqW7Bs20@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66256-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66256-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02840.txt.bz2
Content-length: 419

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66256

--- Comment #9 from David Stone <david at doublewise dot net> ---
Sorry, I misread the chain of comments, Jonathan Wakely's comment on gcc
correctly rejecting invalid code refers specifically to the decltype example.
Please ignore my previous comment, except that it captures the wording from the
standard that says that the test case for this bug should work.
>From gcc-bugs-return-573282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 00:04:57 2017
Return-Path: <gcc-bugs-return-573282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43898 invoked by alias); 25 Aug 2017 00:04: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 43814 invoked by uid 48); 25 Aug 2017 00:04:50 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70410] no uninitialized variable warning if 'offsetof' is used in expression
Date: Fri, 25 Aug 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: 4.8.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cc cf_known_to_work resolution
Message-ID: <bug-70410-4-cg2iV4PJXs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02841.txt.bz2
Content-length: 947

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70410

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org
      Known to work|                            |8.0
         Resolution|---                         |WORKSFORME

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
gcc8 warns for me:

$ /usr/local/bin/g++ -c -Wuninitialized 70410.cc
70410.cc: In function ‘int main()’:
70410.cc:12:12: warning: ‘a’ is used uninitialized in this function
[-Wuninitialized]
  int b = a + offsetof(C, y); // <= missing warning that 'a' is uninitialized
            ^
$
>From gcc-bugs-return-573283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 00:05:02 2017
Return-Path: <gcc-bugs-return-573283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44483 invoked by alias); 25 Aug 2017 00:05: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 43907 invoked by uid 48); 25 Aug 2017 00:04:56 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues
Date: Fri, 25 Aug 2017 10:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: diagnostic, meta-bug
X-Bugzilla-Severity: trivial
X-Bugzilla-Who: 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 resolution
Message-ID: <bug-24639-4-WzHee9I9RK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-24639-4@http.gcc.gnu.org/bugzilla/>
References: <bug-24639-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02842.txt.bz2
Content-length: 502

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639
Bug 24639 depends on bug 70410, which changed state.

Bug 70410 Summary: no uninitialized variable warning if 'offsetof' is used in expression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70410

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME
>From gcc-bugs-return-573284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 00:26:37 2017
Return-Path: <gcc-bugs-return-573284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89980 invoked by alias); 25 Aug 2017 00:26: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 89907 invoked by uid 55); 25 Aug 2017 00:26:30 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81908] [8 Regression] FAIL: gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
Date: Fri, 25 Aug 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81908-4-bna03gMNEw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02843.txt.bz2
Content-length: 1021

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81908

--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Fri Aug 25 00:25:57 2017
New Revision: 251347

URL: https://gcc.gnu.org/viewcvs?rev=251347&root=gcc&view=rev
Log:
PR middle-end/81908 - FAIL: gfortran.dg/alloc_comp_auto_array_2.f90 -O3 -g -m32

gcc/ChangeLog:

        PR middle-end/81908
        * gimple-fold.c (size_must_be_zero_p): New function.
        (gimple_fold_builtin_memory_op): Call it.

gcc/testsuite/ChangeLog:

        PR middle-end/81908
        * gcc.dg/tree-ssa/builtins-folding-gimple-2.c: New test.
        * gcc.dg/tree-ssa/builtins-folding-gimple-3.c: New test.
        * gcc.dg/tree-ssa/pr81908.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/builtins-folding-gimple-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/builtins-folding-gimple-3.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr81908.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-573285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 00:26:53 2017
Return-Path: <gcc-bugs-return-573285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90710 invoked by alias); 25 Aug 2017 00:26:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90654 invoked by uid 48); 25 Aug 2017 00:26:48 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81908] [8 Regression] FAIL: gfortran.dg/alloc_comp_auto_array_2.f90   -O3 -g -m32
Date: Fri, 25 Aug 2017 10:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81908-4-mX8Zcdk273@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02844.txt.bz2
Content-length: 444

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81908

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch committed in r251347.
>From gcc-bugs-return-573286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 01:11:19 2017
Return-Path: <gcc-bugs-return-573286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2550 invoked by alias); 25 Aug 2017 01:11: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 126909 invoked by uid 48); 25 Aug 2017 01:11:14 -0000
From: "oremanj at mit dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81976] New: bad is_standard_layout/has_unique_object_representations results with a chain of empty bases
Date: Fri, 25 Aug 2017 11:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: oremanj at mit dot edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81976-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02845.txt.bz2
Content-length: 3196

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81976

            Bug ID: 81976
           Summary: bad
                    is_standard_layout/has_unique_object_representations
                    results with a chain of empty bases
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: oremanj at mit dot edu
  Target Milestone: ---

The C++ program below defines structures that each contain a 1-byte char field
and inherit linearly from various numbers of empty bases (one empty base for X,
two for Y, three for Z). By my reading of the standard, all of these should be
considered to be standard-layout and to have unique object representations.
However, under gcc 7.1, only X is considered to have unique object
representations, and only X and Y are considered to be standard-layout. (It
looks like Y was incorrectly considered to not be standard-layout until PR
80605.)

$ cat t.cc
struct A {};
struct B : A {};
struct C : B {};
struct X : A { char c; };
struct Y : B { char c; };
struct Z : C { char c; };
static_assert(__has_unique_object_representations(X));
static_assert(__has_unique_object_representations(Y));
static_assert(__has_unique_object_representations(Z));
static_assert(__is_standard_layout(X));
static_assert(__is_standard_layout(Y));
static_assert(__is_standard_layout(Z));

$ g++-7 -Wall -Wextra -c t.cc -std=c++17
t.cc:8:1: error: static assertion failed
 static_assert(__has_unique_object_representations(Y));
 ^~~~~~~~~~~~~
t.cc:9:1: error: static assertion failed
 static_assert(__has_unique_object_representations(Z));
 ^~~~~~~~~~~~~
t.cc:12:1: error: static assertion failed
 static_assert(__is_standard_layout(Z));
 ^~~~~~~~~~~~~

$ g++-7 -v
Using built-in specs.
COLLECT_GCC=g++-7
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 7.1.0-7'
--with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=gcc4-compatible --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--with-target-system-zlib --enable-objc-gc=auto --enable-multiarch
--disable-werror --with-arch-32=i586 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu --disable-initfini-array
Thread model: posix
gcc version 7.1.0 (Debian 7.1.0-7)
>From gcc-bugs-return-573287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 01:13:24 2017
Return-Path: <gcc-bugs-return-573287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125433 invoked by alias); 25 Aug 2017 01:13:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122611 invoked by uid 48); 25 Aug 2017 01:13:19 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Fri, 25 Aug 2017 12:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81932-4-cXv8NxoyPF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02846.txt.bz2
Content-length: 562

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #15 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Xi Ruoyao from comment #14)

The symbols in your example are the result/ouput of demangling but the issue
reported here is with the symbols that are input into GDB.  There is more than
one way to represent the same specialization of a template (e.g., B<unsigned>
and B<unsigned int>, or A<2> and A<2u>, or even A<1 + 1>).  GDB should be able
to accept all of them and recognize they all refer to the same specialization.
>From gcc-bugs-return-573288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 01:35:45 2017
Return-Path: <gcc-bugs-return-573288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88125 invoked by alias); 25 Aug 2017 01:35: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 88046 invoked by uid 48); 25 Aug 2017 01:35:39 -0000
From: "vvarada at codeaurora dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81977] New: Possible issue with inline memcpy with packed structures
Date: Fri, 25 Aug 2017 12:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vvarada at codeaurora 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-81977-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02847.txt.bz2
Content-length: 2394

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81977

            Bug ID: 81977
           Summary: Possible issue with inline memcpy with packed
                    structures
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vvarada at codeaurora dot org
  Target Milestone: ---

g++ -DOUTER  bug.cc -Wall -Wextra -fno-strict-aliasing -fwrapv

The following source yields different results when building with and without
optimizations (-O2). Compiling source did not result in any warnings.

Without: optimizations it prints 0xabcd which is expected
With -O2 optimization it prints 0x1617 

The issue appears to be due to incorrect offsets being computed for the
relevant fields resulting from the inlining of memcpy. 

If you look at the disassembly with -O2 the %edi argument on X64 is set to a
constant 0x1617 (5655 decimal) indicating the bug is at the compiler optimizer
itself.

By changing the size of *uint16_t header_info[2];* one gets different results
with -O2 as it picks different portions of _prefz.z for _pref.x.   

Thanks,
-Vijay

---------------------------------------------------------------


#include <iostream>
#include <cstdint>
#include <cstring>

using namespace std;

void printval(int x) __attribute__((noinline));
void printval(int x)
{
   cout << hex << x << endl;
}

#define PACKED __attribute__((packed, aligned(1)))

typedef struct
{
   uint16_t  x ;
   uint16_t  y ;
   uint64_t  z ;
} PACKED TestMsgType;


struct Payload
{
  uint16_t header_info[2];
  TestMsgType _pref;
  void Pack(uint8_t *buffer)
  {
     memcpy(buffer, &_pref, sizeof(_pref));
  }
  void UnPack(uint8_t *buffer)
  {
     memcpy(&_pref, buffer, sizeof(_pref));
  }
};


struct Msg
{
   Payload _payload;
   void Pack(uint8_t *buffer)
   {
      _payload.Pack(buffer);
   }

   void UnPack(uint8_t *buffer)
   {
      _payload.UnPack(buffer);
   }
};

int main()
{
   uint8_t * buffer = new uint8_t [30];
   Msg msg;
   Msg msg1;
   msg._payload._pref.x             = 0xabcd;
   msg._payload._pref.y             = 0xa;
   msg._payload._pref.z             = 0x0001020304051617;
   msg.Pack(&buffer[0]);
   msg1.UnPack(&buffer[0]);
   printval(msg1._payload._pref.x);
   delete [] buffer;
}
>From gcc-bugs-return-573289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 01:40:19 2017
Return-Path: <gcc-bugs-return-573289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91599 invoked by alias); 25 Aug 2017 01:40: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 91479 invoked by uid 48); 25 Aug 2017 01:40:14 -0000
From: "vvarada at codeaurora dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81977] Possible issue with inline memcpy with packed structures
Date: Fri, 25 Aug 2017 12:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vvarada at codeaurora 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-81977-4-l2w4krUQmR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81977-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81977-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02848.txt.bz2
Content-length: 427

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81977

--- Comment #1 from vvarada at codeaurora dot org ---
FYI: The issue shows up on previous versions of GCC compiler as well, as early
as 4.9.2 (have not tried earlier versions). 

Also if the "buffer" in main is declared as a static uint8_t array, the issue
does not show up. For some reason it shows up only when buffer is a pointer as
shown in the source snippet.
>From gcc-bugs-return-573290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 02:11:46 2017
Return-Path: <gcc-bugs-return-573290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53519 invoked by alias); 25 Aug 2017 02:11:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 52880 invoked by uid 48); 25 Aug 2017 02:11:41 -0000
From: "psmith at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Fri, 25 Aug 2017 12:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: psmith 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-81932-4-4ZwUFHOTfg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02849.txt.bz2
Content-length: 857

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #16 from Paul Smith <psmith at gnu dot org> ---
I'm not familiar with the implementations but I'm not sure we can expect GDB to
be able to handle this situation, at least not with any sort of efficiency. 
It's already a difficult part of GDB's job, looking up types quickly.  I filed
a bug a few years ago where GDB macros slowed down by over 94x (from a few
seconds to over 11 minutes) due to a symbol lookup issue: it's a very sensitive
area.

Adding more complexity to this and asking GDB to try one variation of a given
type after another until it finds one seems less than optimal.

Even if it's decided that a change does need to happen on the GDB side,
hopefully GCC will continue to generate the expected debugging symbols until
that change is made and published in GDB.
>From gcc-bugs-return-573291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 02:50:21 2017
Return-Path: <gcc-bugs-return-573291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110623 invoked by alias); 25 Aug 2017 02:50:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107745 invoked by uid 48); 25 Aug 2017 02:50:09 -0000
From: "ryxi at stu dot xidian.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
Date: Fri, 25 Aug 2017 13:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryxi at stu dot xidian.edu.cn
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81932-4-2vdbUg51kd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02850.txt.bz2
Content-length: 851

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #17 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
(In reply to Martin Sebor from comment #15)
> (In reply to Xi Ruoyao from comment #14)
> 
> The symbols in your example are the result/ouput of demangling but the issue
> reported here is with the symbols that are input into GDB.  There is more
> than one way to represent the same specialization of a template (e.g.,
> B<unsigned> and B<unsigned int>, or A<2> and A<2u>, or even A<1 + 1>).  GDB
> should be able to accept all of them and recognize they all refer to the
> same specialization.

Well, then GDB would have to own a C++ name parser!

Before GDB implement this, how about generate a "secondary" debug symbol with
type suffixes, along with the "normal" one without them?  It would give
backward
compatibility.
>From gcc-bugs-return-573292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 04:31:49 2017
Return-Path: <gcc-bugs-return-573292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14947 invoked by alias); 25 Aug 2017 04:31: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 14915 invoked by uid 48); 25 Aug 2017 04:31:44 -0000
From: "david.sagan at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81978] New: Passing component of a parameter array to a subroutine causes SIGBUS crash
Date: Fri, 25 Aug 2017 13:08: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.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: david.sagan 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-81978-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02851.txt.bz2
Content-length: 1400

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81978

            Bug ID: 81978
           Summary: Passing component of a parameter array to a subroutine
                    causes SIGBUS crash
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: david.sagan at gmail dot com
  Target Milestone: ---

Consider the following program:

module test_mod
contains
subroutine match_word (names)
implicit none
character(*) names(:)
end subroutine
end module

program test
use test_mod
implicit none

type pp_struct
  character(40) name
  real value
end type

type (pp_struct), parameter :: pp(2) = [ &
                 pp_struct('pi', 3.1), &
                 pp_struct('twopi', 6.3)]

print *, 'In'
call match_word(pp%name)
print *, 'Out'
end program



Compiling and running produces:

Davids-Mac-mini:~/Downloads> gfortran test.f90; ./a.out 
 In

Program received signal SIGBUS: Access to an undefined portion of a memory
object.

Backtrace for this error:
#0  0x105ff50bc
#1  0x105ff48aa
#2  0x7fffb3bd6b39
#3  0x105fecd68
#4  0x105fece2e
Bus error: 10

Note: If "parameter" is not used with the pp array, the program runs fine.

Davids-Mac-mini:~/Downloads> gcc --version
gcc (MacPorts gcc7 7-20170622_1) 7.1.1 20170622
>From gcc-bugs-return-573293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 04:37:01 2017
Return-Path: <gcc-bugs-return-573293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19525 invoked by alias); 25 Aug 2017 04:37:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19462 invoked by uid 48); 25 Aug 2017 04:36:56 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81909] Missing warning in gcc.dg/pr53037-{2,3}.c
Date: Fri, 25 Aug 2017 13:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-81909-4-5OSNiRmOFf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81909-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81909-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02852.txt.bz2
Content-length: 635

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81909

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[nvptx] Missing warning in  |Missing warning in
                   |gcc.dg/pr53037-{2,3}.c      |gcc.dg/pr53037-{2,3}.c

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
The missing warnings are reported for sparc here (PR53037 comment 26), and
noted to be caused by STRICT_ALIGNMENT here (PR53037 comment c29).

nvptx is a STRICT_ALIGNMENT target, and so is arm.
>From gcc-bugs-return-573294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 07:56:45 2017
Return-Path: <gcc-bugs-return-573294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78929 invoked by alias); 25 Aug 2017 07: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 72882 invoked by uid 48); 25 Aug 2017 07:56:39 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81974] [8 Regression] ICE verify_gimple failed  type mismatch in binary expression
Date: Fri, 25 Aug 2017 13:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
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: bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-81974-4-zIGva8c3ss@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81974-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81974-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02853.txt.bz2
Content-length: 1040

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81974

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-25
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |tkoenig at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|ICE verify_gimple failed    |[8 Regression] ICE
                   |type mismatch in binary     |verify_gimple failed  type
                   |expression                  |mismatch in binary
                   |                            |expression
     Ever confirmed|0                           |1
      Known to fail|                            |8.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r248553.
>From gcc-bugs-return-573295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 09:00:56 2017
Return-Path: <gcc-bugs-return-573295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10922 invoked by alias); 25 Aug 2017 09:00:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 476 invoked by uid 48); 25 Aug 2017 09:00:34 -0000
From: "griwes at griwes dot info" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81975] Unpacking two packs via alias erroneously complains about mismatched argument packs
Date: Fri, 25 Aug 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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: griwes at griwes dot info
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81975-4-7z5nm9ygvV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81975-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81975-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02854.txt.bz2
Content-length: 804

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81975

--- Comment #1 from Michał Dominiak <griwes at griwes dot info> ---
I have made a mistake in the original testcase in the original email, here's a
correction email sent to the reflector:
http://lists.isocpp.org/core/2017/08/2828.php.

Barry's minimization of the failing code already eliminates the mistake; I'm
just providing the reply to make sure there's no confusion about the
differences between the original testcase and Barry's version.

Now, an interesting artifact of this is that both T and V fail, but U somehow
succeeds, which makes it seem like the compiler is sometimes *assuming* that
the size of a pack is 1; this'd be consistent with the Clang error message,
where it always says that one of the packs has just one element.
>From gcc-bugs-return-573296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 09:03:05 2017
Return-Path: <gcc-bugs-return-573296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113636 invoked by alias); 25 Aug 2017 09:03:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107623 invoked by uid 48); 25 Aug 2017 09:03:01 -0000
From: "abominable-snowman at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81857] istreambuf_iterator not work as input iterator
Date: Fri, 25 Aug 2017 13:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abominable-snowman 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: attachments.created
Message-ID: <bug-81857-4-6isDHedCSf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81857-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81857-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02855.txt.bz2
Content-length: 508

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81857

--- Comment #3 from Petr Ovtchenkov <abominable-snowman at yandex dot ru> ---
Created attachment 42042
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42042&action=edit
proposed test for issue

https://gcc.gnu.org/ml/libstdc++/2017-08/msg00036.html

May be worth to add (see issue2471) words to copy_n spec:

 "copy_n return result + n (i.e. increment OutputIterator n times) and
  increment InputIterator max(0, n - 1)."

to avoid ambiguity?
>From gcc-bugs-return-573297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 09:15:55 2017
Return-Path: <gcc-bugs-return-573297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130195 invoked by alias); 25 Aug 2017 09:15: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 120209 invoked by uid 55); 25 Aug 2017 09:15:34 -0000
From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81968] [8 regression] early lto debug objects make Solaris ld SEGV
Date: Fri, 25 Aug 2017 13:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81968-4-mBOdmlxvw9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81968-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81968-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02856.txt.bz2
Content-length: 618

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968

--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #1 from rguenther at suse dot de <rguenther at suse dot de> ---
[...]
> They are created that way to make my life easier. They are supposed to be valid
> ELF objects and they are according to the specs and my interpretation. 

do you have a reference in how this way of constructing them helps?
Solaris elfdump complains heavily, at least.  I'll check further to
either confirm they are indeed valid or find word to the contrary.

        Rainer
>From gcc-bugs-return-573298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 09:43:23 2017
Return-Path: <gcc-bugs-return-573298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2078 invoked by alias); 25 Aug 2017 09: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 2027 invoked by uid 48); 25 Aug 2017 09:43:19 -0000
From: "tommapson at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79200] Race-Condition in Address Santitizer (RT_PREEMPT-Kernel only?)
Date: Fri, 25 Aug 2017 13:23: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tommapson at gmx dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79200-4-eeBdKocu5v@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79200-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79200-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02857.txt.bz2
Content-length: 922

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79200

tommapson at gmx dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Race-Condition in Address   |Race-Condition in Address
                   |Santitizer                  |Santitizer
                   |                            |(RT_PREEMPT-Kernel only?)

--- Comment #5 from tommapson at gmx dot de ---
The problem can be reproduced on Debian 9 using the realtime kernel shipped by
Debian:

$ uname -a
Linux myhost 4.9.0-3-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.30-2+deb9u2
(2017-06-26) x86_64 GNU/Linux

$ gcc --version
gcc (Debian 6.3.0-18) 6.3.0 20170516



When booting the non-rt-kernel 4.9.0-3-amd64, the problem disappears - using
the same binary of main.

As described initially: Without -fsanitize=address the problem is gone, too.
>From gcc-bugs-return-573299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 09:46:22 2017
Return-Path: <gcc-bugs-return-573299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6127 invoked by alias); 25 Aug 2017 09:46: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 5842 invoked by uid 48); 25 Aug 2017 09:46:15 -0000
From: "vincent-gcc at vinc17 dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/63943] wrong location for -Wmaybe-uninitialized in inlined function
Date: Fri, 25 Aug 2017 13:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vincent-gcc at vinc17 dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-63943-4-tnoKtcTrdw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63943-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63943-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02858.txt.bz2
Content-length: 957

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63943

Vincent Lefèvre <vincent-gcc at vinc17 dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vincent-gcc at vinc17 dot net

--- Comment #2 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
Another test case:

int foo (void)
{
  int i = 0, t;

  if (i > 0)
    t = i;

  if (t != 0)
    return 1;

  return 0;
}

int main (void)
{
  return foo () + foo () + foo () + foo ();
}

With -O1, I get 1 warning for foo and 1 for main.
With -O2, I get 1 warning for foo and 4 for main.

The warnings for main disappear if I add __attribute__((noinline)) on foo.
Surprisingly, they also disappear if I just remove the code related to variable
i.

Tested with:
gcc (Debian 20170823-1) 8.0.0 20170823 (experimental) [trunk revision 251306]
>From gcc-bugs-return-573300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 10:10:36 2017
Return-Path: <gcc-bugs-return-573300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27605 invoked by alias); 25 Aug 2017 10:10:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27538 invoked by uid 48); 25 Aug 2017 10:10:31 -0000
From: "tommapson at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79200] Race-Condition in Address Santitizer (RT_PREEMPT-Kernel only?)
Date: Fri, 25 Aug 2017 13:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tommapson at gmx dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79200-4-PW5yRWHCrh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79200-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79200-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02859.txt.bz2
Content-length: 283

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79200

--- Comment #6 from tommapson at gmx dot de ---
(Since I do not know whether this is a bug in the realtime-kernel or the
compiler, I also reported it in the kernel bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=196767).
>From gcc-bugs-return-573301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 10:52:54 2017
Return-Path: <gcc-bugs-return-573301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1045 invoked by alias); 25 Aug 2017 10: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 131005 invoked by uid 48); 25 Aug 2017 10:52:47 -0000
From: "benni.buch at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67371] Never executed "throw" in constexpr function fails to compile
Date: Fri, 25 Aug 2017 13:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: benni.buch at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-67371-4-WYmWM5qSYV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67371-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67371-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-08/txt/msg02860.txt.bz2
Content-length: 1391

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67371

Benjamin Buch <benni.buch at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |benni.buch at gmail dot com

--- Comment #14 from Benjamin Buch <benni.buch at gmail dot com> ---
Please reopen!

Only a part of this bug is fixed:


constexpr int f(){
    if(false) throw 0;
    return 0;
}

int main(){
    constexpr auto i = f();
}


is OK now, but


constexpr int f(){
    if(true) return 0;
    throw 0;
}

int main(){
    constexpr auto i = f();
}


still fails.

Tested with:

$ g++ --version                                                                 
g++ (GCC) 8.0.0 20170818 (experimental)                                         
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.
>From gcc-bugs-return-573302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 10:54:01 2017
Return-Path: <gcc-bugs-return-573302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4164 invoked by alias); 25 Aug 2017 10:54: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 4069 invoked by uid 48); 25 Aug 2017 10:53:56 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81979] New: [8 Regression] Assembler messages: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section}
Date: Fri, 25 Aug 2017 13:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 8.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 target_milestone cf_gcctarget
Message-ID: <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-08/txt/msg02861.txt.bz2
Content-length: 1208

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81979

            Bug ID: 81979
           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: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpcspe-*-linux-gnu*

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-573303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 25 11:02:37 2017
Return-Path: <gcc-bugs-return-573303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47650 invoked by alias); 25 Aug 2017 11:02: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 47027 invoked by uid 89); 25 Aug 2017 11:02:35 -0000
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=expectation, H*Ad:U*rguenth, repeating
X-Spam-User: qpsmtpd, 3 recipients
X-HELO: EUR03-VE1-obe.outbound.protection.outlook.com
Received: from mail-eopbgr50054.outbound.protection.outlook.com (HELO EUR03-VE1-obe.outbound.protection.outlook.com) (40.107.5.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Aug 2017 11:02:33 +0000
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com;
Received: from [10.2.206.69] (217.140.96.140) by VI1PR0802MB2493.eurprd08.prod.outlook.com (2603:10a6:800:b4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9; Fri, 25 Aug 2017 11:02:28 +0000
Message-ID: <59A003C0.3060603@arm.com>
Date: Fri, 25 Aug 2017 13:44:00 -0000
From: Szabolcs Nagy <szabolcs.nagy@arm.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
MIME-Version: 1.0
To: Joseph Myers <joseph@codesourcery.com>,  Eric Gallager <egall@gwmail.gwu.edu>
CC: nd@arm.com, Jonathan Wakely <jwakely.gcc@gmail.com>,  Martin Sebor <msebor@gmail.com>, gcc-bugs@gcc.gnu.org, GCC Mailing List <gcc@gcc.gnu.org>,  rguenth@gcc.gnu.org
Subject: Re: [Bug web/?????] New: Fwd: failure notice: Bugzilla down.
References: <CAMfHzOsXnceTY=YHFfC_qDPYYgkyer=dm5ESABuO_KjuQ60MXw@mail.gmail.com> <67267f8d-030b-e5ac-21b1-8d5c6911045d@gmail.com> <CAH6eHdTsKsdnXG-edvWWHh-Vd45jKuiMxL8V3W34+j+86aFmHA@mail.gmail.com> <CAMfHzOsuRRY24BkP2RK5enfKdeL68nD1gBn0R0L4zkdKASL4mA@mail.gmail.com> <alpine.DEB.2.20.1708161736110.21300@digraph.polyomino.org.uk>
In-Reply-To: <alpine.DEB.2.20.1708161736110.21300@digraph.polyomino.org.uk>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: DB6P190CA0021.EURP190.PROD.OUTLOOK.COM (2603:10a6:6:2f::34) To VI1PR0802MB2493.eurprd08.prod.outlook.com (2603:10a6:800:b4::23)
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 334a376a-5e2d-45de-845b-08d4eba8c732
X-MS-Office365-Filtering-HT: Tenant
X-Microsoft-Antispam:	UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:VI1PR0802MB2493;
X-Microsoft-Exchange-Diagnostics:	1;VI1PR0802MB2493;3:ycQ+YA5da7BkVL7QWJVQsepLKOWsjLIlRaJFgtEfgKJqfszm/kFhOYrdtsQFaAYoIEgU+XZF0dTo24IoRjaeoDvCiIdmmgoZfe6A7xO4fe9fYu5yyEbwZRzh0wyRzVNaKhnj83Xq4i8Bo9d6JI5vz88D7TLUs3NNeEIniQ2Lbu8NOUBilhY5OS1V8+0UETTx8T2lPqrQrIvEwyABEaw8zAMAwFwXqGJpcPSiLB95E9g1NJXxe/fOiPKvCUnFVlLQ;25:KJNRly+yCy2nYXD+nQ9jZcLoxl8YEazsCXE7KUsuiZkl8pLlpflPv9lS7EVk2eXlOaDMWLKcIoTw5YCCkJ3rjHHVmo+NJB+9bqKX4fw61ysMn471J06bOUjA2KEPJZxMEyshff6zmeHEqq2iJC0MwMlLsbto/gGApjDuY1jdCXfEGfITMn20VQHrl3OT1ohXiQgCmWyPxBLuKYcCoLGmjwBUDMfZzds0iLCKba1QwiOu6PdY2m9PVBtAHeMXg+ZvCp7fPQRzqIqgGe4SBd4/fsWLPISEgY7rA/Jz1EoVO30/Nx1sgGsyBwPRA/6BGzDACrYnrc0q8pAXJVHnJnv29Q==;31:c5vR04xV765Ny7eEi/Xb318HKgRxPTrcBxoYWfNHVdvvvvr4sFvHfgnKmRIoqOLpdDmgQupbrcYrrWZIcGHN7vyWq+UbOt9KyVUMzSkTWKGT5wlVRjnlzG5qMj/pfMmRGiYOZFTQUSXt/XCAENcyZLVmgnXpJhgmgpGVXop4R7lNTRSol3GUcrtAlSCsKEBnmvymxbVI+qNyV0IcKh3gHsgqq8kx0nYvaFNBVnxTkQ8X-MS-TrafficTypeDiagnostic: VI1PR0802MB2493:
NoDisclaimer: True
X-Microsoft-Exchange-Diagnostics:	1;VI1PR0802MB2493;20:B/+2JKPeBElRlE9vFwn6bz7sRmk3ji/lMptml/tTLz6lb59exdWHTvfFCxNRm2K8xkOWoFK2Od+sDRYV96f2i3aWo4G9A0Lau+/x3wk8ZYnov1n/i3rMFz9J/YPjOdu+LfyNuC7LyTz1ESpSAQ5LSsIgzYAUCU/l+crfIb2QkMY=;4:H884Wv18UIUWWY89yTeZSyQr1mCVsCrYiO29aPkm6MLAhcvuKpqXP+jerUC0f/4jh3jnuJoMc+Kj97EB3PBfOrnfkfQ+IV2fJnW2KNWRm/hSL6rEZ7EvzaTARuCy0KdbK6UY0+iikRDE0LcwdRY2Kd3mVWSzd2K9BDNJ3S7+RXM7qBvVcrum/LXybiAW5QaNsVxrhOS7zET68OKpEpOMThE6EzigjkAhnvE/gwNUpG9scfi98xhMFZf1a6h/qhq/oTdPitV6mP9v5rMJBLKu44IZpTwC+2/CIH36dldJnSJOcFE17lwoO9QGq/YiwbTtbFkRdGXuXd86OUO5AjF8QBNBy5lGyX0tx7l6r9dSTksX-Exchange-Antispam-Report-Test:	UriScan:(158342451672863)(20558992708506)(5213294742642);
X-Microsoft-Antispam-PRVS:	<VI1PR0802MB2493B0F8D4D054ABC6320BB9ED9B0@VI1PR0802MB2493.eurprd08.prod.outlook.com>
X-Exchange-Antispam-Report-CFA-Test:	BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR0802MB2493;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR0802MB2493;
X-Forefront-PRVS: 041032FF37
X-Forefront-Antispam-Report:	SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(6049001)(39860400002)(24454002)(189002)(199003)(77096006)(4001350100001)(2171002)(6486002)(66066001)(229853002)(59896002)(305945005)(7350300001)(54906002)(6666003)(80316001)(7736002)(2950100002)(93886005)(478600001)(47776003)(65956001)(4326008)(230700001)(25786009)(53546010)(97736004)(65806001)(83506001)(86362001)(6116002)(101416001)(87266999)(3846002)(5660300001)(2906002)(15650500001)(76176999)(189998001)(54356999)(105586002)(72206003)(106356001)(50986999)(42186005)(6246003)(36756003)(53936002)(68736007)(8676002)(23746002)(50466002)(64126003)(65816999)(81166006)(81156014)(33656002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0802MB2493;H:[10.2.206.69];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en;
Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts)
X-Microsoft-Exchange-Diagnostics:	=?Windows-1252?Q?1;VI1PR0802MB2493;23:p6CZNOA/9GxMKUaLVi3r83IF5zMK7nECQlX?= =?Windows-1252?Q?y4jpIfwy79777erTF0Y791oANfbuV3ccYXvBvMiwPpeSV7u0iBo5hTY8?= =?Windows-1252?Q?wt8oeSTYDLqaOXVzBmPtVP8Z22/grZHiVJRvGFt2UXhW5kT+AWJrKT7i?= =?Windows-1252?Q?+PLIvK+Da7OfdwHi8NzfqPQ9XvpFKMogH/Hqcrscj+VE6f/zDao3VvVC?= =?Windows-1252?Q?BjoMTabAoN+cNwXDTdBFBs4YCtdgX0FATsKkZJfKHgh5KOf7mlTiALMO?= =?Windows-1252?Q?y9/yj+QIoFEsZKlE7nS88Peo+o0nanZOTWV3pJu2cRjY4rbAac1K5giS?= =?Windows-1252?Q?Jecr/REtcP7ZRazs7eFgfB84h/ByIr6qA0IgnJU+um3FftaBX5WsZN3V?= =?Windows-1252?Q?AJ6pkIseZa+cIP6JgURV/0x7O0R0VwLautESiYTiwzWIgkCBsaa52a5q?= =?Windows-1252?Q?/3K2XT7sKseiFo1EbIfyWOE7E7D4J7wv40eCXhDTY4vgaNU08DkZX1b4?= =?Windows-1252?Q?BP9FnsBBBI3vssG1XqNyq0UQxZxtCWgMeGrJ5khJWgdq5zkX78ohK9wz?= =?Windows-1252?Q?P2cX4APWkb3gTgpjj5Ok/I9ofw4+gPdDRRCCT/97lQ3bGq3QP60e9QvB?= =?Windows-1252?Q?4AIjK2JJbHVGNY7ClBL/z22RtaG1+MpcCKs/Pb0HzjH3M7bcobbXRLaH?= =?Windows-1252?Q?31T9fIGdzBHBXbQTt6eK0EA/wNDBBlzWcgeayJGckXx9cAWH3cyR8RZ/?= =?Windows-1252?Q?9UgRS3UqH/4oofQuUbKTwsQymY3HzserkXfs3Frc2SruLFjm8OKASJAI?= =?Windows-1252?Q?wKlGV6dH2W8zT6yeCYz2N8dKK91vNRSjVLEha2i/KoC1KH2HHW+3t0gS?= =?Windows-1252?Q?JClSIptLKJv0XQZOf3TuM7DMlpdlouPX9BU5iYGLU2m0TL5yUkmZUkCN?= =?Windows-1252?Q?HkBhtlfBNQBwXSOZyAiuHrNcLJapBMc89Xs9StPnHXZ44pZYinKMEBqM?= =?Windows-1252?Q?MsAyuWlOJqzNBlOiTKnwj8UKGhtRy5J7+iTFK0/1sK/LiUO2ArXZ7c5y?= =?Windows-1252?Q?Pmg7DvzLd2Mthe6whpsz/+WCpakV/Il6uGeMAiE3n1kwHvfRZlrQX+Sr?= =?Windows-1252?Q?GVwyIUh26WdnAMCCR1sQqrFDNNMZPdyMCJqo0BiRTSt7EMohMk9G1W1L?= =?Windows-1252?Q?gIa+goL6SkysiCK/SEBJtxZb2uUVJhvgOpv/fnkL/FcdQtv5LzaBHd6F?= =?Windows-1252?Q?6gQYJI8Z2qXwtos2OF/+XGaGO442kcbKzpmRQjPq2lm2VoX07YCZPfIy?= =?Windows-1252?Q?DRJT8g+pyo8cPbCpSir34uqPKS362dtNkXg8RIua4d3RDTqtgjfsTLaD?= =?Windows-1252?Q?TG7eoYMTbQ5UQu0U+h8svoQf4Fi+6+IRNNKfQ0fWxPk920iy9Z1VodN9?= =?Windows-1252?Q?tb16I3VYl6Cf2slhLy5tekFcmBAu8hN6iaJcW7tfog5uxCxjcJHJ+6VE?= =?Windows-1252?Q?mzOxGqTJbpAdya+FaEOjLwp2Qhpn48RFbbb0vrZapa45qOJkF9zY3TlA?= =?Windows-1252?Q?4SzuJ8/ohg3WXsjD4XdtPnflWIzn8j80Q9BpV?X-Microsoft-Exchange-Diagnostics:	1;VI1PR0802MB2493;6:wsyeLJErV5R6jh3+RrOly8GcI6FXyQLTE/4fAXScLqJm+IrlZ7iYGJ7kVmCK8nO8v8tyPeufZqopDYwMO3K4FynmD4aSDt+7ghhWq7qA5P10SD3KXRXWXj5KvAsl0ZMefgty8C+rI0eYc9zrvsCLtZyshuW/o2ILQLhmdT3edsD8+QZM5Wa6AM+VdtILxT2Ls4jp2C43JMpeKd1h0XLrePm1/Ufk8mBRf4ZSYWH2mB1hh8viHU+aDf0Kyzj9Dl0o6kEaP63p4JyyZDc+vcVH1+8yckhwE3Os+2/F9x8xHs+zQirFHKNoLQJONqsnCHnBlJIkQct2Y4C0xeM8fpPU7g==;5:w9+HCMQ2fqzne4VMLkMvMMpg4kO9nQ/HRk0RN7/k+UMYB6gWArFNvmTWI9MitD5oRf44jbDrVtunG368LAHmBwdzBeQQEDUDOH/rzygkHiFnQQJystCO+QY3w2A4qkvotI1rRzkrC4jOz/V2K0Xh6g==;24:21QYAZUtqYSQQD85Lng74kvXnACdNIL6WCx264Eq1PDZ/zAiAiWQ5em8n/DrBMnuPcntbccvaGjdx+uNNmQCN156C+4dLd2ovS0AQ9w4TpY=;7:oeWoeerw4+pD5gZwb2WeaCUwd6iJpAoCKMZgVo4merTyXyVIODUmrLFHpOSmZQ51kRHqby7VBVbnG24jx3fwDR0YcOuIRy3hcq5Se42z0znGt990QQRJ/5s1FvTFc4K31UeFXKBicee/PpyJBCOy5/kYGfaFTBUnY3MOE4fPj5TJ8JTv8I0DtbafRMoVnDCRDa1Wqv2PFq5MQIK9A58UsGLcM4O2Y0s6ewy8l8Z/Xy8SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 11:02:28.6029 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2493
X-IsSubscribed: yes
X-SW-Source: 2017-08/txt/msg02862.txt.bz2
Content-length: 866

On 16/08/17 18:38, Joseph Myers wrote:
> On Wed, 16 Aug 2017, Eric Gallager wrote:
>> I see Richi redid all his 7.2 release changes; does that imply that
>> the server restore is now complete?
>
> No, there's still a search process ongoing to identify corrupted or
> missing files by comparison with the last backup.
>
> My expectation is that all the other Bugzilla changes from 13 and 14
> August UTC need redoing manually (recreating bugs with new numbers in the
> case of new bugs filed during that period, if those bugs are still
> relevant, repeating comments, etc. - and possibly recreating accounts for
> people who created accounts and filed bugs during that period).  But I
> haven't seen any official announcement from overseers to all affected
> projects (for both GCC and Sourceware Bugzillas) yet.
>

can i resubmit my lost bug reports now?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-17 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-23 22:26 [Bug c++/65870] New: Explicit function instantiation with default valued lambda causes duplicate symbol w.shane.grant at gmail dot com
2015-04-24 10:04 ` [Bug c++/65870] " redi at gcc dot gnu.org
2017-08-17 18:44 ` jj at stusta dot net

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).